qemux86: wic: Add MLPREFIX to syslinux
PATCH v2 1/1 qemux86: wic: Add MLPREFIX to syslinux
Fix the following do_image_wic failure for lib32-core-image-minimal:
| DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_wic | Error: Please build syslinux first
Test case:
MACHINE ?= "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_FSTYPES_append = " wic wic.bmap"
$ bitbake lib32-core-image-minimal
Currently, syslinux gets built instead of lib32-syslinux, so do_image_wic doesn't find the right files into tmp/sysroots/lib32-qemux86-64 sysroot.
Pyro and later releases are not affected by this issue because they are based on Recipe Specific Sysroot, so syslinux binaries end up in the right place.
--- meta/conf/machine/qemux86-64.conf | 2 +- meta/conf/machine/qemux86.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/machine/qemux86-64.conf +1 -1
@@ -33,4 +33,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE ?= "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
meta/conf/machine/qemux86.conf +1 -1
@@ -32,4 +32,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE = "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
Signature · 1 line
2.17.1
Quoted 15 lines · Ovidiu Panait
Fix the following
do_image_wicfailure for lib32-core-image-minimal:| DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_wic | Error: Please build syslinux firstTest case:
MACHINE ?= "qemux86-64"require
conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_FSTYPES_append= " wic wic.bmap"
Quoted 8 lines
$ bitbake lib32-core-image-minimalCurrently, syslinux gets built instead of lib32-syslinux, so
do_image_wicdoesn't find the right files into tmp/sysroots/lib32-qemux86-64 sysroot.Pyro and later releases are not affected by this issue because they are based on Recipe Specific Sysroot, so syslinux binaries end up in the right place.
How does RSS help with this issue? It still builds the wrong version of syslinux, doesn't it?
Quoted 34 lines
Signed-off-by Ovidiu Panait <[email protected]>--- meta/conf/machine/qemux86-64.conf | 2 +- meta/conf/machine/qemux86.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)meta/conf/machine/qemux86-64.conf +1
-1@@ -33,4 +33,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE ?= "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"meta/conf/machine/qemux86.conf +1
-1@@ -32,4 +32,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE = "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"Signature · 7 lines
2.17.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 18 lines · Martin Jansa
Quoted 17 lines · Ovidiu Panait
Fix the following
do_image_wicfailure for lib32-core-image-minimal:| DEBUG: Executing python function set_image_size | DEBUG: Python function set_image_size finished | DEBUG: Executing shell function do_image_wic | Error: Please build syslinux firstTest case:
MACHINE ?= "qemux86-64"require
conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_FSTYPES_append= " wic wic.bmap"$ bitbake lib32-core-image-minimal
Quoted 8 lines
Quoted 6 lines
Currently, syslinux gets built instead of lib32-syslinux, so
do_image_wicdoesn't find the right files into tmp/sysroots/lib32-qemux86-64 sysroot.Pyro and later releases are not affected by this issue because they are based on Recipe Specific Sysroot, so syslinux binaries end up in the right place.
How does RSS help with this issue? It still builds the wrong version of syslinux, doesn't it?
Hi,
It seems that do_image_wic needs some files that are independent of the architecture syslinux is built for.
$ cat scripts/lib/wic/plugins/source/bootimg-pcbios.py
...
cmds = ("install -m 0644 %s/bzImage %s/vmlinuz" %
(staging_kernel_dir, hdddir),
"install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" %
(bootimg_dir, hdddir),
"install -m 0644 %s/syslinux/vesamenu.c32 %s/vesamenu.c32" %
(bootimg_dir, hdddir),
"install -m 444 %s/syslinux/libcom32.c32 %s/libcom32.c32" %
(bootimg_dir, hdddir),
"install -m 444 %s/syslinux/libutil.c32 %s/libutil.c32" %
(bootimg_dir, hdddir))
...These files are provided by both syslinux and lib32-syslinux, but before RSS, they will be present in the 64bit sysroot, not the lib32 one, so wic won't find them when building lib32-core-image-minimal.
With RSS, all binaries are in the same sysroot directory:
$ ls -1 tmp/work/qemux86_64-pokymllib32-linux/lib32-core-image-minimal/1.0-r0/lib32-recipe-sysroot/usr/share/syslinux ... ldlinux.sys libcom32.c32 libutil.c32 vesamenu.c32 ...
Thanks,
Ovidiu
Quoted 34 lines
Quoted 34 lines
Signed-off-by Ovidiu Panait <[email protected]>--- meta/conf/machine/qemux86-64.conf | 2 +- meta/conf/machine/qemux86.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)meta/conf/machine/qemux86-64.conf +1
-1@@ -33,4 +33,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE ?= "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"meta/conf/machine/qemux86.conf +1
-1@@ -32,4 +32,4 @@ MACHINE_FEATURES += "x86" MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d" WKS_FILE = "directdisk.wks" -do_image_wic[depends] += "syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" +do_image_wic[depends] += "${MLPREFIX}syslinux:do_build syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"Signature · 7 lines
2.17.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core