Message ID | 20120821093527.2dd03b31@skate |
---|---|
State | Not Applicable |
Headers | show |
On Tue, 21 Aug 2012 09:35:27 +0200 Thomas Petazzoni wrote: > > -mthumb can be added to the BR2_TARGET_OPTIMIZATION option, though at > some point, it might be good to add an option to build ARM code with > the ARM instruction set, or the Thumb instruction set, or the Thumb-2 > instruction set. > I tried it with -pipe -mthumb and just -mthumb but I don't think it worked because I get the following error.
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index 9d0b6db..0eb11c0 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -245,6 +245,9 @@ ifneq ($(UCLIBC_TARGET_ENDIAN),) -e 's/.*\(ARCH_WANTS_$(UCLIBC_TARGET_ENDIAN)_ENDIAN\).*/\1=y/g' \ $(UCLIBC_DIR)/.oldconfig endif +ifeq ($(BR2_USE_MMU),) + $(SED) 's,.*ARCH_USE_MMU.*,# ARCH_USE_MMU is not set,g' $(UCLIBC_DIR)/.oldconfig +endif ifeq ($(BR2_LARGEFILE),y) $(SED) 's,.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=y,g' $(UCLIBC_DIR)/.oldconfig else