From: penman <paul.enman@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] [1/1] package/uclibc: Enable compile in thumb mode when selected
Date: Fri, 4 Dec 2015 16:56:35 -0600 [thread overview]
Message-ID: <1449269795-17864-1-git-send-email-paul.enman@gmail.com> (raw)
Signed-off-by: penman <paul.enman@gmail.com>
---
package/uclibc/uclibc.mk | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index c62a40f..4f5c605 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -86,9 +86,15 @@ define UCLIBC_ARM_ABI_CONFIG
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_EABI,$(@D)/.config)
endef
-# Thumb build is broken with threads, build in ARM mode
-ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
-UCLIBC_EXTRA_CFLAGS += -marm
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),y)
+define UCLIBC_ARM_THUMB_CONFIG
+ $(call KCONFIG_ENABLE_OPT,COMPILE_IN_THUMB_MODE,$(@D)/.config)
+ $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_CONTEXT_FUNCS,$(@D)/.config)
+endef
+else
+define UCLIBC_ARM_THUMB_CONFIG
+ $(call KCONFIG_DISABLE_OPT,COMPILE_IN_THUMB_MODE,$(@D)/.config)
+endef
endif
ifeq ($(BR2_UCLIBC_ARM_BX),y)
@@ -373,6 +379,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS
$(UCLIBC_ARC_TYPE_CONFIG)
$(UCLIBC_ARC_PAGE_SIZE_CONFIG)
$(UCLIBC_ARM_ABI_CONFIG)
+ $(UCLIBC_ARM_THUMB_CONFIG)
$(UCLIBC_ARM_BX_CONFIG)
$(UCLIBC_MIPS_ABI_CONFIG)
$(UCLIBC_MIPS_ISA_CONFIG)
--
1.9.1
next reply other threads:[~2015-12-04 22:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 22:56 penman [this message]
2015-12-05 15:08 ` [Buildroot] [PATCH 1/1] [1/1] package/uclibc: Enable compile in thumb mode when selected Arnout Vandecappelle
2015-12-08 19:34 ` Paul Enman
2015-12-14 1:28 ` [Buildroot] [PATCH v2] package/uclibc: Enable compile in thumb mode configuration option Paul Enman
2015-12-15 22:03 ` Thomas Petazzoni
2015-12-16 7:10 ` Waldemar Brodkorb
2015-12-16 21:49 ` Arnout Vandecappelle
2015-12-19 9:13 ` Waldemar Brodkorb
2015-12-31 19:44 ` Paul Enman
2015-12-16 22:08 ` Arnout Vandecappelle
2015-12-18 0:11 ` Paul Enman
2015-12-18 21:55 ` Arnout Vandecappelle
2015-12-19 9:35 ` Waldemar Brodkorb
2015-12-19 9:31 ` Waldemar Brodkorb
2015-12-23 16:16 ` Paul Enman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449269795-17864-1-git-send-email-paul.enman@gmail.com \
--to=paul.enman@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox