[Buildroot] [PATCH v2] package/uclibc: Enable compile in thumb mode configuration option

Waldemar Brodkorb wbx at openadk.org
Wed Dec 16 07:10:10 UTC 2015


Hi,
Thomas Petazzoni wrote,
> Paul,
> 
> > +	$(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_CONTEXT_FUNCS,$(@D)/.config)
> 
> What is the relation between this and Thumb ?

The user context manipulation functions in uClibc are using
non-thumb instructions and result in a compile failure.
 
> Also, note that there is already some Thumb-related stuff in uclibc.mk,
> which precisely forces to *not* use Thumb (1):
> 
> # Thumb build is broken with threads, build in ARM mode
> ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
> UCLIBC_EXTRA_CFLAGS += -marm
> endif

This is no longer the case for uClibc-ng. There where fixes made,
even in uClibc master to allow building thumb-only builds with
threads enabled.

I can just not recall, if Linuxthreads or NPTL must be used for
that, or if both are working. May be Paul can check it? 
Paul, do you have a embedded system, where you test this?
Is it a noMMU cortex-m3/cortex-m4 or some MMU system?

best regards
 Waldemar


More information about the buildroot mailing list