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 26361C64EC4 for ; Wed, 22 Feb 2023 16:46:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2DC0485BA8; Wed, 22 Feb 2023 17:37: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="UmkZDkGL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E03A885B39; Wed, 22 Feb 2023 17:36:16 +0100 (CET) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 09DF185B24 for ; Wed, 22 Feb 2023 17:35:14 +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-io1-xd34.google.com with SMTP id b16so2815340iof.11 for ; Wed, 22 Feb 2023 08:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HfuRMY8EvHvr6YUt0AYIiLp1qJ03rQzlZIEpazUX2Nw=; b=UmkZDkGLBGgt7AyoPn0wreVHdMxCjvyKO3a4PHU+kIcr31KE3wmVNV30NNIukUf3pu tQyyngMYmgncoUkKt6a6tr4oJgStgYodIKN3BgYDDXHwyKvEuIkAmEwAFTdK6X43mSQ/ QvZSyC/Khc4aFerjvGiepxY0Ax2Myjv5wdXbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HfuRMY8EvHvr6YUt0AYIiLp1qJ03rQzlZIEpazUX2Nw=; b=L48O+GYFhDZEha5jsjhZdWhOAh1RbjgoixwulSPa2qozgbOJk2acWnS0oOZdpr7BVC XFCFn4IJkG/fQYFi/BbMfIA7zlai0TopZSL6eccEskZclt6gQXory9Z4j782QaDmEEjo nMAh5Z69K8yzaNdfvZ6l0PmiKxfSzS7hSrszdoEqPGucMvHatdBxauJAV+ElPL8XaswF d5595O0Ojc3awzyL74xF/e5w+o2fjmcxgMg3mtdFPWmhRI6Hm57eg4ttBWjCBIRleJd2 vEQHsgn2DPXJXGFYiqADXGIG3uazVeuQBp06OD+cW8QxBzDqX/d9n+1U3mgGDFcbGfLN Hyvg== X-Gm-Message-State: AO0yUKV3zr6iknwGKYI4SKvMBbOcrvaCqw6BR73cEmxQUpq+Jidkuv6Y M4udMKCq+QbhdBAQmIThfgsTzJpfYNav4Wc9 X-Google-Smtp-Source: AK7set+gJe/EhbAtoicE/9uR7d+mbBYg5pZ1E/R8V2xUj/7xFRPcK1pPqDuWRKrs1LPxoLzdUFlTMQ== X-Received: by 2002:a5e:db45:0:b0:741:8544:7cab with SMTP id r5-20020a5edb45000000b0074185447cabmr932608iop.16.1677083708397; Wed, 22 Feb 2023 08:35:08 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:08 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Michal Suchanek , Stefan Roese Subject: [PATCH v5 31/44] test: Tidy up sandbox handling in test-main Date: Wed, 22 Feb 2023 09:34:12 -0700 Message-Id: <20230222163425.2043934-32-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-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.6 at phobos.denx.de X-Virus-Status: Clean This is pretty messy at present since it relies on a SPL_SANDBOX option that does not exist. Use the normal options instead, so that it will work with split config. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test-main.c b/test/test-main.c index ea959f4e859..b3c30d92937 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -46,14 +46,14 @@ enum fdtchk_t { */ static enum fdtchk_t fdt_action(void) { - /* Do a copy for sandbox (but only the U-Boot build, not SPL) */ - if (CONFIG_IS_ENABLED(SANDBOX)) - return FDTCHK_COPY; - /* For sandbox SPL builds, do nothing */ - if (IS_ENABLED(CONFIG_SANDBOX)) + if (IS_ENABLED(CONFIG_SANDBOX) && IS_ENABLED(CONFIG_SPL_BUILD)) return FDTCHK_NONE; + /* Do a copy for sandbox (but only the U-Boot build, not SPL) */ + if (IS_ENABLED(CONFIG_SANDBOX)) + return FDTCHK_COPY; + /* For all other boards, do a checksum */ return FDTCHK_CHECKSUM; } -- 2.39.2.637.g21b0678d19-goog