diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2025-10-10 15:52:56 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:15:35 +0000 |
| commit | f59cd4fb8d3b40d0c5be38e1b6941d512fb02245 (patch) | |
| tree | 7e663798e1c9fea7c0bbc1d4a758aa7df5d820ab | |
| parent | d8974e3ae4c1c02c8dd6b291cda6c878380c1065 (diff) | |
| download | poky-f59cd4fb8d3b40d0c5be38e1b6941d512fb02245.tar.gz | |
debug_build.inc: override INHIBIT_SYSROOT_STRIP for cross and native
The debug_build.inc is used to collect debug build configuration,
override INHIBIT_SYSROOT_STRIP for cross and native bbclass when DEBUG_BUILD
is enabled
(From OE-Core rev: 5fcf648d625076ed8bc1aac97e8866d1a0782183)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/cross.bbclass | 3 | ||||
| -rw-r--r-- | meta/classes-recipe/native.bbclass | 3 | ||||
| -rw-r--r-- | meta/conf/distro/include/debug_build.inc | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes-recipe/cross.bbclass b/meta/classes-recipe/cross.bbclass index 9abf166e50..ede04950b5 100644 --- a/meta/classes-recipe/cross.bbclass +++ b/meta/classes-recipe/cross.bbclass | |||
| @@ -23,8 +23,7 @@ HOST_CC_ARCH = "${BUILD_CC_ARCH}" | |||
| 23 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" | 23 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" |
| 24 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" | 24 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" |
| 25 | 25 | ||
| 26 | # No strip sysroot when DEBUG_BUILD is enabled | 26 | INHIBIT_SYSROOT_STRIP ??= "" |
| 27 | INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" | ||
| 28 | 27 | ||
| 29 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" | 28 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir} /lib /lib64 /usr/lib /usr/lib64" |
| 30 | 29 | ||
diff --git a/meta/classes-recipe/native.bbclass b/meta/classes-recipe/native.bbclass index 7d1fe343fa..b3411d20ca 100644 --- a/meta/classes-recipe/native.bbclass +++ b/meta/classes-recipe/native.bbclass | |||
| @@ -118,8 +118,7 @@ PATH:prepend = "${COREBASE}/scripts/native-intercept:" | |||
| 118 | # reused if we manipulate the paths. | 118 | # reused if we manipulate the paths. |
| 119 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" | 119 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" |
| 120 | 120 | ||
| 121 | # No strip sysroot when DEBUG_BUILD is enabled | 121 | INHIBIT_SYSROOT_STRIP ??= "" |
| 122 | INHIBIT_SYSROOT_STRIP ?= "${@oe.utils.vartrue('DEBUG_BUILD', '1', '', d)}" | ||
| 123 | 122 | ||
| 124 | python native_virtclass_handler () { | 123 | python native_virtclass_handler () { |
| 125 | import re | 124 | import re |
diff --git a/meta/conf/distro/include/debug_build.inc b/meta/conf/distro/include/debug_build.inc index c006093345..1062326417 100644 --- a/meta/conf/distro/include/debug_build.inc +++ b/meta/conf/distro/include/debug_build.inc | |||
| @@ -40,3 +40,7 @@ EXTRA_OECONF:append:pn-nativesdk-debugedit = " --disable-inlined-xxhash" | |||
| 40 | lcl_maybe_fortify:pn-vim = "" | 40 | lcl_maybe_fortify:pn-vim = "" |
| 41 | 41 | ||
| 42 | CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" | 42 | CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" |
| 43 | |||
| 44 | # No strip sysroot for cross and native | ||
| 45 | INHIBIT_SYSROOT_STRIP:class-cross ?= "1" | ||
| 46 | INHIBIT_SYSROOT_STRIP:class-native ?= "1" | ||
