board/orangepi: drop redundant files
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 15 Dec 2016 16:24:45 +0000 (17:24 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 15 Dec 2016 16:24:45 +0000 (17:24 +0100)
The orangepi board variants use identical post-build and post-image scripts,
so move them up to board/orangepi and add symlinks in the variant
subdirectories, similary to how we handle it for the raspberry pi variants.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/orangepi/orangepi-one/post-build.sh [changed from file to symlink]
board/orangepi/orangepi-one/post-image.sh [changed from file to symlink]
board/orangepi/orangepi-pc/post-build.sh [changed from file to symlink]
board/orangepi/orangepi-pc/post-image.sh [changed from file to symlink]
board/orangepi/post-build.sh [new file with mode: 0755]
board/orangepi/post-image.sh [new file with mode: 0755]

deleted file mode 100755 (executable)
index 46e8905273b71325771c8a5a189958340da9a15e..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..cd7f11645b0accb550a7688807a5a47064e460a2
--- /dev/null
@@ -0,0 +1 @@
+../post-build.sh
\ No newline at end of file
deleted file mode 100755 (executable)
index 359b4c9e7c5eb6aa447c8826210d70e7b68fcf91..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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}"
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..ae6294fa385931c9c4c99caec5379d97103f79be
--- /dev/null
@@ -0,0 +1 @@
+../post-image.sh
\ No newline at end of file
deleted file mode 100755 (executable)
index ca7a99f220cc7477715ae54cf2d64564e6419a6d..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..cd7f11645b0accb550a7688807a5a47064e460a2
--- /dev/null
@@ -0,0 +1 @@
+../post-build.sh
\ No newline at end of file
deleted file mode 100755 (executable)
index 359b4c9e7c5eb6aa447c8826210d70e7b68fcf91..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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}"
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..ae6294fa385931c9c4c99caec5379d97103f79be
--- /dev/null
@@ -0,0 +1 @@
+../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 (executable)
index 0000000..a544a19
--- /dev/null
@@ -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 (executable)
index 0000000..359b4c9
--- /dev/null
@@ -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}"