diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2012-08-31 22:03:25 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-03 17:56:15 -0400 |
commit | bd51e2f595580fb64bd8494badef746c4d626b25 (patch) | |
tree | 10c74fd5723a6033356caa48345da70116b86bc4 /arch/arm/kernel | |
parent | aa783b6fd60b3844e199b1c2d2f4068f3caa1358 (diff) |
ARM: 7506/1: allow for ATAGS to be configured out when DT support is selected
Now that ATAGS support is well contained, we can easily remove it from
the kernel build if so desired. It has to explicitly be disabled, and
only when DT support is selected.
Note: disabling kernel ATAGS support does not prevent the usage of
CONFIG_ARM_ATAG_DTB_COMPAT.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/kernel/atags.h | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 086c9d3bc360..79e346a5d78b 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile | |||
@@ -15,10 +15,12 @@ CFLAGS_REMOVE_return_address.o = -pg | |||
15 | 15 | ||
16 | # Object file lists. | 16 | # Object file lists. |
17 | 17 | ||
18 | obj-y := atags_parse.o elf.o entry-armv.o entry-common.o irq.o opcodes.o \ | 18 | obj-y := elf.o entry-armv.o entry-common.o irq.o opcodes.o \ |
19 | process.o ptrace.o return_address.o sched_clock.o \ | 19 | process.o ptrace.o return_address.o sched_clock.o \ |
20 | setup.o signal.o stacktrace.o sys_arm.o time.o traps.o | 20 | setup.o signal.o stacktrace.o sys_arm.o time.o traps.o |
21 | 21 | ||
22 | obj-$(CONFIG_ATAGS) += atags_parse.o | ||
23 | obj-$(CONFIG_ATAGS_PROC) += atags_proc.o | ||
22 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o | 24 | obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o |
23 | 25 | ||
24 | obj-$(CONFIG_LEDS) += leds.o | 26 | obj-$(CONFIG_LEDS) += leds.o |
@@ -52,7 +54,6 @@ test-kprobes-objs += kprobes-test-thumb.o | |||
52 | else | 54 | else |
53 | test-kprobes-objs += kprobes-test-arm.o | 55 | test-kprobes-objs += kprobes-test-arm.o |
54 | endif | 56 | endif |
55 | obj-$(CONFIG_ATAGS_PROC) += atags_proc.o | ||
56 | obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o | 57 | obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o |
57 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o | 58 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o |
58 | obj-$(CONFIG_KGDB) += kgdb.o | 59 | obj-$(CONFIG_KGDB) += kgdb.o |
diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h index a888fdd381b5..9edc9692332d 100644 --- a/arch/arm/kernel/atags.h +++ b/arch/arm/kernel/atags.h | |||
@@ -5,4 +5,15 @@ static inline void save_atags(struct tag *tags) { } | |||
5 | #endif | 5 | #endif |
6 | 6 | ||
7 | void convert_to_tag_list(struct tag *tags); | 7 | void convert_to_tag_list(struct tag *tags); |
8 | |||
9 | #ifdef CONFIG_ATAGS | ||
8 | struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr); | 10 | struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr); |
11 | #else | ||
12 | static inline struct machine_desc * | ||
13 | setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr) | ||
14 | { | ||
15 | early_print("no ATAGS support: can't continue\n"); | ||
16 | while (true); | ||
17 | unreachable(); | ||
18 | } | ||
19 | #endif | ||