Skip to contentSkip to conversation

Follow-up patches for commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs)

PATCH Superseded Masahiro Yamada 3 participants 6 messages Oct 31, 2014 – Nov 2, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Follow-up patches for commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs)

Masahiro Yamada (2):
kconfig: arm: select CPU_V7 for some new boards
kconfig: arm: move "armv8" define to arch/arm/Kconfig

 arch/arm/Kconfig                        | 5 +++--
 arch/arm/cpu/armv7/tegra-common/Kconfig | 4 ----
 arch/arm/cpu/armv8/Kconfig              | 6 ------
 board/Marvell/db-mv784mp-gp/Kconfig     | 8 --------
 board/maxbcm/Kconfig                    | 7 -------
 board/sunxi/Kconfig                     | 1 -
 board/ti/ks2_evm/Kconfig                | 3 ---
 7 files changed, 3 insertions(+), 31 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/Kconfig
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 kconfig: arm: select CPU_V7 for some new boards

Marvell DB-MV784MP-GP and maxBCM are pretty new boards and were missed by commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs).

This commit adds "select CPU_V7" for them and remove redundant "config SYS_CPU" and "string" directives.

---

 arch/arm/Kconfig                        | 2 ++
 arch/arm/cpu/armv7/tegra-common/Kconfig | 4 ----
 board/Marvell/db-mv784mp-gp/Kconfig     | 8 --------
 board/maxbcm/Kconfig                    | 7 -------
 board/sunxi/Kconfig                     | 1 -
 board/ti/ks2_evm/Kconfig                | 3 ---
 6 files changed, 2 insertions(+), 23 deletions(-)
arch/arm/Kconfig +2 -0
index 1bad202..76ac2b6 100644
@@ -229,9 +229,11 @@ config KIRKWOOD
 
 config TARGET_DB_MV784MP_GP
 	bool "Support db-mv784mp-gp"
+	select CPU_V7
 
 config TARGET_MAXBCM
 	bool "Support maxbcm"
+	select CPU_V7
 
 config TARGET_DEVKIT3250
 	bool "Support devkit3250"
arch/arm/cpu/armv7/tegra-common/Kconfig +0 -4
index 3ea6d76..1446452 100644
@@ -20,10 +20,6 @@ endchoice
 config USE_PRIVATE_LIBGCC
 	default y if SPL_BUILD
 
-config SYS_CPU
-	default "arm720t" if SPL_BUILD
-	default "armv7" if !SPL_BUILD
-
 source "arch/arm/cpu/armv7/tegra20/Kconfig"
 source "arch/arm/cpu/armv7/tegra30/Kconfig"
 source "arch/arm/cpu/armv7/tegra114/Kconfig"
board/Marvell/db-mv784mp-gp/Kconfig +0 -8
index f94a444..98aa10a 100644
@@ -1,23 +1,15 @@
 if TARGET_DB_MV784MP_GP
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
-	string
 	default "db-mv784mp-gp"
 
 config SYS_VENDOR
-	string
 	default "Marvell"
 
 config SYS_SOC
-	string
 	default "armada-xp"
 
 config SYS_CONFIG_NAME
-	string
 	default "db-mv784mp-gp"
 
 endif
board/maxbcm/Kconfig +0 -7
index d34e2ab..d833ca0 100644
@@ -1,19 +1,12 @@
 if TARGET_MAXBCM
 
-config SYS_CPU
-	string
-	default "armv7"
-
 config SYS_BOARD
-	string
 	default "maxbcm"
 
 config SYS_SOC
-	string
 	default "armada-xp"
 
 config SYS_CONFIG_NAME
-	string
 	default "maxbcm"
 
 endif
board/sunxi/Kconfig +0 -1
index 28df187..4aea0ee 100644
@@ -1,7 +1,6 @@
 if TARGET_SUN4I || TARGET_SUN5I || TARGET_SUN6I || TARGET_SUN7I || TARGET_SUN8I
 
 config SYS_CONFIG_NAME
-	string
 	default "sun4i" if TARGET_SUN4I
 	default "sun5i" if TARGET_SUN5I
 	default "sun6i" if TARGET_SUN6I
board/ti/ks2_evm/Kconfig +0 -3
index 96c5f22..384b175 100644
@@ -27,15 +27,12 @@ endif
 if TARGET_K2L_EVM
 
 config SYS_BOARD
-	string
 	default "ks2_evm"
 
 config SYS_VENDOR
-	string
 	default "ti"
 
 config SYS_CONFIG_NAME
