Skip to contentSkip to conversation

image.bbclass: set consistent staging dirs

PATCH In review [email protected] 1 participant 3 messages Oct 15, 2018

lore
Share & tools
lore
#0 lore raw

v2 cover image.bbclass: set consistent staging dirs

From: Kai Kang <[email protected]>

V2:
* set consistent staging dirs for all images

The following changes since commit b02f3bfe2fee291a9db85094e5f31b1933acf871:

local.conf.sample.extended: add another warning to comment about GLIBC_GENERATE_LOCALES (2018-10-14 23:45:40 +0100)

are available in the Git repository at:

git://git.pokylinux.org/poky-contrib kangkai/image
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/image

Kai Kang (1):
image.bbclass: set consistent staging dirs

 meta/classes/image.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/1 image.bbclass: set consistent staging dirs

From: Kai Kang <[email protected]>

When enable multilib, staging dirs are expanded with ${MLPREFIX} in multilib.conf. For multilib image such as lib32-core-image-minimal, it requires 64 bit packages at some situation. For example, it requires syslinux, grub-efi etc when build 'wic' rootfs. But these 64 bit packages are populated to 'recipe-sysroot' rather than 'lib32-recipe-sysroot'. And then causes do image fails.

Set consistent staging dirs for image to fix such issues.

---
 meta/classes/image.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
meta/classes/image.bbclass +5 -0
index 34fdbb0850..8e958ba919 100644
@@ -603,6 +603,11 @@ MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${l
 MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"
 MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib"
 
+# set consistent staging dirs
+RECIPE_SYSROOT = "${WORKDIR}/recipe-sysroot"
+STAGING_DIR_HOST = "${WORKDIR}/recipe-sysroot"
+STAGING_DIR_TARGET = "${WORKDIR}/recipe-sysroot"
+
 do_fetch[noexec] = "1"
 do_unpack[noexec] = "1"
 do_patch[noexec] = "1"
Signature · 1 line
2.18.0
author
#2 lore raw
In reply to [email protected]
Quoted 4 lines · On 2018年10月15日 14:31, [email protected] wrote:

From: Kai Kang <[email protected]>

V2:
* set consistent staging dirs for all images

Missing Richard's comment, please ignore this patch.

--Kai

Quoted 17 lines

The following changes since commit b02f3bfe2fee291a9db85094e5f31b1933acf871:

   local.conf.sample.extended: add another warning to comment about GLIBC_GENERATE_LOCALES (2018-10-14 23:45:40 +0100)

are available in the Git repository at:

git://git.pokylinux.org/poky-contrib kangkai/image
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/image

Kai Kang (1):
image.bbclass: set consistent staging dirs

  meta/classes/image.bbclass | 5 +++++
  1 file changed, 5 insertions(+)
Signature · 2 lines
Regards,
Neil | Kai Kang