From patchwork Thu Feb 19 14:08:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 441670 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 0E1C914009B for ; Fri, 20 Feb 2015 01:08:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AE2154B785; Thu, 19 Feb 2015 15:08:53 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tpz2wPj4h-5i; Thu, 19 Feb 2015 15:08:53 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 461AF4B7AD; Thu, 19 Feb 2015 15:08:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9ABA74B670 for ; Thu, 19 Feb 2015 15:08:46 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PezZfBj_jZ8x for ; Thu, 19 Feb 2015 15:08:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ob0-f202.google.com (mail-ob0-f202.google.com [209.85.214.202]) by theia.denx.de (Postfix) with ESMTPS id 2B9A54A039 for ; Thu, 19 Feb 2015 15:08:44 +0100 (CET) Received: by mail-ob0-f202.google.com with SMTP id nt9so2829918obb.1 for ; Thu, 19 Feb 2015 06:08:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0eZjem5pqlEJB30qDNleCy3tTscX6l+GxOpvNMpd+YI=; b=bwnyDrfpM3PEfRWVXe+JRSlXZ3e8O4JhCzlmAuw1wtKJ+/+m6H2gXFBw57BilFWonJ B3DWjaS4wLnoUbcQIG7GuG0h05Ui+YnB2UfYjdSEtNRqHi2x0gPjBQs89Fd0Pc5QCca1 Pp1fCNPNTm5POGncwuMJe7PT5r0SJ6r58UvC+n0Edu0neBrL8jdFoAplovkGDM7t6Tsy S+vYLjqQB+6p4SruT7l2ejO8sQaixtLsP6MlPiPKB+D5AGYWZEU33AtZCizTkTyaaziW wJ+gncSfvYTXiP9V+V7lN7WDtbQ0qntAC8b4alcvzJMFGJdANX8f8E1fOlFH95s1aQuc ymgg== X-Gm-Message-State: ALoCoQnTbY7+U7ZejNA5Iu7BsekmL7o3CBNaGWqJNrf4rdeuVsk4Hpi4uKMskYYDW0gIZdLTn6Cq X-Received: by 10.42.209.12 with SMTP id ge12mr5138046icb.16.1424354922731; Thu, 19 Feb 2015 06:08:42 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id 3si843996yhe.0.2015.02.19.06.08.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 06:08:42 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id rwRFdh16.1; Thu, 19 Feb 2015 06:08:42 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id E19CF220A12; Thu, 19 Feb 2015 07:08:41 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 19 Feb 2015 07:08:34 -0700 Message-Id: <1424354914-3387-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1424354914-3387-1-git-send-email-sjg@chromium.org> References: <1424354914-3387-1-git-send-email-sjg@chromium.org> Cc: Alexey Brodkin , Michal Simek , Ruchika Gupta , Tom Rini Subject: [U-Boot] [PATCH 2/2] kconfig: Adjust ordering so that defaults work as expected X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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"