From patchwork Fri Jul 20 02:04:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 946686 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="unvcbOGb"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41WvNp6y1Cz9s4r for ; Fri, 20 Jul 2018 12:05:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 68F84C21C27; Fri, 20 Jul 2018 02:05:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4CC99C21C27; Fri, 20 Jul 2018 02:05:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B5C50C21C27; Fri, 20 Jul 2018 02:05:19 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id BB97BC21BE5 for ; Fri, 20 Jul 2018 02:05:18 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w6K24ECc018155; Fri, 20 Jul 2018 11:04:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w6K24ECc018155 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1532052255; bh=B48fOg+HNIaET4KqjGgxLMKmNdBaWFR5yIHtm1wDpWQ=; h=From:To:Cc:Subject:Date:From; b=unvcbOGbeQM8ATmfuk/jtRsDI4YDWJPeyIBJdtakN6yJXBldfpwSM8KLyUfZDqchA v6jspyNjU/PpcUedI6Hd2DFv+azOSDQ0eZPmv1oD/dbJKot2CNxWDV0puyDxq0SxAg T17fYaoYtTw6Exdaj/my26VrrNeSQQYZCA4VI3knIOVpQE102BHkkwxaALlGaOxj0O WjAfxpc83vmwuD7gEOj4OxcspuTKtGF6o36Is/KqV42JpKuG0NMUO3ZOW1dKXgEqdR 1Vz0+5i+gprf4s+Ax2MQzkflTQxWEAR8//LEoEvCoxMxitk6V+P1UtyspN39ablXrq lQhAY62tZ+k8A== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 20 Jul 2018 11:04:09 +0900 Message-Id: <1532052249-1894-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Andre Przywara , Jagan Teki Subject: [U-Boot] [PATCH] fdt_support: make FDT_FIXUP_PARTITIONS depend on CMD_MTDPARTS X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" fdt_fixup_mtdparts() calls mtdparts_init() and device_find(), which are defined in cmd/mtdparts.c The combination of FDT_FIXUP_PARTITIONS=y and CMD_MTDPARTS=n emits the following link error: common/fdt_support.c:903: undefined reference to `mtdparts_init' common/fdt_support.c:914: undefined reference to `device_find' Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- lib/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index a77bf1c..622f3c2 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -334,7 +334,7 @@ config SPL_OF_LIBFDT config FDT_FIXUP_PARTITIONS bool "overwrite MTD partitions in DTS through defined in 'mtdparts'" depends on OF_LIBFDT - default n + depends on CMD_MTDPARTS help Allow overwriting defined partitions in the device tree blob using partition info defined in the 'mtdparts' environment