scripts/image: allow INSTALL_SRC_DIR to be board specific

This commit is contained in:
Adam Green 2017-12-12 00:14:57 +00:00
parent 6c894b854d
commit 5fc0b1087e
No known key found for this signature in database
GPG Key ID: 52B701B6EF2F2E58

View File

@ -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