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 <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2013-05-22 11:33:37 +02:00
parent 53f6acf707
commit 7bb61a45b9
1 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@
# DY_BUILD_VARIANTS: Build all platform variants # DY_BUILD_VARIANTS: Build all platform variants
# DY_PLATFORMS: Platforms to build # DY_PLATFORMS: Platforms to build
# DY_REVISION: Revision of the manifest repository (for 'repo init') # 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 # 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_BUILD_VARIANTS}" ] && error "DY_BUILD_VARIANTS not specified"
[ -z "${DY_PLATFORMS}" ] && error "DY_PLATFORMS not specified" [ -z "${DY_PLATFORMS}" ] && error "DY_PLATFORMS not specified"
[ -z "${DY_REVISION}" ] && error "DY_REVISION 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 "${DY_USE_MIRROR}" ] && error "DY_USE_MIRROR not specified"
[ -z "${WORKSPACE}" ] && error "WORKSPACE not specified" [ -z "${WORKSPACE}" ] && error "WORKSPACE not specified"
@ -134,7 +136,7 @@ for platform in ${DY_PLATFORMS}; do
conf/local.conf conf/local.conf
[ "${DY_USE_MIRROR}" = "true" ] && printf "${DIGI_PREMIRROR_CFG}" >> 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 [ "${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} copy_images ${_this_img_dir}
popd popd