Skip to content

Instantly share code, notes, and snippets.

@bartosh
Created January 19, 2017 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartosh/3ffe10879b58c1ef402d2c1e1c7829d7 to your computer and use it in GitHub Desktop.
Save bartosh/3ffe10879b58c1ef402d2c1e1c7829d7 to your computer and use it in GitHub Desktop.
[ed@vmed build (test)]$ bitbake core-image-minimal
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:11
Parsing of 867 .bb files complete (0 cached, 867 parsed). 1324 targets, 52 skipped, 0 masked, 0 errors.
NOTE: There are 4 recipes to be removed from sysroot x86_64, removing...
NOTE: There are 7 recipes to be removed from sysroot core2-64, removing...
NOTE: There are 7 recipes to be removed from sysroot qemux86-64, removing...
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "2.2"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp
meta-selftest = "test:7438636c65ed7a37edab6d4d23f9cfe139a5854f"
Initialising tasks: 100% |############################################################################################################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2128 tasks of which 46 didn't need to be rerun and all succeeded.
[ed@vmed build (test)]$ wic create directdisk -e core-image-minimal
Checking basic build environment...
Done.
Build artifacts not found, exiting.
(Please check that the build artifacts for the machine
selected in local.conf actually exist and that they
are the correct artifacts for the image (.wks file)).
The artifact that couldn't be found was native-sysroot:
/home/ed/git/yocto/poky/build/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native
[ed@vmed build (test)]$
[ed@vmed build (test)]$
[ed@vmed build (test)]$ vi ../meta/classes/image_types.bbclass
[ed@vmed build (test)]$ git diff | cat
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index b7c3da6..a5b6859 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -218,7 +218,7 @@ IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES"
USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${CONVERSIONTYPES}'.split()), '1', '', d)}"
WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}"
do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}"
-do_image_wic[depends] += "wic-tools:do_build"
+do_image[depends] += "wic-tools:do_build"
python () {
if d.getVar('USING_WIC') and 'do_bootimg' in d:
[ed@vmed build (test)]$ bitbake core-image-minimal
Loading cache: 100% |#################################################################################################################################################| Time: 0:00:00
Loaded 1324 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:00
Parsing of 867 .bb files complete (840 cached, 27 parsed). 1324 targets, 52 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "2.2"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp
meta-selftest = "test:7438636c65ed7a37edab6d4d23f9cfe139a5854f"
Initialising tasks: 100% |############################################################################################################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2339 tasks of which 2122 didn't need to be rerun and all succeeded.
[ed@vmed build (test)]$ wic create directdisk -e core-image-minimal
Checking basic build environment...
Done.
Creating image(s)...
Info: The new image(s) can be found here:
/var/tmp/wic/build/directdisk-201701191413-sda.direct
The following build artifacts were used to create the image(s):
ROOTFS_DIR: /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
BOOTIMG_DIR: /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/share
KERNEL_DIR: /home/ed/git/yocto/poky/build/tmp/deploy/images/qemux86-64
NATIVE_SYSROOT: /home/ed/git/yocto/poky/build/tmp/work/core2-64-poky-linux/wic-tools/1.0-r0/recipe-sysroot-native
The image(s) were created using OE kickstart file:
/home/ed/git/yocto/poky/scripts/lib/wic/canned-wks/directdisk.wks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment