mkfirmware.sh&mk-image.sh: Make sure using buildroot host tools

Change-Id: I3037ec2d5b91b34a9b31aa1a0887a4f47f7162b8
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2019-01-02 14:29:35 +08:00
parent f71f98b69d
commit a264ab8cef
4 changed files with 19 additions and 11 deletions

View File

@ -35,6 +35,11 @@ MKIMAGE=$TOP_DIR/device/rockchip/common/mk-image.sh
rm -rf $ROCKDEV
mkdir -p $ROCKDEV
# Require buildroot host tools to do image packing.
if [ ! -d "$TARGET_OUTPUT_DIR" ]; then
echo "Source buildroot/build/envsetup.sh"
source $TOP_DIR/buildroot/build/envsetup.sh $RK_CFG_BUILDROOT
fi
if [ "${RK_OEM_DIR}" == "dueros" ];then
if [ $RK_ARCH == arm ];then