diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-26 12:50:25 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-26 12:50:25 +0200 |
commit | a8c14536161a7f62f06beb5928acfd78691bef78 (patch) | |
tree | adeaed5057b137598c625e1fc6f8054d2cd9bfa7 /toolchain/uClibc | |
parent | ce64829c0d165fe0f25c861117a359b05293ec51 (diff) |
make arm/mips architectures more configurable in a simpler way
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r-- | toolchain/uClibc/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile index ec73bf5b9..bd1b6e8a3 100644 --- a/toolchain/uClibc/Makefile +++ b/toolchain/uClibc/Makefile @@ -14,10 +14,18 @@ ifeq (${ADK_MAKE_PARALLEL},y) UCLIBC_MAKEOPTS+= -j${ADK_MAKE_JOBS} endif +UCLIBCCFG=uclibc.config +ifeq ($(ADK_TARGET_ENDIAN),little) +UCLIBCCFG=uclibc.config.little +endif +ifeq ($(ADK_TARGET_ENDIAN),big) +UCLIBCCFG=uclibc.config.big +endif + $(WRKBUILD)/.headers: $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${STAGING_TARGET_DIR}/usr/include\"' \ - $(TOPDIR)/target/$(ADK_TARGET_ARCH)/uclibc.config >${WRKBUILD}/.config + $(TOPDIR)/target/$(ADK_TARGET_ARCH)/$(UCLIBCCFG) >${WRKBUILD}/.config ifneq ($(ADK_DEBUG),) $(SED) 's,DOSTRIP,DODEBUG,' ${WRKBUILD}/.config endif |