km: modify Kconfig file organization for KM boards
authorPascal Linder <pascal.linder@edu.hefr.ch>
Tue, 18 Jun 2019 11:27:47 +0000 (13:27 +0200)
committerStefan Roese <sr@denx.de>
Thu, 11 Jul 2019 08:58:03 +0000 (10:58 +0200)
As preparation for the upcoming transferring of configurations from header
files to Kconfig, a common Kconfig file for all KM boards was created. For
the moment, it only sources the other three, more specific, Kconfig files.
Therefore, the architecture Kconfig files now include the common Kconfig
file. Also, the configuration selection for KM boards was moved from the
architecture Kconfig files to the board specific Kconfig files.

Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch>
Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com>
Cc: Mario Six <mario.six@gdsys.cc>
Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-kirkwood/Kconfig
arch/powerpc/cpu/mpc83xx/Kconfig
arch/powerpc/cpu/mpc85xx/Kconfig
board/keymile/Kconfig [new file with mode: 0644]
board/keymile/km83xx/Kconfig
board/keymile/km_arm/Kconfig
board/keymile/kmp204x/Kconfig

index 7c4170399afb61002b7af7b5f2ad6b3f174cbb43..2f68092f825c34d62c1786119cdca68a81a56962 100644 (file)
@@ -32,11 +32,8 @@ config TARGET_ICONNECT
        bool "iconnect Board"
 
 config TARGET_KM_KIRKWOOD
-       bool "KM_KIRKWOOD Board"
-       select BOARD_LATE_INIT
-       imply CMD_CRAMFS
-       imply CMD_DIAG
-       imply FS_CRAMFS
+       bool "KM Kirkwood Board"
+       select VENDOR_KM
 
 config TARGET_NET2BIG_V2
        bool "LaCie 2Big Network v2 NAS Board"
@@ -82,7 +79,7 @@ source "board/buffalo/lsxl/Kconfig"
 source "board/cloudengines/pogo_e02/Kconfig"
 source "board/d-link/dns325/Kconfig"
 source "board/iomega/iconnect/Kconfig"
-source "board/keymile/km_arm/Kconfig"
+source "board/keymile/Kconfig"
 source "board/LaCie/net2big_v2/Kconfig"
 source "board/LaCie/netspace_v2/Kconfig"
 source "board/raidsonic/ib62x0/Kconfig"
index b99288aa836aadb8e52d91af618d31f9bebdf7e6..3f68b6f6456f305a9bda0e01713ca37f0df15305 100644 (file)
@@ -100,65 +100,43 @@ config TARGET_IDS8313
 
 config TARGET_KMETER1
        bool "Support kmeter1"
-       select ARCH_MPC8360
-       imply CMD_CRAMFS
-       imply CMD_DIAG
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMCOGE5NE
        bool "Support kmcoge5ne"
-       select ARCH_MPC8360
-       imply CMD_CRAMFS
-       imply CMD_DIAG
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_SUVD3
        bool "Support suvd3"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMVECT1
        bool "Support kmvect1"
-       select ARCH_MPC8309
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMTEGR1
        bool "Support kmtegr1"
-       select ARCH_MPC8309
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_TUXX1
        bool "Support tuxx1"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMSUPX5
        bool "Support kmsupx5"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_TUGE1
        bool "Support tuge1"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMOPTI2
        bool "Support kmopti2"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_KMTEPR2
        bool "Support kmtepr2"
-       select ARCH_MPC832X
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_TQM834X
        bool "Support TQM834x"
@@ -354,7 +332,7 @@ source "board/freescale/mpc8349itx/Kconfig"
 source "board/freescale/mpc837xemds/Kconfig"
 source "board/freescale/mpc837xerdb/Kconfig"
 source "board/ids/ids8313/Kconfig"
-source "board/keymile/km83xx/Kconfig"
+source "board/keymile/Kconfig"
 source "board/mpc8308_p1m/Kconfig"
 source "board/sbc8349/Kconfig"
 source "board/tqc/tqm834x/Kconfig"
index 7572404625f0dc278f69288ee93246da53267c01..c038a6ddb0f4143520e0e23efe1ffff2619a10c9 100644 (file)
@@ -412,11 +412,7 @@ config TARGET_CONTROLCENTERD
 
 config TARGET_KMP204X
        bool "Support kmp204x"
-       select ARCH_P2041
-       select PHYS_64BIT
-       select FSL_DDR_INTERACTIVE
-       imply CMD_CRAMFS
-       imply FS_CRAMFS
+       select VENDOR_KM
 
 config TARGET_XPEDITE520X
        bool "Support xpedite520x"
@@ -1620,7 +1616,7 @@ source "board/freescale/t208xrdb/Kconfig"
 source "board/freescale/t4qds/Kconfig"
 source "board/freescale/t4rdb/Kconfig"
 source "board/gdsys/p1022/Kconfig"
-source "board/keymile/kmp204x/Kconfig"
+source "board/keymile/Kconfig"
 source "board/sbc8548/Kconfig"
 source "board/socrates/Kconfig"
 source "board/varisys/cyrus/Kconfig"
diff --git a/board/keymile/Kconfig b/board/keymile/Kconfig
new file mode 100644 (file)
index 0000000..e30d648
--- /dev/null
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2019, Pascal Linder <pascal.linder@edu.hefr.ch>
+
+config VENDOR_KM
+       bool
+       help
+         Selected by any KM board to have additional configurations.
+
+if VENDOR_KM
+
+source "board/keymile/km83xx/Kconfig"
+source "board/keymile/kmp204x/Kconfig"
+source "board/keymile/km_arm/Kconfig"
+
+endif
index fbbbb17034f975a2482dc1a6e871f322a584e8b1..0a41be57f5099933188db0913e115a39057372fa 100644 (file)
@@ -9,6 +9,13 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmeter1"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC8360
+       imply CMD_CRAMFS
+       imply CMD_DIAG
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMCOGE5NE
@@ -22,6 +29,13 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmcoge5ne"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC8360
+       imply CMD_CRAMFS
+       imply CMD_DIAG
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMVECT1
@@ -35,6 +49,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmvect1"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC8309
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMTEGR1
@@ -48,6 +68,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmtegr1"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC8309
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_SUVD3
@@ -61,6 +87,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "suvd3"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_TUXX1
@@ -74,6 +106,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "tuxx1"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMSUPX5
@@ -87,6 +125,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmsupx5"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_TUGE1
@@ -100,6 +144,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "tuge1"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMOPTI2
@@ -113,6 +163,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmopti2"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
 
 if TARGET_KMTEPR2
@@ -126,4 +182,10 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmtepr2"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_MPC832X
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif
index 34767808471d61f34dad5a50b4bfb25166378cc8..2542f1ea8fa1400b9140f8193e8d86a687f3f42f 100644 (file)
@@ -9,4 +9,11 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "km_kirkwood"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select BOARD_LATE_INIT
+       imply CMD_CRAMFS
+       imply CMD_DIAG
+       imply FS_CRAMFS
+
 endif
index 7b45a13cfb0223cfad3836c326481935ecf1e43e..f74d4295c7adf3f16e960c8a08801000b64ec5c3 100644 (file)
@@ -9,4 +9,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "kmp204x"
 
+config BOARD_SPECIFIC_OPTIONS # dummy
+       def_bool y
+       select ARCH_P2041
+       select FSL_DDR_INTERACTIVE
+       select PHYS_64BIT
+       imply CMD_CRAMFS
+       imply FS_CRAMFS
+
 endif