-	string
 	default "k2l_evm"
 
 endif
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 kconfig: arm: select CPU_V7 for some new boards

Quoted 8 lines · Masahiro Yamada

Marvell DB-MV784MP-GP and maxBCM are pretty new boards and were missed by commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs).

This commit adds "select CPU_V7" for them and remove redundant "config SYS_CPU" and "string" directives.

Thanks Masahiro-san for taking care of this. As always, you are really amazingly active and attentive!

Thanks,
Stefan

#3 lore raw

PATCH 1/2 kconfig: arm: select CPU_V7 for some new boards

Hi Masahiro,

Le 31/10/2014 07:59, Stefan Roese a ?crit :

Quoted 10 lines · Masahiro Yamada
Quoted 8 lines

Marvell DB-MV784MP-GP and maxBCM are pretty new boards and were missed by commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs).

This commit adds "select CPU_V7" for them and remove redundant "config SYS_CPU" and "string" directives.

Quoted 8 lines

Thanks Masahiro-san for taking care of this. As always, you are really amazingly active and attentive!

Thanks,
Stefan

I think I have missed these boards during the rebasing.

Thanks for spotting this.

Best regards,

Georges

#4 lore raw

PATCH 2/2 kconfig: arm: move "armv8" define to arch/arm/Kconfig

In reply to Masahiro Yamada

Commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs) collected the default values of CONFIG_SYS_CPU into arch/arm/Kconfig.

This commit moves "armv8" to there for consistency.

---

 arch/arm/Kconfig           | 3 +--
 arch/arm/cpu/armv8/Kconfig | 6 ------
 2 files changed, 1 insertion(+), 8 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/Kconfig
arch/arm/Kconfig +1 -2
index 76ac2b6..3db3257 100644
@@ -49,6 +49,7 @@ config SYS_CPU
         default "armv7" if CPU_V7
         default "pxa" if CPU_PXA
         default "sa1100" if CPU_SA1100
+	default "armv8" if ARM64
 
 choice
 	prompt "Target select"
@@ -800,8 +801,6 @@ config ARCH_UNIPHIER
 
 endchoice
 
-source "arch/arm/cpu/armv8/Kconfig"
-
 source "arch/arm/cpu/arm926ejs/davinci/Kconfig"
 
 source "arch/arm/cpu/armv7/exynos/Kconfig"
arch/arm/cpu/armv8/Kconfig deleted +0 -6
deleted file mode 100644
index 3d1655b..0000000
@@ -1,6 +0,0 @@
-if ARM64
-
-config SYS_CPU
-	default "armv8"
-
-endif
Signature · 1 line
1.9.1
#5 lore raw

PATCH 2/2 kconfig: arm: move "armv8" define to arch/arm/Kconfig

Hi Masahiro,

Le 31/10/2014 06:26, Masahiro Yamada a ?crit :

Quoted 41 lines

Commit 2e07c249a67e (kconfig: arm: introduce symbol for ARM CPUs) collected the default values of CONFIG_SYS_CPU into arch/arm/Kconfig.

This commit moves "armv8" to there for consistency.

---

  arch/arm/Kconfig           | 3 +--
  arch/arm/cpu/armv8/Kconfig | 6 ------
  2 files changed, 1 insertion(+), 8 deletions(-)

delete mode 100644 arch/arm/cpu/armv8/Kconfig

arch/arm/Kconfig +1 -2
index 76ac2b6..3db3257 100644
@@ -49,6 +49,7 @@ config SYS_CPU
          default "armv7" if CPU_V7
          default "pxa" if CPU_PXA
          default "sa1100" if CPU_SA1100
+	default "armv8" if ARM64
 
  choice
  	prompt "Target select"
@@ -800,8 +801,6 @@ config ARCH_UNIPHIER
 
  endchoice
 
-source "arch/arm/cpu/armv8/Kconfig"
-
  source "arch/arm/cpu/arm926ejs/davinci/Kconfig"
 
  source "arch/arm/cpu/armv7/exynos/Kconfig"
arch/arm/cpu/armv8/Kconfig deleted +0 -0
deleted file mode 100644
index 3d1655b..0000000

arch/arm/cpu/armv8/Kconfig line 6

Quoted 6 lines
arch/arm/cpu/armv8/Kconfig deleted +0 -6
@@ -1,6 +0,0 @@
-if ARM64
-
-config SYS_CPU
-	default "armv8"
-
-endif

Best regards,

Georges