@@ -9,8 +9,6 @@ comment "Compiler: $(CC_VERSION_TEXT)"
source "scripts/Kconfig.include"
-source "arch/$(SRCARCH)/Kconfig"
-
source "init/Kconfig"
source "kernel/Kconfig.freezer"
@@ -1717,6 +1717,12 @@ config PROFILING
config TRACEPOINTS
bool
+# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig
+# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS
+# before the default value is found in arch/Kconfig.
+
+source "arch/$(SRCARCH)/Kconfig"
+
source "arch/Kconfig"
endmenu # General setup