From 5fc0b1087e5bc89c3cda7fc7d072001a906d5eeb Mon Sep 17 00:00:00 2001 From: Adam Green Date: Tue, 12 Dec 2017 00:14:57 +0000 Subject: [PATCH] scripts/image: allow INSTALL_SRC_DIR to be board specific --- scripts/image | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/image b/scripts/image index 6254bc2612..1cbaca640f 100755 --- a/scripts/image +++ b/scripts/image @@ -325,6 +325,13 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ] KERNEL_NAME="KERNEL" fi + # INSTALL_SRC_DIR can be board specific + if [ -n "$DEVICE" -a -d "$PROJECT_DIR/$PROJECT/devices/$DEVICE/install" ]; then + INSTALL_SRC_DIR="$PROJECT_DIR/$PROJECT/devices/$DEVICE/install" + else + INSTALL_SRC_DIR="$PROJECT_DIR/$PROJECT/install" + fi + # variables used in image script must be passed env \ PATH="$PATH:/sbin" \ @@ -356,7 +363,6 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ] if [ "$1" = "amlpkg" ]; then echo "Creating Amlogic ZIP update package" - INSTALL_SRC_DIR="$PROJECT_DIR/$PROJECT/install" AML_PKG_DIR="$RELEASE_DIR/ampl-pkg" # create package directory