diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-12-13 10:45:52 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-02 17:24:37 +0000 |
commit | e18b7e77ed717c2248ab1d10dc6faf6f2d3d4b5d (patch) | |
tree | 0f2223bff91ad15d5f37be5201e1d1a84b3b1563 /meta | |
parent | 31fae5fa7bb7ddbd9d2251ff54439838a9559b18 (diff) | |
download | poky-e18b7e77ed717c2248ab1d10dc6faf6f2d3d4b5d.tar.gz |
image-live.bbclass: add MLPREFIX to core-image-minimal-initramfs
The 32bit core-image-minimal-initramfs should be built when build lib32-iso, e.g.:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_FSTYPES += "iso"
$ bitbake lib32-core-image-minimal
Exception: FileExistsError: [Errno 17] File exists: '/path/to/tmp/sysroots-components/core2-64/qemuwrapper-cross/usr/bin/crossscripts/qemuwrapper' -> '/path/to/tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/lib32-recipe-sysroot/usr/bin/crossscripts/qemuwrapper'
This was because:
lib32-core-image-minimal -> core-image-minimal-initramfs
core-image-minimal-initramfs -> qemuwrapper-cross
lib32-core-image-minimal -> lib32-qemuwrapper-cross
So we got the error, build lib32-core-image-minimal-initramfs can fix the problem.
(From OE-Core rev: eee3ec805cf150f1c701427a2d182a537a67e8f5)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image-live.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass index 8ec6af0f6b..1623c15988 100644 --- a/meta/classes/image-live.bbclass +++ b/meta/classes/image-live.bbclass | |||
@@ -40,7 +40,7 @@ do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \ | |||
40 | 40 | ||
41 | LABELS_LIVE ?= "boot install" | 41 | LABELS_LIVE ?= "boot install" |
42 | ROOT_LIVE ?= "root=/dev/ram0" | 42 | ROOT_LIVE ?= "root=/dev/ram0" |
43 | INITRD_IMAGE_LIVE ?= "core-image-minimal-initramfs" | 43 | INITRD_IMAGE_LIVE ?= "${MLPREFIX}core-image-minimal-initramfs" |
44 | INITRD_LIVE ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.cpio.gz" | 44 | INITRD_LIVE ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}-${MACHINE}.cpio.gz" |
45 | 45 | ||
46 | LIVE_ROOTFS_TYPE ?= "ext4" | 46 | LIVE_ROOTFS_TYPE ?= "ext4" |
diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb index 5794a25952..c446e87bd1 100644 --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb | |||
@@ -8,7 +8,7 @@ PACKAGE_INSTALL = "initramfs-live-boot initramfs-live-install initramfs-live-ins | |||
8 | # Do not pollute the initrd image with rootfs features | 8 | # Do not pollute the initrd image with rootfs features |
9 | IMAGE_FEATURES = "" | 9 | IMAGE_FEATURES = "" |
10 | 10 | ||
11 | export IMAGE_BASENAME = "core-image-minimal-initramfs" | 11 | export IMAGE_BASENAME = "${MLPREFIX}core-image-minimal-initramfs" |
12 | IMAGE_LINGUAS = "" | 12 | IMAGE_LINGUAS = "" |
13 | 13 | ||
14 | LICENSE = "MIT" | 14 | LICENSE = "MIT" |