From 7bb61a45b933556c282c0ce02c5734ce5dacbcc7 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Wed, 22 May 2013 11:33:37 +0200 Subject: [PATCH] build.sh: Parametrize the single target image name This will allow to compile del-image-graphical or any of the other standard Yocto image targets as meta-toolchain, meta-toolchain-sdk, adt-installer, or meta-ide-support. https://jira.digi.com/browse/DEL-476 Signed-off-by: Alex Gonzalez --- sdk/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/build.sh b/sdk/build.sh index d4d7452d3..e0b9a7c7c 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -17,6 +17,7 @@ # DY_BUILD_VARIANTS: Build all platform variants # DY_PLATFORMS: Platforms to build # DY_REVISION: Revision of the manifest repository (for 'repo init') +# DY_TARGET: Target image (the default is 'del-image-minimal') # DY_USE_MIRROR: Use internal Digi mirror to download packages # #=============================================================================== @@ -65,6 +66,7 @@ copy_images() { [ -z "${DY_BUILD_VARIANTS}" ] && error "DY_BUILD_VARIANTS not specified" [ -z "${DY_PLATFORMS}" ] && error "DY_PLATFORMS not specified" [ -z "${DY_REVISION}" ] && error "DY_REVISION not specified" +[ -z "${DY_TARGET}" ] && DY_TARGET="del-image-minimal" [ -z "${DY_USE_MIRROR}" ] && error "DY_USE_MIRROR not specified" [ -z "${WORKSPACE}" ] && error "WORKSPACE not specified" @@ -134,7 +136,7 @@ for platform in ${DY_PLATFORMS}; do conf/local.conf [ "${DY_USE_MIRROR}" = "true" ] && printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf [ "${DY_BUILD_VARIANTS}" = "true" ] && printf "\nINHERIT += \"rm_work\"\n" >> conf/local.conf - time bitbake del-image-minimal + time bitbake ${DY_TARGET} ) copy_images ${_this_img_dir} popd