summaryrefslogtreecommitdiff
path: root/extra/gcc-uClibc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-20 14:35:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-20 14:35:19 +0000
commit398f1b156bb58ee096ab64c1d8fdeb295833e5d5 (patch)
treec3400d4a1692924a59363aa0592e05ce6068baf5 /extra/gcc-uClibc/Makefile
parent80847c0ebb657e3a56bb59c79ac2ef0edd03413b (diff)
Add support for doing the mmu-less thing
-Erik
Diffstat (limited to 'extra/gcc-uClibc/Makefile')
-rw-r--r--extra/gcc-uClibc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/gcc-uClibc/Makefile b/extra/gcc-uClibc/Makefile
index faf4e5c75..62ab6c8ee 100644
--- a/extra/gcc-uClibc/Makefile
+++ b/extra/gcc-uClibc/Makefile
@@ -27,6 +27,11 @@ gcc-uClibc.h: $(TOPDIR)/Config
@echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> gcc-uClibc.h
@echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> gcc-uClibc.h
@echo "#define BUILD_DYNAMIC_LINKER " \"$(UCLIBC_DIR)/lib/$(UCLIBC_LDSO)\" >> gcc-uClibc.h
+ifeq ($(strip $(HAS_MMU)),true)
+ @echo "#define HAS_MMU 1" >> gcc-uClibc.h
+else
+ @echo "#undef HAS_MMU" >> gcc-uClibc.h
+endif
gcc-uClibc: gcc-uClibc.h gcc-uClibc.c
gcc -Wall -O2 -Wl,-s gcc-uClibc.c -o $(TARGET_ARCH)-uclibc-gcc