aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arc/Makefile16
-rw-r--r--arch/arc/include/asm/irq.h1
-rw-r--r--arch/arc/kernel/vmlinux.lds.S1
-rw-r--r--arch/arc/plat-arcfpga/Makefile2
-rw-r--r--arch/arc/plat-arcfpga/irq.c2
-rw-r--r--arch/arc/plat-arcfpga/platform.c2
-rw-r--r--arch/arc/plat-arcfpga/smp.c3
7 files changed, 7 insertions, 20 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
11KBUILD_DEFCONFIG := fpga_defconfig 11KBUILD_DEFCONFIG := fpga_defconfig
12 12
13# For ARC FPGA Platforms
14platform-$(CONFIG_ARC_PLAT_FPGA_LEGACY) := arcfpga
15#New platform adds here
16
17PLATFORM := $(platform-y)
18export PLATFORM
19
20cflags-y += -Iarch/arc/plat-$(PLATFORM)/include
21cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__ 13cflags-y += -mA7 -fno-common -pipe -fno-builtin -D__linux__
22 14
23LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h 15LINUXINCLUDE += -include ${src}/arch/arc/include/asm/defines.h
@@ -86,9 +78,6 @@ KBUILD_CFLAGS += $(cflags-y)
86KBUILD_AFLAGS += $(KBUILD_CFLAGS) 78KBUILD_AFLAGS += $(KBUILD_CFLAGS)
87LDFLAGS += $(ldflags-y) 79LDFLAGS += $(ldflags-y)
88 80
89# Needed for Linker script preprocessing
90KBUILD_CPPFLAGS += -Iarch/arc/plat-$(PLATFORM)/include
91
92head-y := arch/arc/kernel/head.o 81head-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
98core-y += arch/arc/boot/dts/ 87core-y += arch/arc/boot/dts/
99 88
100# w/o this ifneq, make ARCH=arc clean was crapping out 89core-$(CONFIG_ARC_PLAT_FPGA_LEGACY) += arch/arc/plat-arcfpga/
101ifneq ($(platform-y),)
102core-y += arch/arc/plat-$(PLATFORM)/
103endif
104 90
105drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ 91drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/
106 92
diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h
index f1b318d92877..20aaab8971ad 100644
--- a/arch/arc/include/asm/irq.h
+++ b/arch/arc/include/asm/irq.h
@@ -13,7 +13,6 @@
13#define TIMER0_IRQ 3 13#define TIMER0_IRQ 3
14#define TIMER1_IRQ 4 14#define TIMER1_IRQ 4
15 15
16#include <plat/irq.h> /* Board Specific IRQ assignments */
17#include <asm-generic/irq.h> 16#include <asm-generic/irq.h>
18 17
19extern void __init arc_init_IRQ(void); 18extern void __init arc_init_IRQ(void);
diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S
index 622d8b665a68..d3c92f52d444 100644
--- a/arch/arc/kernel/vmlinux.lds.S
+++ b/arch/arc/kernel/vmlinux.lds.S
@@ -10,7 +10,6 @@
10#include <asm/cache.h> 10#include <asm/cache.h>
11#include <asm/page.h> 11#include <asm/page.h>
12#include <asm/thread_info.h> 12#include <asm/thread_info.h>
13#include <plat/memmap.h>
14 13
15OUTPUT_ARCH(arc) 14OUTPUT_ARCH(arc)
16ENTRY(_stext) 15ENTRY(_stext)
diff --git a/arch/arc/plat-arcfpga/Makefile b/arch/arc/plat-arcfpga/Makefile
index 2a828bec8212..a44e22ebc1b7 100644
--- a/arch/arc/plat-arcfpga/Makefile
+++ b/arch/arc/plat-arcfpga/Makefile
@@ -6,5 +6,7 @@
6# published by the Free Software Foundation. 6# published by the Free Software Foundation.
7# 7#
8 8
9KBUILD_CFLAGS += -Iarch/arc/plat-arcfpga/include
10
9obj-y := platform.o irq.o 11obj-y := platform.o irq.o
10obj-$(CONFIG_SMP) += smp.o 12obj-$(CONFIG_SMP) += smp.o
diff --git a/arch/arc/plat-arcfpga/irq.c b/arch/arc/plat-arcfpga/irq.c
index 0ea43c26f16a..d2215fd889c2 100644
--- a/arch/arc/plat-arcfpga/irq.c
+++ b/arch/arc/plat-arcfpga/irq.c
@@ -9,7 +9,7 @@
9 */ 9 */
10 10
11#include <linux/interrupt.h> 11#include <linux/interrupt.h>
12#include <asm/irq.h> 12#include <plat/irq.h>
13 13
14void __init plat_fpga_init_IRQ(void) 14void __init plat_fpga_init_IRQ(void)
15{ 15{
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c
index ac85d6927334..4024f10a39ca 100644
--- a/arch/arc/plat-arcfpga/platform.c
+++ b/arch/arc/plat-arcfpga/platform.c
@@ -16,11 +16,11 @@
16#include <linux/console.h> 16#include <linux/console.h>
17#include <linux/of_platform.h> 17#include <linux/of_platform.h>
18#include <asm/setup.h> 18#include <asm/setup.h>
19#include <asm/irq.h>
20#include <asm/clk.h> 19#include <asm/clk.h>
21#include <asm/mach_desc.h> 20#include <asm/mach_desc.h>
22#include <plat/memmap.h> 21#include <plat/memmap.h>
23#include <plat/smp.h> 22#include <plat/smp.h>
23#include <plat/irq.h>
24 24
25/*-----------------------BVCI Latency Unit -----------------------------*/ 25/*-----------------------BVCI Latency Unit -----------------------------*/
26 26
diff --git a/arch/arc/plat-arcfpga/smp.c b/arch/arc/plat-arcfpga/smp.c
index fec18793bbe0..68a53b153d03 100644
--- a/arch/arc/plat-arcfpga/smp.c
+++ b/arch/arc/plat-arcfpga/smp.c
@@ -12,7 +12,8 @@
12 */ 12 */
13 13
14#include <linux/smp.h> 14#include <linux/smp.h>
15#include <asm/irq.h> 15#include <linux/irq.h>
16#include <plat/irq.h>
16#include <plat/smp.h> 17#include <plat/smp.h>
17 18
18static char smp_cpuinfo_buf[128]; 19static char smp_cpuinfo_buf[128];