diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-18 04:42:26 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:46:14 -0500 |
commit | e97ff121ae61ba80e41b2cc3bd6dfe9886d22505 (patch) | |
tree | a73fd3b981577dc10eada961cd36fe525a1aa3ab /arch/arc/Makefile | |
parent | 877768c84d6ca8f7dedafff0e44615a12e82f8f4 (diff) |
ARC: [Review] Multi-platform image #4: Isolate platform headers
-Top level ARC makefile removes -I for platform headers
-asm/irq.h no longer includes plat/irq.h
-platform makefile adds -I for it's specfic platform headers
-platform code to directly include it's plat/irq.h
-Linker script needed plat/memmap.h for CCM info, already in .config
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r-- | arch/arc/Makefile | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 9a36c04e4306..92379c7cbc1a 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -10,14 +10,6 @@ UTS_MACHINE := arc | |||
10 | 10 | ||
11 | KBUILD_DEFCONFIG := fpga_defconfig | 11 | KBUILD_DEFCONFIG := fpga_defconfig |
12 | 12 | ||
13 | # For ARC FPGA Platforms | ||
14 | platform-$(CONFIG_ARC_PLAT_FPGA_LEGACY) := arcfpga | ||
15 | #New platform adds here | ||
16 | |||
17 | PLATFORM := $(platform-y) | ||
18 | export PLATFORM | ||
19 | |||
20 | cflags-y += -Iarch/arc/plat-$(PLATFORM)/include | ||
21 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ | 13 | cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ |
22 | 14 | ||
23 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h | 15 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h |
@@ -86,9 +78,6 @@ KBUILD_CFLAGS += $(cflags-y) | |||
86 | KBUILD_AFLAGS += $(KBUILD_CFLAGS) | 78 | KBUILD_AFLAGS += $(KBUILD_CFLAGS) |
87 | LDFLAGS += $(ldflags-y) | 79 | LDFLAGS += $(ldflags-y) |
88 | 80 | ||
89 | # Needed for Linker script preprocessing | ||
90 | KBUILD_CPPFLAGS += -Iarch/arc/plat-$(PLATFORM)/include | ||
91 | |||
92 | head-y := arch/arc/kernel/head.o | 81 | head-y := arch/arc/kernel/head.o |
93 | 82 | ||
94 | # See arch/arc/Kbuild for content of core part of the kernel | 83 | # See arch/arc/Kbuild for content of core part of the kernel |
@@ -97,10 +86,7 @@ core-y += arch/arc/ | |||
97 | # w/o this dtb won't embed into kernel binary | 86 | # w/o this dtb won't embed into kernel binary |
98 | core-y += arch/arc/boot/dts/ | 87 | core-y += arch/arc/boot/dts/ |
99 | 88 | ||
100 | # w/o this ifneq, make ARCH=arc clean was crapping out | 89 | core-$(CONFIG_ARC_PLAT_FPGA_LEGACY) += arch/arc/plat-arcfpga/ |
101 | ifneq ($(platform-y),) | ||
102 | core-y += arch/arc/plat-$(PLATFORM)/ | ||
103 | endif | ||
104 | 90 | ||
105 | drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ | 91 | drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ |
106 | 92 | ||