board/orangepi: drop redundant files
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>
This commit is contained in:
parent
a1f33e0591
commit
c1a9fb9ddb
@ -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
|
1
board/orangepi/orangepi-one/post-build.sh
Symbolic link
1
board/orangepi/orangepi-one/post-build.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../post-build.sh
|
@ -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}"
|
1
board/orangepi/orangepi-one/post-image.sh
Symbolic link
1
board/orangepi/orangepi-one/post-image.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../post-image.sh
|
@ -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
|
1
board/orangepi/orangepi-pc/post-build.sh
Symbolic link
1
board/orangepi/orangepi-pc/post-build.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../post-build.sh
|
@ -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}"
|
1
board/orangepi/orangepi-pc/post-image.sh
Symbolic link
1
board/orangepi/orangepi-pc/post-image.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../post-image.sh
|
11
board/orangepi/post-build.sh
Executable file
11
board/orangepi/post-build.sh
Executable file
@ -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
|
14
board/orangepi/post-image.sh
Executable file
14
board/orangepi/post-image.sh
Executable file
@ -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}"
|
Loading…
Reference in New Issue
Block a user