From ee8108569d6e41803ede01a1b2587c64308b29ff Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 26 Jun 2001 02:44:33 +0000 Subject: Change to allow compiling against unconfigured kernels. Creates symlink to include/asm-${arch} instead of include/asm. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7516209e8..1ee680b4a 100644 --- a/Makefile +++ b/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."; \ -- cgit v1.2.3