From patchwork Fri Feb 2 03:07:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Bishop X-Patchwork-Id: 868497 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zXhkg6f4dz9s4s for ; Fri, 2 Feb 2018 14:08:11 +1100 (AEDT) Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3zXhkg4y4rzF0Y5 for ; Fri, 2 Feb 2018 14:08:11 +1100 (AEDT) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=fuzziesquirrel.com (client-ip=173.167.31.197; helo=bajor.fuzziesquirrel.com; envelope-from=bradleyb@fuzziesquirrel.com; receiver=) Received: from bajor.fuzziesquirrel.com (mail.fuzziesquirrel.com [173.167.31.197]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zXhkM352NzDqkY for ; Fri, 2 Feb 2018 14:07:54 +1100 (AEDT) X-Virus-Scanned: amavisd-new at fuzziesquirrel.com From: Brad Bishop To: joel@jms.id.au Subject: [PATCH u-boot v2016.07-aspeed-openbmc] aspeed: un-hardcode FIT configuration selection Date: Thu, 1 Feb 2018 22:07:25 -0500 Message-Id: <20180202030725.11771-1-bradleyb@fuzziesquirrel.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@aj.id.au, openbmc@lists.ozlabs.org, raltherr@google.com Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" Rely on the FDT parser to select a FIT config when looking for a ramdisk_conf. This allows image builders to use arbitrary configuration names like /configurations/conf@foo. Signed-off-by: Brad Bishop --- include/configs/ast-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ast-common.h b/include/configs/ast-common.h index 89b0cd8533..fbae281811 100644 --- a/include/configs/ast-common.h +++ b/include/configs/ast-common.h @@ -110,7 +110,7 @@ #define CONFIG_BOOTCOMMAND \ "fdt addr 20080000; " \ - "if fdt get value ramdisk_conf /configurations/conf@1 ramdisk; then " \ + "if fdt get value ramdisk_conf /configurations/conf ramdisk; then " \ " bootm 20080000; else bootm 20080000 20300000; " \ "fi" #define CONFIG_ENV_OVERWRITE