Message ID | 20210725161347.457937-6-sjg@chromium.org |
---|---|
State | New |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=aBIQ4WXB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GXp7F1BKrz9sWX for <incoming@patchwork.ozlabs.org>; Mon, 26 Jul 2021 02:15:21 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3D2F8321C; Sun, 25 Jul 2021 18:14:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="aBIQ4WXB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 121E482937; Sun, 25 Jul 2021 18:14:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CCFEE82C28 for <u-boot@lists.denx.de>; Sun, 25 Jul 2021 18:14:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc35.google.com with SMTP id e3-20020a4ab9830000b029026ada3b6b90so1667402oop.0 for <u-boot@lists.denx.de>; Sun, 25 Jul 2021 09:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MNZjKN14F2yDmf5opAJqqbzWZYu7l4Fq6KIsCKbJYAQ=; b=aBIQ4WXB69EAx0Y47fiUS9tqI+K7h0I3rumMdcLkTF+x9Qm/F5zBXM7FWwLxeuMgQd 6bIG4o5lycNS80ZnTRmKD9HvbMMzDIHbknlotMyY2mgGRXvYBXfqwI6hhrn0WEAjH+vR a5PDBNtZgrixak8Dz/n1+5lPEefgB/Xs406ZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MNZjKN14F2yDmf5opAJqqbzWZYu7l4Fq6KIsCKbJYAQ=; b=Gou60jfG1MPNmWdeL85ZlA5n4S1onF881ZY0oP/m7pIxkWtWVDMpPv2AvDJzRv18IS be5cz06EgHpjHfwlyuRFPppFWUM8B/ZxKd7grZRNw5T5jk6EeYOZzV/i9PTFelGhrElw Mnwu+dvIa9+y7VtEngGDVAdtCojzZ3Z0/xgtRSPcAtQgOjY8e96NTBA0CMmB1dMle6PW n7u3jVew7M9Ynu3aTd8fKQZgRmHqM08LF3MTcTfEyOuv64Zc6VGW18nHEmcMGh61sf5/ mqZwh0Y2mJM9Ha6RPTdGrUZMvP4aEHO6T2E7cztKuZet6kV3pYWbKzGZQC93/vAeEli1 8pGA== X-Gm-Message-State: AOAM533i2FxZ2tW4p57ayVBkgW6RfOHWQjSwj4OMvXqIUGtVM5NrbVl2 ipfiqw03JfmtoaLobaPWRw4L/CKc2hKR/Asn X-Google-Smtp-Source: ABdhPJysriamgEiStXesRHhLQizmVfy+5SRWSqqnUOICXwhGJF+JssxdnwOadVss1e1dyknQUatHNw== X-Received: by 2002:a4a:498f:: with SMTP id z137mr8199905ooa.64.1627229647242; Sun, 25 Jul 2021 09:14:07 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id y61sm6778937ota.31.2021.07.25.09.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 09:14:06 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [PATCH v6 5/5] dm: core: Don't include ofnode functions with of-platdata Date: Sun, 25 Jul 2021 10:13:47 -0600 Message-Id: <20210725161347.457937-6-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210725161347.457937-1-sjg@chromium.org> References: <20210725161347.457937-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
of-platdata: Avoid building libfdt
|
expand
|
diff --git a/drivers/core/Makefile b/drivers/core/Makefile index 5edd4e41357..725e6e94cd2 100644 --- a/drivers/core/Makefile +++ b/drivers/core/Makefile @@ -15,6 +15,8 @@ obj-$(CONFIG_$(SPL_)OF_LIVE) += of_access.o of_addr.o ifndef CONFIG_DM_DEV_READ_INLINE obj-$(CONFIG_OF_CONTROL) += read.o endif -obj-$(CONFIG_OF_CONTROL) += of_extra.o ofnode.o read_extra.o +ifdef CONFIG_$(SPL_TPL_)OF_LIBFDT +obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += of_extra.o ofnode.o read_extra.o +endif ccflags-$(CONFIG_DM_DEBUG) += -DDEBUG
These functions cannot work with of-platdata since libfdt is not available. At present when dev_read_...() functions are used it produces error messages about ofnode which is confusing. Adjust the Makefile and header to produce an error message for the actual dev_read...() function which is called. This makes it easier to see what code needs to be converted for use with of-platdata. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v3) Changes in v3: - Fix eth_dev_get_mac_address() call dev_read...() only when available drivers/core/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)