diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-24 16:03:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 15:30:04 +0000 |
commit | 4668db81755c56eba592b7f180e8882dd6835f0c (patch) | |
tree | 659ff5bc8f2a3ff029da205f004f1397f394ec42 /meta/classes/insane.bbclass | |
parent | 085941279b6b799aed003594fdc7b2786f93d5d8 (diff) | |
download | poky-4668db81755c56eba592b7f180e8882dd6835f0c.tar.gz |
insane: use HOST_ variables, not TARGET_ to determine the cross system
Almost everywhere those are the same, except when making a cross toolchain
where HOST_ is where it's going to run, and TARGET_ is what it's going to
produce.
(From OE-Core rev: cd25e5544ca3f48cc4c32001e917aa3dc20dd79a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 4fc3c06c64..890e865a8f 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -325,8 +325,8 @@ def package_qa_check_arch(path,name,d, elf, messages): | |||
325 | if not elf: | 325 | if not elf: |
326 | return | 326 | return |
327 | 327 | ||
328 | target_os = d.getVar('TARGET_OS') | 328 | target_os = d.getVar('HOST_OS') |
329 | target_arch = d.getVar('TARGET_ARCH') | 329 | target_arch = d.getVar('HOST_ARCH') |
330 | provides = d.getVar('PROVIDES') | 330 | provides = d.getVar('PROVIDES') |
331 | bpn = d.getVar('BPN') | 331 | bpn = d.getVar('BPN') |
332 | 332 | ||
@@ -691,8 +691,8 @@ def prepopulate_objdump_p(elf, d): | |||
691 | # Walk over all files in a directory and call func | 691 | # Walk over all files in a directory and call func |
692 | def package_qa_walk(warnfuncs, errorfuncs, package, d): | 692 | def package_qa_walk(warnfuncs, errorfuncs, package, d): |
693 | #if this will throw an exception, then fix the dict above | 693 | #if this will throw an exception, then fix the dict above |
694 | target_os = d.getVar('TARGET_OS') | 694 | target_os = d.getVar('HOST_OS') |
695 | target_arch = d.getVar('TARGET_ARCH') | 695 | target_arch = d.getVar('HOST_ARCH') |
696 | 696 | ||
697 | warnings = {} | 697 | warnings = {} |
698 | errors = {} | 698 | errors = {} |