]> code.ossystems Code Review - openembedded-core.git/commit
classes/package: Use HOST_OS for runtime dependencies
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 21 Jul 2020 17:52:19 +0000 (12:52 -0500)
committerSteve Sakoman <steve@sakoman.com>
Fri, 24 Jul 2020 14:34:49 +0000 (04:34 -1000)
commit2541b5be1e9c2c33ca8017130461a19f8734d883
treea14c4f9fe8245af30a21611dff793022aead6d11
parent59b8c49a54b8977ba2f3ed4f33f0fd3f7dd749d5
classes/package: Use HOST_OS for runtime dependencies

The code was using TARGET_OS to try and detect what type of OS the
packages would be running on, but this is incorrect. TARGET_OS is the OS
for which the package will generate output (e.g. GCC output target or
GDB debugging target). The OS where the package will run is the HOST_OS.
Note that HOST_OS only differs from TARGET_OS when doing a
canadian cross compile, and even then in our case only when doing so for
a non-Linux host (e.g. MinGW).

Fix the code to use HOST_OS instead.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f284c5b2df220b520b025a59874e04ef4becd829)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/package.bbclass