Compile aml_autoscript for S805

This commit is contained in:
Jean-André Santoni 2016-12-04 02:31:36 +01:00
parent 2086e2c739
commit 17250a78c5
2 changed files with 12 additions and 1 deletions

View File

@ -328,6 +328,9 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
fi
fi
INSTALL_SRC_DIR="$PROJECT_DIR/$PROJECT/install"
MKIMAGE_TOOL_CMD="$ROOT/$BUILD/linux-$(kernel_version)/arch/$KERNEL_ARCH/boot/mkimage -A $KERNEL_ARCH -O linux -T script -C none -d"
echo "mkimage: boo. now root access (sudo) is required..."
echo "mkimage: see scripts/image and scripts/mkimage if you dont trust us :)"
# variables used in image script must be passed
@ -337,8 +340,10 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
TOOLCHAIN="$TOOLCHAIN" \
TARGET_IMG="$TARGET_IMG" \
IMAGE_NAME="$IMAGE_NAME" \
INSTALL_SRC_DIR="$INSTALL_SRC_DIR" \
BOOTLOADER="$BOOTLOADER" \
KERNEL_NAME="$KERNEL_NAME" \
MKIMAGE_TOOL_CMD="$MKIMAGE_TOOL_CMD" \
RELEASE_DIR="$RELEASE_DIR" \
UUID_SYSTEM="$(uuidgen)" \
UUID_STORAGE="$(uuidgen)" \
@ -351,7 +356,6 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
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

View File

@ -302,6 +302,13 @@ elif [ "$BOOTLOADER" = "u-boot" ]; then
fi
fi # bootloader
if [ -f "$INSTALL_SRC_DIR/aml_autoscript.src" ]; then
cat "$INSTALL_SRC_DIR/aml_autoscript.src" > "$OE_TMP/aml_autoscript.src"
echo "run storeargs" >> "$OE_TMP/aml_autoscript.src"
echo "run bootcmd" >> "$OE_TMP/aml_autoscript.src"
$MKIMAGE_TOOL_CMD "$OE_TMP/aml_autoscript.src" "$OE_TMP/aml_autoscript"
fi
# unmount part1
echo "image: unmounting part1..."
sync