diff options
-rw-r--r-- | arch/arm/Kconfig-nommu | 27 | ||||
-rw-r--r-- | arch/arm/Makefile | 7 |
2 files changed, 33 insertions, 1 deletions
diff --git a/arch/arm/Kconfig-nommu b/arch/arm/Kconfig-nommu new file mode 100644 index 000000000000..8ce56e5bd78f --- /dev/null +++ b/arch/arm/Kconfig-nommu | |||
@@ -0,0 +1,27 @@ | |||
1 | # | ||
2 | # Kconfig for uClinux(non-paged MM) depend configurations | ||
3 | # Hyok S. Choi <hyok.choi@samsung.com> | ||
4 | # | ||
5 | |||
6 | config SET_MEM_PARAM | ||
7 | bool "Set flash/sdram size and base addr" | ||
8 | help | ||
9 | Say Y to manually set the base addresses and sizes. | ||
10 | otherwise, the default values are assigned. | ||
11 | |||
12 | config DRAM_BASE | ||
13 | hex '(S)DRAM Base Address' if SET_MEM_PARAM | ||
14 | default 0x00800000 | ||
15 | |||
16 | config DRAM_SIZE | ||
17 | hex '(S)DRAM SIZE' if SET_MEM_PARAM | ||
18 | default 0x00800000 | ||
19 | |||
20 | config FLASH_MEM_BASE | ||
21 | hex 'FLASH Base Address' if SET_MEM_PARAM | ||
22 | default 0x00400000 | ||
23 | |||
24 | config FLASH_SIZE | ||
25 | hex 'FLASH Size' if SET_MEM_PARAM | ||
26 | default 0x00400000 | ||
27 | |||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index e3770ed87825..73df2297a5f3 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -17,6 +17,11 @@ GZFLAGS :=-9 | |||
17 | # Select a platform tht is kept up-to-date | 17 | # Select a platform tht is kept up-to-date |
18 | KBUILD_DEFCONFIG := versatile_defconfig | 18 | KBUILD_DEFCONFIG := versatile_defconfig |
19 | 19 | ||
20 | # defines filename extension depending memory manement type. | ||
21 | ifeq ($(CONFIG_MMU),) | ||
22 | MMUEXT := -nommu | ||
23 | endif | ||
24 | |||
20 | ifeq ($(CONFIG_FRAME_POINTER),y) | 25 | ifeq ($(CONFIG_FRAME_POINTER),y) |
21 | CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog | 26 | CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog |
22 | endif | 27 | endif |
@@ -127,7 +132,7 @@ else | |||
127 | MACHINE := | 132 | MACHINE := |
128 | endif | 133 | endif |
129 | 134 | ||
130 | export TEXT_OFFSET GZFLAGS | 135 | export TEXT_OFFSET GZFLAGS MMUEXT |
131 | 136 | ||
132 | # Do we have FASTFPE? | 137 | # Do we have FASTFPE? |
133 | FASTFPE :=arch/arm/fastfpe | 138 | FASTFPE :=arch/arm/fastfpe |