OSDN Git Service

If HAS_MMU is false, then use asm-$(TARGET_ARCH)nommu rather than
authorDavid McCullough <davidm@snapgear.com>
Wed, 4 Jul 2001 11:19:24 +0000 (11:19 -0000)
committerDavid McCullough <davidm@snapgear.com>
Wed, 4 Jul 2001 11:19:24 +0000 (11:19 -0000)
asm-$(TARGET_ARCH) as the link for include/asm.

Makefile

index fa75f2b..96f1d88 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -66,7 +66,11 @@ headers: dummy
        @if [ $(TARGET_ARCH) = "powerpc" ];then \
            ln -s $(KERNEL_SOURCE)/include/asm-ppc include/asm; \
        else \
-           ln -s $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH) include/asm; \
+           if [ $(HAS_MMU) != "true" ]; then \
+                       ln -s $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH)nommu include/asm;\
+               else \
+                       ln -s $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH) include/asm; \
+               fi; \
        fi;
        @if [ ! -f include/asm/unistd.h ] ; then \
            echo " "; \