From: Simon Glass Date: Thu, 19 Feb 2015 07:08:34 -0700 Subject: [U-Boot] [PATCH 2/2] kconfig: Adjust ordering so that defaults work as expected In-Reply-To: <1424354914-3387-1-git-send-email-sjg@chromium.org> References: <1424354914-3387-1-git-send-email-sjg@chromium.org> Message-ID: <1424354914-3387-2-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de At present defaults in arch-specific Kconfig files are ignored if the top-level item comes ahead of it in include order. This means that it is not possible to have a U-Boot default that architectures and boards can override. This does not seem very useful. Move the include earlier to support this. Signed-off-by: Simon Glass Reported-by: Masahiro Yamada --- Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index aa35ac9..e6ed593 100644 --- a/Kconfig +++ b/Kconfig @@ -12,6 +12,9 @@ config KCONFIG_OBJDIR string option env="KCONFIG_OBJDIR" +# Allow defaults in arch-specific code to override any given here +source "arch/Kconfig" + menu "General setup" config LOCALVERSION @@ -172,8 +175,6 @@ config SYS_CLK_FREQ endmenu # Boot images -source "arch/Kconfig" - source "common/Kconfig" source "dts/Kconfig" -- 2.2.0.rc0.207.ga3a616c