summaryrefslogtreecommitdiff
path: root/toolchain/uclibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-28 09:01:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-28 09:01:40 +0200
commit714d52fb4282e02aa584be4ab85179c3a937d0c3 (patch)
tree5da422e48332492aff62e8258a37681d93a6a13a /toolchain/uclibc/Makefile
parent9f635207b18dc74e6c9261d15bb9e28409db8e82 (diff)
add config for nommu and mmu case for uClibc
Diffstat (limited to 'toolchain/uclibc/Makefile')
-rw-r--r--toolchain/uclibc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/uclibc/Makefile b/toolchain/uclibc/Makefile
index d149c6026..d7df2bb59 100644
--- a/toolchain/uclibc/Makefile
+++ b/toolchain/uclibc/Makefile
@@ -17,8 +17,13 @@ endif
$(WRKBUILD)/.headers:
$(SED) 's,^CROSS_COMPILE=.*,CROSS_COMPILE=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak
+ifeq ($(ADK_TARGET_UCLINUX),y)
+ PATH='$(HOST_PATH)' sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${STAGING_TARGET_DIR}/usr/include\"' \
+ $(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/uclibc-nommu.config >${WRKBUILD}/.config
+else
PATH='$(HOST_PATH)' sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${STAGING_TARGET_DIR}/usr/include\"' \
$(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/uclibc.config >${WRKBUILD}/.config
+endif
ifeq ($(ADK_TARGET_ENDIAN),little)
$(SED) 's/.*\(ARCH_LITTLE_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config
$(SED) 's/.*\(ARCH_WANTS_LITTLE_ENDIAN\).*/\1=y/' ${WRKBUILD}/.config