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 0BB5BC433F5 for ; Mon, 28 Feb 2022 14:19:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6586E83CDD; Mon, 28 Feb 2022 15:18: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="RHna3h/+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7979983CE3; Mon, 28 Feb 2022 15:18:04 +0100 (CET) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (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 59B6883C3C for ; Mon, 28 Feb 2022 15:17:53 +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-x336.google.com with SMTP id j3-20020a9d7683000000b005aeed94f4e9so9590462otl.6 for ; Mon, 28 Feb 2022 06:17:53 -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=YSGN6DyBRren8PSFdqIsPN5UVVe0G+QkgOLrG+e2dYU=; b=RHna3h/+/v6Akc2JI9kx+8MI9+vR5eL2KdoUj7bGI6BpOCyq0yinlkEkb4n1dZXcO9 +eLuazTTBHb79l9sNJK6ZRvxKSNX3msDgkkSzE8+6YwRhRIR0jXMeE5XHMEdD8eigvnM CR4tP35YKNkJz8N3CvCc2ypZhA9Ftvd4esw8g= 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=YSGN6DyBRren8PSFdqIsPN5UVVe0G+QkgOLrG+e2dYU=; b=MxjXM5q0hXreu87gHXvdinEXS0faHW/HhOvcS2D1Px/BXR2RzB9bAaQgHJb9EvOprB Yuv2EHFWZN7Wxj7JHQDtNV3sPPRCMPJNNuGMRZXmeqH+Y/2hMQMUAWw/3ySUjGB+EX1o XHkywDN2JZI88CKJEy89CQNNkPMKmSLvu1o9P296TUWFRf2psTW7bXD+a0w29Kl4zAtZ iS0p3zFyNHY3RYQuKQDUopGv/rO5cAS6T31YVWC6KXQcPOEBdIAu6LptLNRtBaRYiRVI CIQ2nF6lQLjZt0uuRj1xLm1XkvI5/EI9UO9J452tG6yD/LrktCYYDVJ6xwtsgthe0xRP 4RDw== X-Gm-Message-State: AOAM530p6dvMvRXYsVGBHtIezjwIdrayJ4tpx+orPVLu7BuBSEkErvuV p8Q6Ekw8HwB0RfWdePwOwS4WPerhfWKfgg== X-Google-Smtp-Source: ABdhPJwgu6r/Ui8OqukHtGSFtyLKRY1IHwb6GhKAnByP8dcCXNggSbTYzesrFda/VtGnmXJe3d7IvQ== X-Received: by 2002:a05:6830:1d92:b0:5af:4018:c8bf with SMTP id y18-20020a0568301d9200b005af4018c8bfmr9077917oti.349.1646057871717; Mon, 28 Feb 2022 06:17:51 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 06:17:51 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v7 03/15] test: Tidy up test building with SPL Date: Mon, 28 Feb 2022 07:16:45 -0700 Message-Id: <20220228071651.v7.3.I3baa60e56b7d9c5331d2401d15c780ed32478420@changeid> 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 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 66d9e78cc7..f597bc6866 100644 --- a/Makefile +++ b/Makefile @@ -839,7 +839,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 83a95ee4aa..1f50fbf8c9 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) += 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.35.1.574.g5d30c73bfb-goog