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:
parent
53f6acf707
commit
7bb61a45b9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue