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=-20.2 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, URIBL_BLOCKED,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 084B6C433F5 for ; Sun, 19 Sep 2021 23:49:22 +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 5BFB261041 for ; Sun, 19 Sep 2021 23:49:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5BFB261041 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 B3BC381BC8; Mon, 20 Sep 2021 01:49:02 +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="AdiNZA0F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 208E983276; Mon, 20 Sep 2021 01:48:39 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 3F13D83223 for ; Mon, 20 Sep 2021 01:48:29 +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-io1-xd2f.google.com with SMTP id q3so19666202iot.3 for ; Sun, 19 Sep 2021 16:48:29 -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=b8hrCa2oBR8G2micQ+t3rrr77kGt6WJtoyS2fxnhanM=; b=AdiNZA0FjrMBh5H7DiwaggTMmaUmOQ6dWJc4ITPEuuNTAjf5jbwpfPVU1ockST/Ebo HI4uEcOxqtOnrKrx3eTVtzEe/43L2bkKvG5DhGbjnLcIjR4nhfUiQvhk4JMy0nS+zUKH Epu0M6AUVXLC1i6wTyNU+fyJSv5WaJ5JxBJuA= 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=b8hrCa2oBR8G2micQ+t3rrr77kGt6WJtoyS2fxnhanM=; b=05DKWCeShCxaSi3xEDRIrohgHCeNdKdkqUHPGNL2+tS6El/9xuqhPxntntU4hrFUmD IA+1K35I5+zzX3bvopoXeEnAKPXn4lKsaW71aTHMoSM7YHzGH9B7Lv2K5IKuj/CIbxqs DNwVmYdFqFRACtM+6Y4fJ+K3+nM7gBkcZDXxvr4v6zMFszjt2Gl0hzo4Nu7EjiT+xd8q X19JRwuamG8W5xKtdYHLc5mrsE2CqpuUPW6LflICarPwSkiro1nG9IZEDAUTqBx5Ween m9wgcnb7wF71vuvi28wPoWVHtrhwsNF2CfZZGf+Pf7boFZW1vAPtlKFxe1pJ3Ya77DkA uyXg== X-Gm-Message-State: AOAM531RHfLkY2KkL5gOXfuIcZVVGB4p9YpyGMqxOu34DgDrLlNasl8Z hTBFa5PgF1hSW5xlUI14vkOjotmjSbNbZw== X-Google-Smtp-Source: ABdhPJxWUQB/1yS11wKVSaB+92FtLC8dUXhj+cvTnLOoq0eJarQRVaR276aR9+bBvEr/JPgjapvJAQ== X-Received: by 2002:a5d:9c89:: with SMTP id p9mr16494903iop.13.1632095307755; Sun, 19 Sep 2021 16:48:27 -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 y6sm7854441ilv.71.2021.09.19.16.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 16:48:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v6 03/11] test: Tidy up test building with SPL Date: Sun, 19 Sep 2021 17:48:12 -0600 Message-Id: <20210919174815.v6.3.I3baa60e56b7d9c5331d2401d15c780ed32478420@changeid> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog In-Reply-To: <20210919234820.3840570-1-sjg@chromium.org> References: <20210919234820.3840570-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 3014788e14e..6837487911a 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.33.0.464.g1972c5931b-goog