[ARM] nommu: add nommu specific Kconfig and MMUEXT variable in Makefile
This patch adds Kconfig-nommu for noMMU specific configurations and MMUEXT variable into Makefile. Signed-off-by: Hyok S. Choi <hyok.choi@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
75d90832d5
commit
f8c07de6be
27
arch/arm/Kconfig-nommu
Normal file
27
arch/arm/Kconfig-nommu
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#
|
||||||
|
# Kconfig for uClinux(non-paged MM) depend configurations
|
||||||
|
# Hyok S. Choi <hyok.choi@samsung.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
config SET_MEM_PARAM
|
||||||
|
bool "Set flash/sdram size and base addr"
|
||||||
|
help
|
||||||
|
Say Y to manually set the base addresses and sizes.
|
||||||
|
otherwise, the default values are assigned.
|
||||||
|
|
||||||
|
config DRAM_BASE
|
||||||
|
hex '(S)DRAM Base Address' if SET_MEM_PARAM
|
||||||
|
default 0x00800000
|
||||||
|
|
||||||
|
config DRAM_SIZE
|
||||||
|
hex '(S)DRAM SIZE' if SET_MEM_PARAM
|
||||||
|
default 0x00800000
|
||||||
|
|
||||||
|
config FLASH_MEM_BASE
|
||||||
|
hex 'FLASH Base Address' if SET_MEM_PARAM
|
||||||
|
default 0x00400000
|
||||||
|
|
||||||
|
config FLASH_SIZE
|
||||||
|
hex 'FLASH Size' if SET_MEM_PARAM
|
||||||
|
default 0x00400000
|
||||||
|
|
@@ -17,6 +17,11 @@ GZFLAGS :=-9
|
|||||||
# Select a platform tht is kept up-to-date
|
# Select a platform tht is kept up-to-date
|
||||||
KBUILD_DEFCONFIG := versatile_defconfig
|
KBUILD_DEFCONFIG := versatile_defconfig
|
||||||
|
|
||||||
|
# defines filename extension depending memory manement type.
|
||||||
|
ifeq ($(CONFIG_MMU),)
|
||||||
|
MMUEXT := -nommu
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FRAME_POINTER),y)
|
ifeq ($(CONFIG_FRAME_POINTER),y)
|
||||||
CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
|
CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
|
||||||
endif
|
endif
|
||||||
@@ -127,7 +132,7 @@ else
|
|||||||
MACHINE :=
|
MACHINE :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export TEXT_OFFSET GZFLAGS
|
export TEXT_OFFSET GZFLAGS MMUEXT
|
||||||
|
|
||||||
# Do we have FASTFPE?
|
# Do we have FASTFPE?
|
||||||
FASTFPE :=arch/arm/fastfpe
|
FASTFPE :=arch/arm/fastfpe
|
||||||
|
Reference in New Issue
Block a user