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: 142406 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2403875ljj; Thu, 19 Jul 2018 19:05:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrPvpryb0uosvk2Xhf8Fxu5D327Ke1bBXuKOlRQ5Fl/PdxkQ2I6E/1UC9p8SB42UMqQ6NV X-Received: by 2002:a50:89d3:: with SMTP id h19-v6mr405250edh.140.1532052323956; Thu, 19 Jul 2018 19:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532052323; cv=none; d=google.com; s=arc-20160816; b=u28RJchbb5Nh11Pt5C/YsNwVkyiL5M1jAs57PPzw59lfA5/NTnXZLhtgpWhbAaEMVo 4YTLYinkyjwiACfvnC/a/y3cmkU/yTbSE2EMoE0XPpLTSc8U4B1ffaSvhL7ri8rTL+Ua EmHjhAy9f7E/MSiAitVsN4fxQWHQ2/U6nyhfNd3Dter2wSl9iSsEQ4xw0OSK0q5p5d3p V/raf4wevTjtd48evSimUD61UdVUhA6DTPvX8xOwCLEzuuOBjMhGiuSZ5CNsm/X50Hfe ChEYkbGCi4mfQ9wrVydgMSUxkgmNIYxWXq4LYdOMn7JjFxNMn2uyqKPfxh43O3IPkGaT aAcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=QbXwla5xhnlJ5qSImKVq7nUKgGs8SfPPzDiEEbKFGF4=; b=be9Qi9ef+k7M2d05jK34Vtk4qsjFfjTe+yfVXAEVSzHItAX5n2LTOzAYfRumiOR/4x j26MX1JR925JmYdScgq8oTd0/qUf3fz6RokV1gJ/3c4mMJfLY/sW5iZtz67jHq0AFmWh gNJZOGG2n1fxlN82VYw5FREgFW+G8FwbiyOenZyhkoKjn8gWZ72XX/ujQ9iuvksS1AxJ wOM4coDiW8UeErQ8HO2iAd5KiNTLyuNm6Fbzg3H1CEG8gv3/jGQYcROsaa9AyM0cc6VZ vTrbf/eetGI86kr04gSv/0BoGuL00V61w56Gkgmyeh8Lc9gv48xhgoYGcSucHuhKh7lm EMlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=unvcbOGb; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h50-v6si799658ede.283.2018.07.19.19.05.23; Thu, 19 Jul 2018 19:05:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=unvcbOGb; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 20B8AC21CB1; 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