Skip to content

Commit 96f1304

Browse files
sravnborgmichal42
authored andcommitted
kbuild: drop include2/ used for O=... builds
There is no longer any use of the include2/ directory. The generated files has moved to include/generated. Drop all references to said directory. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 3252b11 commit 96f1304

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
335335
# Use LINUXINCLUDE when you must reference the include/ directory.
336336
# Needed to be compatible with the O= option
337337
LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \
338-
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
338+
$(if $(KBUILD_SRC), -I$(srctree)/include) \
339339
-include include/linux/autoconf.h
340340

341341
KBUILD_CPPFLAGS := -D__KERNEL__
@@ -954,7 +954,6 @@ PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
954954
# prepare3 is used to check if we are building in a separate output directory,
955955
# and if so do:
956956
# 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
958957
prepare3: include/config/kernel.release
959958
ifneq ($(KBUILD_SRC),)
960959
@$(kecho) ' Using $(srctree) as source for kernel'
@@ -963,10 +962,6 @@ ifneq ($(KBUILD_SRC),)
963962
echo " in the '$(srctree)' directory.";\
964963
/bin/false; \
965964
fi;
966-
$(Q)if [ ! -d include2 ]; then \
967-
mkdir -p include2; \
968-
ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \
969-
fi
970965
endif
971966

972967
# prepare2 creates a makefile if using a separate output directory
@@ -1193,7 +1188,7 @@ CLEAN_FILES += vmlinux System.map \
11931188
.tmp_kallsyms* .tmp_version .tmp_vmlinux* .tmp_System.map
11941189

11951190
# Directories & files removed with 'make mrproper'
1196-
MRPROPER_DIRS += include/config include2 usr/include include/generated
1191+
MRPROPER_DIRS += include/config usr/include include/generated
11971192
MRPROPER_FILES += .config .config.old include/asm .version .old_version \
11981193
include/linux/autoconf.h include/linux/version.h \
11991194
include/linux/utsrelease.h \

‎arch/powerpc/platforms/cell/spufs/Makefile‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ SPU_CC := $(SPU_CROSS)gcc
1313
SPU_AS := $(SPU_CROSS)gcc
1414
SPU_LD := $(SPU_CROSS)ld
1515
SPU_OBJCOPY := $(SPU_CROSS)objcopy
16-
SPU_CFLAGS := -O2 -Wall -I$(srctree)/include \
17-
-I$(objtree)/include2 -D__KERNEL__
18-
SPU_AFLAGS := -c -D__ASSEMBLY__ -I$(srctree)/include \
19-
-I$(objtree)/include2 -D__KERNEL__
16+
SPU_CFLAGS := -O2 -Wall -I$(srctree)/include -D__KERNEL__
17+
SPU_AFLAGS := -c -D__ASSEMBLY__ -I$(srctree)/include -D__KERNEL__
2018
SPU_LDFLAGS := -N -Ttext=0x0
2119

2220
$(obj)/switch.o: $(obj)/spu_save_dump.h $(obj)/spu_restore_dump.h

0 commit comments

Comments
 (0)