diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-24 16:03:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 15:30:04 +0000 |
commit | 085941279b6b799aed003594fdc7b2786f93d5d8 (patch) | |
tree | cb92745753954ac1bdb2c172d842a96f8700c2c4 /meta/classes/staging.bbclass | |
parent | c99211fa6fca4917ebd542ed3c098a4dccaeb1b4 (diff) | |
download | poky-085941279b6b799aed003594fdc7b2786f93d5d8.tar.gz |
base/staging: use HOST_PREFIX, not TARGET_PREFIX
This matters when cross-compiling a cross-toolchain:
we need to specify the system where the toolchain
will run, not the system it will produce output for.
For everything else, HOST and TARGET are the same.
(From OE-Core rev: 03679622c5d1088e96d3d2a444c99021e5ae6ee6)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/staging.bbclass')
-rw-r--r-- | meta/classes/staging.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 65499283da..ab827766be 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -119,8 +119,8 @@ do_populate_sysroot[vardeps] += "${SYSROOT_PREPROCESS_FUNCS}" | |||
119 | do_populate_sysroot[vardepsexclude] += "BB_MULTI_PROVIDER_ALLOWED" | 119 | do_populate_sysroot[vardepsexclude] += "BB_MULTI_PROVIDER_ALLOWED" |
120 | 120 | ||
121 | POPULATESYSROOTDEPS = "" | 121 | POPULATESYSROOTDEPS = "" |
122 | POPULATESYSROOTDEPS:class-target = "virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot" | 122 | POPULATESYSROOTDEPS:class-target = "virtual/${MLPREFIX}${HOST_PREFIX}binutils:do_populate_sysroot" |
123 | POPULATESYSROOTDEPS:class-nativesdk = "virtual/${TARGET_PREFIX}binutils-crosssdk:do_populate_sysroot" | 123 | POPULATESYSROOTDEPS:class-nativesdk = "virtual/${HOST_PREFIX}binutils-crosssdk:do_populate_sysroot" |
124 | do_populate_sysroot[depends] += "${POPULATESYSROOTDEPS}" | 124 | do_populate_sysroot[depends] += "${POPULATESYSROOTDEPS}" |
125 | 125 | ||
126 | SSTATETASKS += "do_populate_sysroot" | 126 | SSTATETASKS += "do_populate_sysroot" |