diff options
l---------[-rwxr-xr-x] | board/orangepi/orangepi-one/post-build.sh | 12 | ||||
l---------[-rwxr-xr-x] | board/orangepi/orangepi-one/post-image.sh | 15 | ||||
l---------[-rwxr-xr-x] | board/orangepi/orangepi-pc/post-build.sh | 12 | ||||
l---------[-rwxr-xr-x] | board/orangepi/orangepi-pc/post-image.sh | 15 | ||||
-rwxr-xr-x | board/orangepi/post-build.sh | 11 | ||||
-rwxr-xr-x | board/orangepi/post-image.sh | 14 |
6 files changed, 29 insertions, 50 deletions
diff --git a/board/orangepi/orangepi-one/post-build.sh b/board/orangepi/orangepi-one/post-build.sh index 46e890527..cd7f11645 100755..120000 --- a/board/orangepi/orangepi-one/post-build.sh +++ b/board/orangepi/orangepi-one/post-build.sh @@ -1,11 +1 @@ -#!/bin/sh -# post-build.sh for OrangePi One taken from CubieBoard's post-build.sh -# 2013, Carlo Caione <carlo.caione@gmail.com> - -BOARD_DIR="$(dirname $0)" -MKIMAGE=$HOST_DIR/usr/bin/mkimage -BOOT_CMD=$BOARD_DIR/boot.cmd -BOOT_CMD_H=$BINARIES_DIR/boot.scr - -# U-Boot script -$MKIMAGE -C none -A arm -T script -d $BOOT_CMD $BOOT_CMD_H +../post-build.sh
\ No newline at end of file diff --git a/board/orangepi/orangepi-one/post-image.sh b/board/orangepi/orangepi-one/post-image.sh index 359b4c9e7..ae6294fa3 100755..120000 --- a/board/orangepi/orangepi-one/post-image.sh +++ b/board/orangepi/orangepi-one/post-image.sh @@ -1,14 +1 @@ -#!/bin/sh - -BOARD_DIR="$(dirname $0)" -GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" -GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" - -rm -rf "${GENIMAGE_TMP}" - -genimage \ - --rootpath "${TARGET_DIR}" \ - --tmppath "${GENIMAGE_TMP}" \ - --inputpath "${BINARIES_DIR}" \ - --outputpath "${BINARIES_DIR}" \ - --config "${GENIMAGE_CFG}" +../post-image.sh
\ No newline at end of file diff --git a/board/orangepi/orangepi-pc/post-build.sh b/board/orangepi/orangepi-pc/post-build.sh index ca7a99f22..cd7f11645 100755..120000 --- a/board/orangepi/orangepi-pc/post-build.sh +++ b/board/orangepi/orangepi-pc/post-build.sh @@ -1,11 +1 @@ -#!/bin/sh -# post-build.sh for OrangePi PC taken from CubieBoard's post-build.sh -# 2013, Carlo Caione <carlo.caione@gmail.com> - -BOARD_DIR="$(dirname $0)" -MKIMAGE=$HOST_DIR/usr/bin/mkimage -BOOT_CMD=$BOARD_DIR/boot.cmd -BOOT_CMD_H=$BINARIES_DIR/boot.scr - -# U-Boot script -$MKIMAGE -C none -A arm -T script -d $BOOT_CMD $BOOT_CMD_H +../post-build.sh
\ No newline at end of file diff --git a/board/orangepi/orangepi-pc/post-image.sh b/board/orangepi/orangepi-pc/post-image.sh index 359b4c9e7..ae6294fa3 100755..120000 --- a/board/orangepi/orangepi-pc/post-image.sh +++ b/board/orangepi/orangepi-pc/post-image.sh @@ -1,14 +1 @@ -#!/bin/sh - -BOARD_DIR="$(dirname $0)" -GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" -GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" - -rm -rf "${GENIMAGE_TMP}" - -genimage \ - --rootpath "${TARGET_DIR}" \ - --tmppath "${GENIMAGE_TMP}" \ - --inputpath "${BINARIES_DIR}" \ - --outputpath "${BINARIES_DIR}" \ - --config "${GENIMAGE_CFG}" +../post-image.sh
\ No newline at end of file diff --git a/board/orangepi/post-build.sh b/board/orangepi/post-build.sh new file mode 100755 index 000000000..a544a1956 --- /dev/null +++ b/board/orangepi/post-build.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# post-build.sh for OrangePi taken from CubieBoard's post-build.sh +# 2013, Carlo Caione <carlo.caione@gmail.com> + +BOARD_DIR="$(dirname $0)" +MKIMAGE=$HOST_DIR/usr/bin/mkimage +BOOT_CMD=$BOARD_DIR/boot.cmd +BOOT_CMD_H=$BINARIES_DIR/boot.scr + +# U-Boot script +$MKIMAGE -C none -A arm -T script -d $BOOT_CMD $BOOT_CMD_H diff --git a/board/orangepi/post-image.sh b/board/orangepi/post-image.sh new file mode 100755 index 000000000..359b4c9e7 --- /dev/null +++ b/board/orangepi/post-image.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $0)" +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" |