summaryrefslogtreecommitdiffstats
path: root/scripts/lib/image/engine.py
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2015-02-20 14:14:01 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-21 22:05:35 +0000
commitb4a936a938cb914fc62add7a3e535915946aee81 (patch)
treecc253f21a256fd81f686fd60f1da52c8f5fe05c6 /scripts/lib/image/engine.py
parent629b91b4be44ec32f007c55d4cad7cd9ee50006f (diff)
downloadpoky-b4a936a938cb914fc62add7a3e535915946aee81.tar.gz
wic: Fix kernel dir location
With the recent kernel staging changes, STAGING_KERNEL_DIR no longer points to the kernel image, which can be found however in DEPLOY_DIR_IMAGE. This updates find_artifacts() to look there instead. Fixes [YOCTO #7307]. (From OE-Core rev: 453d0a9823665870e273a37657d6e27fb788d72e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/image/engine.py')
-rw-r--r--scripts/lib/image/engine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py
index e794545e94..68d1ce2659 100644
--- a/scripts/lib/image/engine.py
+++ b/scripts/lib/image/engine.py
@@ -73,8 +73,8 @@ def find_artifacts(image_name):
73 if (get_line_val(line, "IMAGE_ROOTFS")): 73 if (get_line_val(line, "IMAGE_ROOTFS")):
74 rootfs_dir = get_line_val(line, "IMAGE_ROOTFS") 74 rootfs_dir = get_line_val(line, "IMAGE_ROOTFS")
75 continue 75 continue
76 if (get_line_val(line, "STAGING_KERNEL_DIR")): 76 if (get_line_val(line, "DEPLOY_DIR_IMAGE")):
77 kernel_dir = get_line_val(line, "STAGING_KERNEL_DIR") 77 kernel_dir = get_line_val(line, "DEPLOY_DIR_IMAGE")
78 continue 78 continue
79 if (get_line_val(line, "STAGING_DIR_NATIVE")): 79 if (get_line_val(line, "STAGING_DIR_NATIVE")):
80 native_sysroot = get_line_val(line, "STAGING_DIR_NATIVE") 80 native_sysroot = get_line_val(line, "STAGING_DIR_NATIVE")
@@ -200,7 +200,7 @@ def wic_create(args, wks_file, rootfs_dir, bootimg_dir, kernel_dir,
200 values from the output of 'bitbake -e': 200 values from the output of 'bitbake -e':
201 201
202 rootfs_dir: IMAGE_ROOTFS 202 rootfs_dir: IMAGE_ROOTFS
203 kernel_dir: STAGING_KERNEL_DIR 203 kernel_dir: DEPLOY_DIR_IMAGE
204 native_sysroot: STAGING_DIR_NATIVE 204 native_sysroot: STAGING_DIR_NATIVE
205 205
206 In the above case, bootimg_dir remains unset and the 206 In the above case, bootimg_dir remains unset and the