Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4056313pxb; Sat, 5 Feb 2022 02:38:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZlsSd7j56mOtJbgKJ8oJsM7KU9E3Ix7aLV9qnHMnjqUwJuCiJTIaM1/x42iRdsFwAUBaK X-Received: by 2002:a62:e317:: with SMTP id g23mr7208421pfh.49.1644057483637; Sat, 05 Feb 2022 02:38:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644057483; cv=none; d=google.com; s=arc-20160816; b=oE3WmIBzDPVyQi94pxS+PuFYw85jsWoPe28QOcOoH1AMLJsVjR9sIxf/A0isaExG/8 flK7m5DrT7sifY4Lm6QZXI80YBRvEdIPhZngjkVuwmFZV5SgkzsM2OdSNJKPNje0n+hz rUpb7qaWAd/uGie1Ce2AXyd9X9LKp9GMtdUWIG/YS6uHL0jB1DZ5wFbPxUPIhl28mLyR 2d8aHurRbrcSTAAAv8rvgncA/9sJ674vCPTLozCtH5PgQar6hdi63SIqbDmF9BN94gZR Jd4J3PnJs/Vhp3yRty2o0eThHY46gzrl99p4qpXMucKkyIwcXjuKBasGaRF8/Pk13+na 894Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CRqB8MVaRDNbBL6dC8oSqHJp8K64MCrt70g6CaUNhtQ=; b=BOWlpApaIFMlgMuCGKbsuI/brdlPnlRT6tbTvHwlAKqa4+NHZk4DcdyzQFJIR1fnAl 5TS2hx3K01CLx7fxXPnu7zNTwdV7XsQI4qs74DChypqt5rpdtFeRqD1T5WhtBAzPElR1 hpCa6TaABNZTiGXHbDswgQr2+TGrWSKWSFZQ8jFg55tav/3wZ3ZpIJ7WKngmnsFfwvBu Qhlmm+8gVqN/Rb366estyhNlheDeN+tseTP4iho7ZNns9YVY0bpqFnTV4unghntjMPjP VHC4Uul1GOSw1gNUtK3nffgxJ5BTpph0dKZk7ciZNIUFrcXuiEcQXBUkyfN2za2cjdew bGfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=goLaU8BC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13si4424891pfv.190.2022.02.05.02.37.52; Sat, 05 Feb 2022 02:38:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=goLaU8BC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343897AbiBDW7l (ORCPT + 99 others); Fri, 4 Feb 2022 17:59:41 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44814 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbiBDW7j (ORCPT ); Fri, 4 Feb 2022 17:59:39 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: usama.anjum) with ESMTPSA id 8B0DF1F4705B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1644015578; bh=J0wycOSxzaDqvcAyKwCYXObRCBOWXbIMVDr84hTsOEk=; h=From:To:Cc:Subject:Date:From; b=goLaU8BCbkBFs6Zt1lY7YiPBKr8TOOMHjPbzSaGP7IIBlhK2nTiWOcpawtEo959Zh rbjvKkXvuM1aHIFtK/cxvWDMSPCl+e34l10SRYEboOjAGQtiGKhzTQEgIp4pMKR3Bz 5qMdKR8UsHYMXZMTnhDEOYvYkUirgctWi9uLn2eNZfvcE1E8QdiFqUTCehzP30jrUH PC4VvH/c0uy3PDH/R2FFij+WIvz5XSh6i5/7byNWOKOUdDq3/0UbTm8Jweme242wno iVp/PyA3wD3vvoCbc9atJwuKkgCVpjkMaXuUEsXDLw+hyWpRk+xfR4tvChaxd1elFH wAm6ZlifjslMw== From: Muhammad Usama Anjum To: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH] selftests: Fix build when $(O) points to a relative path Date: Sat, 5 Feb 2022 03:58:17 +0500 Message-Id: <20220204225817.3918648-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build of bpf and tc-testing selftests fails when the relative path of the build directory is specified. make -C tools/testing/selftests O=build0 make[1]: Entering directory '/linux_mainline/tools/testing/selftests/bpf' ../../../scripts/Makefile.include:4: *** O=build0 does not exist. Stop. make[1]: Entering directory '/linux_mainline/tools/testing/selftests/tc-testing' ../../../scripts/Makefile.include:4: *** O=build0 does not exist. Stop. The fix is same as mentioned in commit 150a27328b68 ("bpf, preload: Fix build when $(O) points to a relative path"). Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 4eda7c7c15694..aa0faf132c35a 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -178,6 +178,7 @@ all: khdr BUILD_TARGET=$$BUILD/$$TARGET; \ mkdir $$BUILD_TARGET -p; \ $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET \ + O=$(abs_objtree) \ $(if $(FORCE_TARGETS),|| exit); \ ret=$$((ret * $$?)); \ done; exit $$ret; @@ -185,7 +186,8 @@ all: khdr run_tests: all @for TARGET in $(TARGETS); do \ BUILD_TARGET=$$BUILD/$$TARGET; \ - $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET run_tests;\ + $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET run_tests \ + O=$(abs_objtree); \ done; hotplug: -- 2.30.2