aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/Makefile
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2008-10-21 11:45:58 -0400
committerJesper Nilsson <jesper.nilsson@axis.com>2008-10-29 12:29:44 -0400
commit556dcee7b829e5c350c3ffdbdb87a8b15aa3c5d3 (patch)
tree26485b0d92eedcba6c0c96d4069469041aaf7106 /arch/cris/Makefile
parent242bfafc8e42da4697c1e2dea108049d14dbac4b (diff)
[CRIS] Move header files from include to arch/cris/include.
Change all users of header files to correct path. Remove some unneeded headers for arch-v32. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/Makefile')
-rw-r--r--arch/cris/Makefile26
1 files changed, 9 insertions, 17 deletions
diff --git a/arch/cris/Makefile b/arch/cris/Makefile
index c6f5f5a2ffdf..22825a7bbe57 100644
--- a/arch/cris/Makefile
+++ b/arch/cris/Makefile
@@ -23,12 +23,16 @@ mach-$(CONFIG_ETRAXFS) := fs
23 23
24ifneq ($(arch-y),) 24ifneq ($(arch-y),)
25SARCH := arch-$(arch-y) 25SARCH := arch-$(arch-y)
26inc := -Iarch/cris/include/arch-$(arch-y) -Iarch/cris/include/arch-$(arch-y)/arch
26else 27else
27SARCH := 28SARCH :=
29inc :=
28endif 30endif
29 31
30ifneq ($(mach-y),) 32ifneq ($(mach-y),)
31MACH := mach-$(mach-y) 33MACH := mach-$(mach-y)
34inc += -Iarch/cris/include/$(SARCH)/$(MACH)/
35inc += -Iarch/cris/include/$(SARCH)/$(MACH)/mach
32else 36else
33MACH := 37MACH :=
34endif 38endif
@@ -39,9 +43,9 @@ OBJCOPYFLAGS := -O binary -R .note -R .comment -S
39 43
40CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE) 44CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
41 45
42KBUILD_AFLAGS += -mlinux -march=$(arch-y) -Iinclude/asm/arch/mach -Iinclude/asm/arch 46KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
43 47KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)
44KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe -Iinclude/asm/arch/mach -Iinclude/asm/arch 48KBUILD_CPPFLAGS += $(inc)
45 49
46ifdef CONFIG_FRAME_POINTER 50ifdef CONFIG_FRAME_POINTER
47KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g 51KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
@@ -73,7 +77,7 @@ all: zImage
73zImage Image: vmlinux 77zImage Image: vmlinux
74 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 78 $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
75 79
76archprepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch FORCE 80archprepare: $(SRC_ARCH)/.links FORCE
77 81
78# Create some links to make all tools happy 82# Create some links to make all tools happy
79$(SRC_ARCH)/.links: 83$(SRC_ARCH)/.links:
@@ -95,17 +99,6 @@ endif
95 @ln -sfn ../$(SARCH)/kernel/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c 99 @ln -sfn ../$(SARCH)/kernel/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c
96 @touch $@ 100 @touch $@
97 101
98# Create link to sub arch includes
99$(srctree)/include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h)
100 @echo ' SYMLINK include/asm-$(ARCH)/arch -> include/asm-$(ARCH)/$(SARCH)'
101 @rm -f $(srctree)/include/asm-$(ARCH)/arch/mach
102 @rm -f $(srctree)/include/asm-$(ARCH)/arch
103 @ln -sf $(SARCH) $(srctree)/include/asm-$(ARCH)/arch
104ifdef CONFIG_ETRAX_ARCH_V32
105 @ln -sf $(MACH) $(srctree)/include/asm-$(ARCH)/arch/mach
106endif
107 @touch $@
108
109archclean: 102archclean:
110 $(Q)if [ -e arch/$(ARCH)/boot ]; then \ 103 $(Q)if [ -e arch/$(ARCH)/boot ]; then \
111 $(MAKE) $(clean)=arch/$(ARCH)/boot; \ 104 $(MAKE) $(clean)=arch/$(ARCH)/boot; \
@@ -116,8 +109,7 @@ CLEAN_FILES += \
116 $(MACHINE)/boot/compressed/decompress.bin \ 109 $(MACHINE)/boot/compressed/decompress.bin \
117 $(MACHINE)/boot/compressed/piggy.gz \ 110 $(MACHINE)/boot/compressed/piggy.gz \
118 $(MACHINE)/boot/rescue/rescue.bin \ 111 $(MACHINE)/boot/rescue/rescue.bin \
119 $(SRC_ARCH)/.links \ 112 $(SRC_ARCH)/.links
120 $(srctree)/include/asm-$(ARCH)/.arch
121 113
122MRPROPER_FILES += \ 114MRPROPER_FILES += \
123 $(SRC_ARCH)/drivers \ 115 $(SRC_ARCH)/drivers \