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 X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00B92C4338F for ; Sun, 1 Aug 2021 19:21:50 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6D8DC60234 for ; Sun, 1 Aug 2021 19:21:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6D8DC60234 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1CCA983280; Sun, 1 Aug 2021 21:21:36 +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="GYCxUmXP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27FEF832F3; Sun, 1 Aug 2021 21:21:31 +0200 (CEST) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 51339832CC for ; Sun, 1 Aug 2021 21:21:27 +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-ot1-x32c.google.com with SMTP id 19-20020a9d08930000b02904b98d90c82cso15521287otf.5 for ; Sun, 01 Aug 2021 12:21:27 -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=g66jEIx/smLL4WiQfsVmclshTWtTs6vBzLCSvGCRys8=; b=GYCxUmXPLliPUi9uI9F2eFiJOgNFA78RYknR02dIuESMkkzL+URMExaKgJtbCqS3kO ybeDuLAonWEbk1sNAjGE35nwJ2XT0o+6AY5Iho5Fq5kWq6+Qsj86Dpk4ud4qg2dwTaVz zHp1LY+u395sA9aex632FYfzjEek9uaCkYcxY= 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=g66jEIx/smLL4WiQfsVmclshTWtTs6vBzLCSvGCRys8=; b=K7B/yVr9rlf5p9kSitBGA/gG0bZyk6UcvCwHfS6p8fHTeJ+d0l7xwtiqabJCZKmwho f9G6d+Xwpmai/jdUPnh2B/EAr/4KgsrE+MDWiFVUt4qy88VTlw9X50mMOEE/jbM72C2Y Uar2xrrz/t1tLStaXVR3hK0ObiH7hv5HFiHn2ChF0DEwiuQ8NYivQyP/cHxOtyt95DrK Pc4gVnG2hnHTBvWBYlA+uJz7xItp01Tg0DDptMiwuQsZzWDq+BdVEI7lmK8kUFMs7Owu Wozc8DPvbo3REB1wiL4ommeL7/kCJu/YMCAJaqRaUeHOVDpW5PezZVFsstdJTBMv90Zr 9gNA== X-Gm-Message-State: AOAM533MPFmajX+8kwY5kTbzXDuFxDdPXRjSu06dLT3qgf379GxdV15J YaFNfNfwhW4J/X9r2NiIlHoglFMa+oVvnhzh X-Google-Smtp-Source: ABdhPJyQBMS+04dV4nU39KM6HY5zuFltyimYAJaHILlF18RlaprRrSxafzZcMLfrQLIfX+q6bj/1+A== X-Received: by 2002:a05:6830:10e:: with SMTP id i14mr9143453otp.242.1627845685763; Sun, 01 Aug 2021 12:21:25 -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 s16sm1521773otg.51.2021.08.01.12.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 12:21:25 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v4 03/12] test: Tidy up test building with SPL Date: Sun, 1 Aug 2021 13:21:06 -0600 Message-Id: <20210801132108.v4.3.I3baa60e56b7d9c5331d2401d15c780ed32478420@changeid> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog In-Reply-To: <20210801192115.2183311-1-sjg@chromium.org> References: <20210801192115.2183311-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 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.2 at phobos.denx.de X-Virus-Status: Clean We can in principle add tests to any SPL build, e.g. TPL or VPL. Update the build rules to handle this. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 2 +- scripts/Makefile.spl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8c84c22b722..1e8c0a26875 100644 --- a/Makefile +++ b/Makefile @@ -847,7 +847,7 @@ libs-y += drivers/usb/ulpi/ ifdef CONFIG_POST libs-y += post/ endif -libs-$(CONFIG_UNIT_TEST) += test/ +libs-$(CONFIG_$(SPL_TPL_)UNIT_TEST) += test/ libs-$(CONFIG_UT_ENV) += test/env/ libs-$(CONFIG_UT_OPTEE) += test/optee/ libs-$(CONFIG_UT_OVERLAY) += test/overlay/ diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 25a3e7fa52e..44d3daaee64 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -109,7 +109,7 @@ libs-y += dts/ libs-y += fs/ libs-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/ libs-$(CONFIG_SPL_NET_SUPPORT) += net/ -libs-$(CONFIG_SPL_UNIT_TEST) += test/ +libs-$(CONFIG_$(SPL_TPL_)UNIT_TEST) += test/ head-y := $(addprefix $(obj)/,$(head-y)) libs-y := $(addprefix $(obj)/,$(libs-y)) -- 2.32.0.554.ge1b32706d8-goog