From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E37AC433F5 for ; Mon, 28 Feb 2022 14:20:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 06D2983CF4; Mon, 28 Feb 2022 15:19:48 +0100 (CET) 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="J2B+tSE/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6556183C50; Mon, 28 Feb 2022 15:18:19 +0100 (CET) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (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 4534983CB1 for ; Mon, 28 Feb 2022 15:18:00 +0100 (CET) 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-ot1-x334.google.com with SMTP id a7-20020a9d5c87000000b005ad1467cb59so9581618oti.5 for ; Mon, 28 Feb 2022 06:18:00 -0800 (PST) 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=90QpoDw0Z2B66NtWYMTVLQciQ9iMYJNV6wFbQRUymrM=; b=J2B+tSE/RpbQNyd35L6CagJKZRtbu9mO5xcdJlNzAB4KLKgy2Zhaf5tM7gFzu3wE01 vm4DNmEpXuFqXD8eXT+iC4t9vsUxnvwVi0CBMku0h7KTmVqcDFTSjttd8q1udMm5OgO9 FgI7+zzB9e02uLeZlm4H3ba1UDbR0GZQhPb1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=90QpoDw0Z2B66NtWYMTVLQciQ9iMYJNV6wFbQRUymrM=; b=OctX8tTygGd8qVkxl+dmcGQv42tGA8s7rmEFcNyMj0o1Fkn3Z8vtFKDEILsItnRiPW 16zPT5YkyG19qDc4hidfxceiqDCQTFRem/5/Fat8ttjL16xO53yBeiZpVxR6hcTSP1K/ LigX9irAOgHdzbzbaXu4fPUMUZB8w1jPnh/SnNbF5L2zgyQg6Nav0FBXlzNbnh2N6yYH LWMoDGdPDRtd5RbI8NIDRmAFFY89dCBCBmRlQOrM1YNpWEyXf5euWvkbGjFKIiymStxR 32Mtt3GRgTOgRpaaBSSEZUvgWBbsn6woX+UV677XVr5RlkSDFy1n7TW5N78RmUoB3hMQ OLFQ== X-Gm-Message-State: AOAM533lOBPpp1r9s+LtDDo8RFVj5hooh0DI9Udh18xc8kiIHy8Q5T9X 4lSoq2fv86Az++NMnyQ+b0mNGeeRjjXs7g== X-Google-Smtp-Source: ABdhPJxdJYtTd/ZrjN8Hlrpj3sVLK72vDBkZNDwREadUPjmHjaGMT/U0UyDeGZczRU4++yVHa3RqGw== X-Received: by 2002:a05:6830:1650:b0:5af:8c61:7a23 with SMTP id h16-20020a056830165000b005af8c617a23mr8981110otr.118.1646057878237; Mon, 28 Feb 2022 06:17:58 -0800 (PST) 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 y28-20020a4aea3c000000b0031c0cddfbf9sm4905966ood.20.2022.02.28.06.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 06:17:57 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Jerry Van Baren Subject: [PATCH v7 11/15] fdt: sandbox: Avoid looking for an appended device tree Date: Mon, 28 Feb 2022 07:16:53 -0700 Message-Id: <20220228141657.1388834-5-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog In-Reply-To: <20220228141657.1388834-1-sjg@chromium.org> References: <20220228141657.1388834-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean We don't use an appended tree for sandbox and the required symbols are not present. Add a condition to avoid a build error. Signed-off-by: Simon Glass --- Changes in v7: - Add new patch to avoid looking for an appended device tree lib/fdtdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 086f0c732a..0c0ec034ec 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1225,6 +1225,9 @@ static void *fdt_find_separate(void) { void *fdt_blob = NULL; + if (IS_ENABLED(CONFIG_SANDBOX)) + return NULL; + #ifdef CONFIG_SPL_BUILD /* FDT is at end of BSS unless it is in a different memory region */ if (CONFIG_IS_ENABLED(SEPARATE_BSS)) -- 2.35.1.574.g5d30c73bfb-goog