]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging: Add dependency on virtual/binutils for strip binary
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jan 2017 13:30:02 +0000 (13:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2017 22:45:54 +0000 (22:45 +0000)
The staging code strips binaries and we need virtual/binutils for that.
Add a specific dependency since the one from do_configure and others
may not be enough to ensure the binaries are in our own sysroot.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/allarch.bbclass
meta/classes/image.bbclass
meta/classes/staging.bbclass

index 9dce49879a691f5a752690223772bb6b46d6655c..026214ea9a20ab69f44300ff45e8c7bd17d922f2 100644 (file)
@@ -32,6 +32,7 @@ python () {
         d.setVar("TARGET_CFLAGS", "none")
         d.setVar("TARGET_CXXFLAGS", "none")
         d.setVar("TARGET_LDFLAGS", "none")
+        d.setVar("POPULATESYSROOTDEPS", "")
 
         # Avoid this being unnecessarily different due to nuances of
         # the target machine that aren't important for "all" arch
index 04fd5f996179b346e84a0a95ac5a1251e04e9552..6b0864913b5e4884295acf38c08790eb7d3f3bb1 100644 (file)
@@ -96,6 +96,10 @@ LDCONFIGDEPEND_libc-musl = ""
 # don't want this dependency, which is causing dependency loop
 KERNELDEPMODDEPEND ?= "virtual/kernel:do_packagedata"
 
+# POPULATESYSROOTDEPS fails to expand correctly with multilibs since overrides aren't set for image.bbclass
+# we don't need these depends so just clear them
+do_populate_sysroot[depends] = ""
+
 do_rootfs[depends] += " \
     makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND} \
     virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot \
index 72a7421ba616b965103a1128f41f801044383031..2512ae6f5da09034ded55f40166163ea0ee1dca8 100644 (file)
@@ -228,6 +228,10 @@ python do_populate_sysroot () {
 do_populate_sysroot[vardeps] += "${SYSROOT_PREPROCESS_FUNCS}"
 do_populate_sysroot[vardepsexclude] += "MULTI_PROVIDER_WHITELIST"
 
+POPULATESYSROOTDEPS = ""
+POPULATESYSROOTDEPS_class-target = "virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot"
+do_populate_sysroot[depends] += "${POPULATESYSROOTDEPS}"
+
 SSTATETASKS += "do_populate_sysroot"
 do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}"
 do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}"