diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-05-02 17:06:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 08:03:57 +0100 |
commit | 90b2738fb07e329cb6b867fb37a929d562f27d15 (patch) | |
tree | a6134088a2bc48565b69360a40afe6b7d80f7cb8 /meta | |
parent | c693f34f54257a8eca9fe8c5a9eee5647b7eeb0c (diff) | |
download | openembedded-core-90b2738fb07e329cb6b867fb37a929d562f27d15.tar.gz openembedded-core-90b2738fb07e329cb6b867fb37a929d562f27d15.tar.bz2 openembedded-core-90b2738fb07e329cb6b867fb37a929d562f27d15.zip |
image_types.bbclass: add WIC_CREATE_EXTRA_ARGS
This'll be of use to pass things like --bmap.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 53af7ca8dc..0b9758e42b 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -193,6 +193,8 @@ def wks_search(files, search_path): if searched: return searched +WIC_CREATE_EXTRA_ARGS ?= "" + IMAGE_CMD_wic () { out="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}" wks="${WKS_FULL_PATH}" @@ -200,7 +202,7 @@ IMAGE_CMD_wic () { bbfatal "No kickstart files from WKS_FILES were found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES appropriately." fi - BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR_TARGET}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" + BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR_TARGET}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" ${WIC_CREATE_EXTRA_ARGS} mv "$out/build/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic" rm -rf "$out/" } |