Kconfig: fix errorly select meson8b for ARMv8 AARCH32 [1/1]
authorJiamin Ma <jiamin.ma@amlogic.com>
Thu, 17 Jan 2019 11:42:45 +0000 (19:42 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Wed, 13 Mar 2019 12:22:12 +0000 (20:22 +0800)
PD#SWPL-4320

Problem:
The meson8b and arm64_a32 are both selected in Kconfig,
which is quite misleading

Solution:
Disable meson8b when arm64_a32 is selected

Verify:
Locally passed for Ampere

Change-Id: I93f55239ea90bf8cf6b96e108b6fd4a239de32b4
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
arch/arm/boot/Makefile
arch/arm/mach-meson/Kconfig

index 30fd2ed..e6aca68 100644 (file)
@@ -21,6 +21,10 @@ ifeq ($(CONFIG_MACH_MESON8B),y)
 include $(srctree)/arch/arm/mach-meson/Makefile.boot
 endif
 
+ifeq ($(CONFIG_ARM64_A32),y)
+include $(srctree)/arch/arm/mach-meson/Makefile.boot
+endif
+
 include $(srctree)/arch/arm/boot/dts/Makefile
 
 # Note: the following conditions must always be true:
index 44a995c..cda1cc1 100644 (file)
@@ -12,17 +12,17 @@ if ARCH_MESON
 
 config MACH_MESON6
        bool "Amlogic Meson6 (8726MX) SoCs support"
-       default ARCH_MESON
+       default !ARM64_A32
        select MESON6_TIMER
 
 config MACH_MESON8
        bool "Amlogic Meson8 SoCs support"
-       default ARCH_MESON
+       default !ARM64_A32
        select MESON6_TIMER
 
 config MACH_MESON8B
        bool "Amlogic Meson8b SoCs support"
-       default ARCH_MESON
+       default !ARM64_A32
 
 config ARM64_A32
        tristate "ARMV8 Run in A32"