Switch to a more standard way of board select; put the SoC select into arch/arm/Kconfig and move the board select menu under arch/arm/mach-socfpga/Kconfig. Also, consolidate SYS_BOARD, SYS_VENDOR, SYS_SOC, SYS_CONFIG_NAME. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>master
parent
a02a669c11
commit
7865f4b0b6
@ -0,0 +1,27 @@ |
||||
if ARCH_SOCFPGA |
||||
|
||||
choice |
||||
prompt "Altera SOCFPGA board select" |
||||
|
||||
config TARGET_SOCFPGA_ARRIA5 |
||||
bool "Altera SOCFPGA Arria V" |
||||
|
||||
config TARGET_SOCFPGA_CYCLONE5 |
||||
bool "Altera SOCFPGA Cyclone V" |
||||
|
||||
endchoice |
||||
|
||||
config SYS_BOARD |
||||
default "socfpga" |
||||
|
||||
config SYS_VENDOR |
||||
default "altera" |
||||
|
||||
config SYS_SOC |
||||
default "socfpga" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "socfpga_arria5" if TARGET_SOCFPGA_ARRIA5 |
||||
default "socfpga_cyclone5" if TARGET_SOCFPGA_CYCLONE5 |
||||
|
||||
endif |
@ -1,31 +0,0 @@ |
||||
if TARGET_SOCFPGA_CYCLONE5 |
||||
|
||||
config SYS_BOARD |
||||
default "socfpga" |
||||
|
||||
config SYS_VENDOR |
||||
default "altera" |
||||
|
||||
config SYS_SOC |
||||
default "socfpga" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "socfpga_cyclone5" |
||||
|
||||
endif |
||||
|
||||
if TARGET_SOCFPGA_ARRIA5 |
||||
|
||||
config SYS_BOARD |
||||
default "socfpga" |
||||
|
||||
config SYS_VENDOR |
||||
default "altera" |
||||
|
||||
config SYS_SOC |
||||
default "socfpga" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "socfpga_arria5" |
||||
|
||||
endif |
@ -1,5 +1,6 @@ |
||||
CONFIG_SPL=y |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_SOCFPGA=y |
||||
CONFIG_TARGET_SOCFPGA_ARRIA5=y |
||||
CONFIG_OF_CONTROL=y |
||||
CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk" |
||||
|
Loading…
Reference in new issue