浏览代码

Change to allow compiling against unconfigured kernels. Creates
symlink to include/asm-${arch} instead of include/asm.

David Schleef 24 年之前
父节点
当前提交
ee8108569d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -62,7 +62,11 @@ done: $(DO_SHARED)
 
 headers: dummy
 	@rm -f include/asm include/linux include/bits
-	@ln -s $(KERNEL_SOURCE)/include/asm include/asm
+	@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; \
+	fi;
 	@if [ ! -f include/asm/unistd.h ] ; then \
 	    echo " "; \
 	    echo "The path '$(KERNEL_SOURCE)/include/asm' doesn't exist."; \