Skip to content

Commit 367b811

Browse files
committed
xtensa: move headers files to arch/xtensa/include
Move all header files for xtensa to arch/xtensa/include and platform and variant header files to the appropriate arch/xtensa/platforms/ and arch/xtensa/variants/ directories. Moving the files gets also rid of all uses of symlinks in the Makefile. This has been completed already for the majority of the architectures and xtensa is one out of six missing. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Chris Zankel <chris@zankel.net>
1 parent 206ead2 commit 367b811

120 files changed

Lines changed: 32 additions & 44 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/xtensa/Makefile‎

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding
3333

3434
KBUILD_CFLAGS += -pipe -mlongcalls
3535

36+
vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
37+
plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
38+
39+
ifeq ($(KBUILD_SRC),)
40+
KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
41+
else
42+
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
43+
endif
44+
3645
KBUILD_DEFCONFIG := iss_defconfig
3746

3847
# ramdisk/initrd support
@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC)
6675

6776
boot := arch/xtensa/boot
6877

69-
archinc := include/asm-xtensa
70-
71-
archprepare: $(archinc)/.platform
72-
73-
# Update processor variant and platform symlinks if something which affects
74-
# them changed.
75-
76-
$(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf
77-
@echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)'
78-
$(Q)mkdir -p $(archinc)
79-
$(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant
80-
@echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)'
81-
$(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform
82-
@touch $@
83-
8478

8579
all: zImage
8680

@@ -89,10 +83,6 @@ bzImage : zImage
8983
zImage zImage.initrd: vmlinux
9084
$(Q)$(MAKE) $(build)=$(boot) $@
9185

92-
CLEAN_FILES += arch/xtensa/vmlinux.lds \
93-
$(archinc)/platform $(archinc)/variant \
94-
$(archinc)/.platform
95-
9686
define archhelp
9787
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
9888
endef

‎arch/xtensa/boot/boot-elf/boot.lds.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <asm/variant/core.h>
1+
#include <variant/core.h>
22
OUTPUT_ARCH(xtensa)
33
ENTRY(_ResetVector)
44

‎arch/xtensa/boot/boot-redboot/bootstrap.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <asm/variant/core.h>
1+
#include <variant/core.h>
22
#include <asm/regs.h>
33
#include <asm/asmmacro.h>
44
#include <asm/cacheasm.h>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef _XTENSA_ASMMACRO_H
1212
#define _XTENSA_ASMMACRO_H
1313

14-
#include <asm/variant/core.h>
14+
#include <variant/core.h>
1515

1616
/*
1717
* Some little helpers for loops. Use zero-overhead-loops

0 commit comments

Comments
 (0)