aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--arch/powerpc/platforms/cell/spufs/Makefile6
2 files changed, 4 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index eb43b9fa30b5..b9d747e4e7c0 100644
--- a/Makefile
+++ b/Makefile
@@ -335,7 +335,7 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
335# Use LINUXINCLUDE when you must reference the include/ directory. 335# Use LINUXINCLUDE when you must reference the include/ directory.
336# Needed to be compatible with the O= option 336# Needed to be compatible with the O= option
337LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ 337LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \
338 $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \ 338 $(if $(KBUILD_SRC), -I$(srctree)/include) \
339 -include include/linux/autoconf.h 339 -include include/linux/autoconf.h
340 340
341KBUILD_CPPFLAGS := -D__KERNEL__ 341KBUILD_CPPFLAGS := -D__KERNEL__
@@ -954,7 +954,6 @@ PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
954# prepare3 is used to check if we are building in a separate output directory, 954# prepare3 is used to check if we are building in a separate output directory,
955# and if so do: 955# and if so do:
956# 1) Check that make has not been executed in the kernel src $(srctree) 956# 1) Check that make has not been executed in the kernel src $(srctree)
957# 2) Create the include2 directory, used for the second asm symlink
958prepare3: include/config/kernel.release 957prepare3: include/config/kernel.release
959ifneq ($(KBUILD_SRC),) 958ifneq ($(KBUILD_SRC),)
960 @$(kecho) ' Using $(srctree) as source for kernel' 959 @$(kecho) ' Using $(srctree) as source for kernel'
@@ -963,10 +962,6 @@ ifneq ($(KBUILD_SRC),)
963 echo " in the '$(srctree)' directory.";\ 962 echo " in the '$(srctree)' directory.";\
964 /bin/false; \ 963 /bin/false; \
965 fi; 964 fi;
966 $(Q)if [ ! -d include2 ]; then \
967 mkdir -p include2; \
968 ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
969 fi
970endif 965endif
971 966
972# prepare2 creates a makefile if using a separate output directory 967# prepare2 creates a makefile if using a separate output directory
@@ -1193,7 +1188,7 @@ CLEAN_FILES += vmlinux System.map \
1193 .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map 1188 .tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map
1194 1189
1195# Directories & files removed with 'make mrproper' 1190# Directories & files removed with 'make mrproper'
1196MRPROPER_DIRS += include/config include2 usr/include include/generated 1191MRPROPER_DIRS += include/config usr/include include/generated
1197MRPROPER_FILES += .config .config.old include/asm .version .old_version \ 1192MRPROPER_FILES += .config .config.old include/asm .version .old_version \
1198 include/linux/autoconf.h include/linux/version.h \ 1193 include/linux/autoconf.h include/linux/version.h \
1199 include/linux/utsrelease.h \ 1194 include/linux/utsrelease.h \
diff --git a/arch/powerpc/platforms/cell/spufs/Makefile b/arch/powerpc/platforms/cell/spufs/Makefile
index b93f877ba504..b9d5d678aa44 100644
--- a/arch/powerpc/platforms/cell/spufs/Makefile
+++ b/arch/powerpc/platforms/cell/spufs/Makefile
@@ -13,10 +13,8 @@ SPU_CC := $(SPU_CROSS)gcc
13SPU_AS := $(SPU_CROSS)gcc 13SPU_AS := $(SPU_CROSS)gcc
14SPU_LD := $(SPU_CROSS)ld 14SPU_LD := $(SPU_CROSS)ld
15SPU_OBJCOPY := $(SPU_CROSS)objcopy 15SPU_OBJCOPY := $(SPU_CROSS)objcopy
16SPU_CFLAGS := -O2 -Wall -I$(srctree)/include \ 16SPU_CFLAGS := -O2 -Wall -I$(srctree)/include -D__KERNEL__
17 -I$(objtree)/include2 -D__KERNEL__ 17SPU_AFLAGS := -c -D__ASSEMBLY__ -I$(srctree)/include -D__KERNEL__
18SPU_AFLAGS := -c -D__ASSEMBLY__ -I$(srctree)/include \
19 -I$(objtree)/include2 -D__KERNEL__
20SPU_LDFLAGS := -N -Ttext=0x0 18SPU_LDFLAGS := -N -Ttext=0x0
21 19
22$(obj)/switch.o: $(obj)/spu_save_dump.h $(obj)/spu_restore_dump.h 20$(obj)/switch.o: $(obj)/spu_save_dump.h $(obj)/spu_restore_dump.h