package/uclibc: add backtrace support option
A message that is not in the archive (sent off-list or not yet received): 20210109161900.51824
PATCH v2 1/1 package/uclibc: add backtrace support option
Add toolchain configuration to support execinfo.h and backtrace features.
---
Changes v1 -> v2:
- add dependncy on shared lib (suggested by Yann Morin)
package/uclibc/Config.in | 8 ++++++++ package/uclibc/uclibc.mk | 11 +++++++++++ 2 files changed, 19 insertions(+)
package/uclibc/Config.in +8 -0
@@ -39,6 +39,14 @@ config BR2_TOOLCHAIN_BUILDROOT_LOCALE Enable this option if you want your toolchain to support localization and internationalization. +config BR2_TOOLCHAIN_BUILDROOT_BACKTRACE + bool "Enable backtrace support" + depends on !BR2_STATIC_LIBS + select BR2_USE_BACKTRACE + help + Enable this option if you want your toolchain to support + execinfo.h and backtrace features. + choice prompt "Thread library implementation" help
package/uclibc/uclibc.mk +11 -0
@@ -359,6 +359,16 @@ else UCLIBC_SHARED_LIBS_CONFIG = $(call KCONFIG_ENABLE_OPT,HAVE_SHARED) endif +# +# backtrace support +# + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_BACKTRACE),y) +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_ENABLE_OPT,UCLIBC_HAS_BACKTRACE) +else +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_BACKTRACE) +endif + # # Commands #
@@ -401,6 +411,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS $(UCLIBC_LOCALE_CONFIG) $(UCLIBC_WCHAR_CONFIG) $(UCLIBC_SHARED_LIBS_CONFIG) + $(UCLIBC_BACKTRACE_CONFIG) endef define UCLIBC_BUILD_CMDS
Signature · 1 line
2.25.1
PATCH v2 1/1 package/uclibc: add backtrace support option
Andrea, All,
On 2021-01-11 12:03 +0100, Andrea Ricchi spake thusly:
Quoted 17 lines
Add toolchain configuration to support
execinfo.hand backtrace features.Signed-off-by Andrea Ricchi <[email protected]>---
Changes v1 -> v2:
- add dependncy on shared lib (suggested by Yann Morin)package/uclibc/Config.in | 8 ++++++++ package/uclibc/uclibc.mk | 11 +++++++++++ 2 files changed, 19 insertions(+)package/uclibc/Config.in +0
-0
package/uclibc/Config.in config BR2_TOOLCHAIN_BUILDROOT_LOCALE · line 45
Quoted 7 lines
package/uclibc/Config.in +4
-0@@ -39,6 +39,14 @@ config BR2_TOOLCHAIN_BUILDROOT_LOCALE Enable this option if you want your toolchain to support localization and internationalization. +config BR2_TOOLCHAIN_BUILDROOT_BACKTRACE + bool "Enable backtrace support" + depends on !BR2_STATIC_LIBS + select BR2_USE_BACKTRACE
As I already pointed out in my initial review [0]: BR2_USE_BACKTRACE does not exist in Buildroot.
[0] http://lists.busybox.net/pipermail/buildroot/2021-January/300396.html
Regards,
Yann E. MORIN.
Quoted 43 lines
package/uclibc/Config.in +4
-0+ help + Enable this option if you want your toolchain to support + execinfo.h and backtrace features. + choice prompt "Thread library implementation" helppackage/uclibc/uclibc.mk +11
-0@@ -359,6 +359,16 @@ else UCLIBC_SHARED_LIBS_CONFIG = $(call KCONFIG_ENABLE_OPT,HAVE_SHARED) endif +# +# backtrace support +# + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_BACKTRACE),y) +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_ENABLE_OPT,UCLIBC_HAS_BACKTRACE) +else +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_BACKTRACE) +endif + # # Commands #@@ -401,6 +411,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS $(UCLIBC_LOCALE_CONFIG) $(UCLIBC_WCHAR_CONFIG) $(UCLIBC_SHARED_LIBS_CONFIG) + $(UCLIBC_BACKTRACE_CONFIG) endef define UCLIBC_BUILD_CMDSSignature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'