diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-01-30 17:39:12 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-15 09:29:56 -0800 |
commit | fd1ecec6a9cf88ae3c2996e16f4565167b156ed8 (patch) | |
tree | 9d736f86fec4ddd2eb805b75e9ab33b382657adb | |
parent | b6939b73926c692d6026119d428af192ffa7ea8b (diff) | |
download | poky-fd1ecec6a9cf88ae3c2996e16f4565167b156ed8.tar.gz |
image.bbclass: Use 'populate_sdk_base' for non-linux targets
When 'populate_sdk_ext' was first introduced in commit bf81d6bb7f6 it
replaced the inheriting of 'populate_sdk_base'. For non-linux targets
building the extensible SDK caused build errors, and the image class was
changed to inherit 'populate_sdk' when targeting a non-linux SDK_OS (in
commmit e471ce3464d). However inheriting 'populate_sdk' instead of
'populate_sdk_base' causes the SDK to always be built, this is not
expected for the image class.
This change makes the image class inherit 'populate_sdk_base' in the
non-linux SDK_OS case so that it behaves the same as it is expected to
behave where 'bitbake <image> -c populate_sdk' must be executed to
generate the SDK deployables.
(From OE-Core rev: b7d6bb07fd37c55d07903a1e8921f17e39afde0a)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/image.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 25e00f5daf..5c9dc62861 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -1,8 +1,8 @@ | |||
1 | inherit rootfs_${IMAGE_PKGTYPE} | 1 | inherit rootfs_${IMAGE_PKGTYPE} |
2 | 2 | ||
3 | # Only Linux SDKs support populate_sdk_ext, fall back to populate_sdk | 3 | # Only Linux SDKs support populate_sdk_ext, fall back to populate_sdk_base |
4 | # in the non-Linux SDK_OS case, such as mingw32 | 4 | # in the non-Linux SDK_OS case, such as mingw32 |
5 | SDKEXTCLASS ?= "${@['populate_sdk', 'populate_sdk_ext']['linux' in d.getVar("SDK_OS")]}" | 5 | SDKEXTCLASS ?= "${@['populate_sdk_base', 'populate_sdk_ext']['linux' in d.getVar("SDK_OS")]}" |
6 | inherit ${SDKEXTCLASS} | 6 | inherit ${SDKEXTCLASS} |
7 | 7 | ||
8 | TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" | 8 | TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" |