diff options
-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): | |||
193 | if searched: | 193 | if searched: |
194 | return searched | 194 | return searched |
195 | 195 | ||
196 | WIC_CREATE_EXTRA_ARGS ?= "" | ||
197 | |||
196 | IMAGE_CMD_wic () { | 198 | IMAGE_CMD_wic () { |
197 | out="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}" | 199 | out="${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}" |
198 | wks="${WKS_FULL_PATH}" | 200 | wks="${WKS_FULL_PATH}" |
@@ -200,7 +202,7 @@ IMAGE_CMD_wic () { | |||
200 | bbfatal "No kickstart files from WKS_FILES were found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES appropriately." | 202 | bbfatal "No kickstart files from WKS_FILES were found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES appropriately." |
201 | fi | 203 | fi |
202 | 204 | ||
203 | BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR_TARGET}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" | 205 | BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR_TARGET}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" ${WIC_CREATE_EXTRA_ARGS} |
204 | mv "$out/build/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic" | 206 | mv "$out/build/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic" |
205 | rm -rf "$out/" | 207 | rm -rf "$out/" |
206 | } | 208 | } |