From c9b3eb3696f56141c7501b7f1c52bd7c6ec95da1 Mon Sep 17 00:00:00 2001 From: saarloos <9090-90-90-9090@163.com> Date: Mon, 8 Aug 2022 11:36:35 +0800 Subject: [PATCH] embedded: add set 2209 env set run Signed-off-by: saarloos <9090-90-90-9090@163.com> --- script/embedded/compile/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/embedded/compile/build.sh b/script/embedded/compile/build.sh index 17f79f0..04696e5 100755 --- a/script/embedded/compile/build.sh +++ b/script/embedded/compile/build.sh @@ -85,6 +85,9 @@ whoami || echo "" rm -f "${BUILD_DIR}"/source.log export DATETIME="$datetime" source "${SRC_DIR}"/yocto-meta-openeuler/scripts/compile.sh "${PLATFORM}" "${BUILD_DIR}" > "${BUILD_DIR}"/source.log +if [ -e /opt/buildtools/nativesdk/environment-setup-x86_64-pokysdk-linux ]; then + source /opt/buildtools/nativesdk/environment-setup-x86_64-pokysdk-linux +fi bitbake_opt="\$(grep "You can now run " ${BUILD_DIR}/source.log | awk -F"'" '{print \$2}')" #\${bitbake_opt} echo "bitbake ${build_image_name}" -- Gitee