소스 검색

If HAS_MMU is false, then use asm-$(TARGET_ARCH)nommu rather than
asm-$(TARGET_ARCH) as the link for include/asm.

David McCullough 24 년 전
부모
커밋
0d85794e9b
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Makefile

+ 5 - 1
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 " "; \