From patchwork Tue Jan 12 13:59:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 361207 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp392289jap; Tue, 12 Jan 2021 06:03:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDF3dmEMr75Tte2rlQ4lmEuy9fPuSTqkJcNi4UDuNFLurT75CRb1VTtCgwreg45Al/Tdxa X-Received: by 2002:a17:906:2984:: with SMTP id x4mr3380906eje.239.1610460211526; Tue, 12 Jan 2021 06:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610460211; cv=none; d=google.com; s=arc-20160816; b=zHOYy2iATwgi93FDtd8Azr4B0L6gcV0mqo0UyMzexzpUKEzxACiyKB3lM+ZQcUkN7E jNlptLFmPwrG86vZCXk1W+rECiYDlLCH8IQgEPKYd6dBOk+iHDe7qT1YGTHidCNrvyzc b6MmwvNWu5lFfoRitBIXDlPZ5VD0fa9IsXzwIQMbs1aTNswnVp1J1FFXGv8ThGcmfGyC 74TdJJpPklyAtSNYLv+E0IWDAHjzKEOxrvDCgSjXh94LMYoFd+b3VlQEHZWAs1V2oCgU M0S798rlwZyOM2CUqHpyZnMM5uJNq40GABrcrDvPsW++IuvbUvpdGbBgo8Xzytt9QdWg UlNg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hpCVH5a6hvC4+S6dhiP+hhLVa4IrOyo2QyAihLIZoi8=; b=LXonvOZFSksdqZPM3+2Ce/8nQoQY9SDhzZR0k2+yKphej6L6WgLfH9ln4QT+xiRJbQ EYjzxiyjsmGaOvhoVmuXb5CGh3/JgWo+OqFG7uWvpGlrdRBzN9cRqVJqWiH/ZifyVgPW TPtXRgerqsyGIC1fSrE5y33ooNUt3hjQFupwAqrW1lrFfrPdSvUB4XKHSOGa7JZRSK+J 0iuaQbCUN+hJnH5k42SfJsS7kN15lp+nHHL9u8oq8R9bf+t9bYV7LEDvCHMKmDCFlyKh mrWdOTj6dkdrSlEsIVc0A9DZAVefjdBZA/nnTLMK2EadMLoA3qfCY0s5SBkPS7m2OLev 3daA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZmOPNrpi; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si1120735eja.462.2021.01.12.06.03.31; Tue, 12 Jan 2021 06:03:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZmOPNrpi; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732161AbhALOCJ (ORCPT + 6 others); Tue, 12 Jan 2021 09:02:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731388AbhALOCJ (ORCPT ); Tue, 12 Jan 2021 09:02:09 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB21DC06179F for ; Tue, 12 Jan 2021 06:01:28 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id jx16so3625933ejb.10 for ; Tue, 12 Jan 2021 06:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hpCVH5a6hvC4+S6dhiP+hhLVa4IrOyo2QyAihLIZoi8=; b=ZmOPNrpiH+mVTmTRz5FUC9VHUzKtgI31M0T9yLPHWEPJdDbLm9SvxRbXYVtn6t5zII jpxQU/YaeO2kNXl/wOGTxhTQraBdVFBl4boy+F+TtKZ/pcFzY0Ku4u9b3fCbL4NAcLzQ WKI0zb4eq0QH4+6LfXcx3ohR73VyEWu/cZnyOO1GMIU9d7IM1wm1vTcbCiQrHKSL44zE BGiov228ESMdD93HKT1Gwt+Pm2YOHK4luUDyDNxgie4VwCxz3IqxyZLIZLRR85RsWNll SzdDiYVDZz0F8TUQfUEFA/npi/OMY3EK8hM1mCnBmvfMwJCQDAVc+oA/UKWS1uj5SAeM M0WA== 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=hpCVH5a6hvC4+S6dhiP+hhLVa4IrOyo2QyAihLIZoi8=; b=XUFmT5tHb6gCmadmoPi46s0KnywMWaSn/wqhU+J99zaoC5QoMionGX73wPwLdifJkw uQCvcWTc0uJB9EjATqI3/PPF9o4oCBnHzgjIvEQDM/M26HM0Hsw2bTjNoV1HiNqi2E8J dfg93bn0eaCPRZUF3e4o8wKQg7L6mHK4or7Sas68IzT98N8jUaoF63l7DHNIMZybJJHa kefK105oCUF3Xwbcft7T9IBHSvfDaTz/CFo1jjx+3/RjbEmtrfPZRnMf6IBaH7hkLikV k8i4VDh79ou0a/Rp29MS5SkU846PvsBeh0qTg0uOh5JmdMaKfH642ZPdDeDzs2L56X8r LJvw== X-Gm-Message-State: AOAM532DPU1XXdBzLUDK25pvzLOws4EHZY9DL+metFLDwyPlHt5rFblU 1NLBVxCQqL7wCTpkL/r/v+HnfQ== X-Received: by 2002:a17:906:440e:: with SMTP id x14mr3310201ejo.77.1610460087614; Tue, 12 Jan 2021 06:01:27 -0800 (PST) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id t19sm1227846ejc.62.2021.01.12.06.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 06:01:27 -0800 (PST) From: Jean-Philippe Brucker To: bpf@vger.kernel.org Cc: shuah@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, linux-kselftest@vger.kernel.org, Jean-Philippe Brucker Subject: [PATCH bpf-next 2/5] selftests/bpf: Fix out-of-tree build Date: Tue, 12 Jan 2021 14:59:57 +0100 Message-Id: <20210112135959.649075-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210112135959.649075-1-jean-philippe@linaro.org> References: <20210112135959.649075-1-jean-philippe@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org When building out-of-tree, the .skel.h files are generated into the $(OUTPUT) directory, rather than $(CURDIR). Add $(OUTPUT) to the include paths. Signed-off-by: Jean-Philippe Brucker --- tools/testing/selftests/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.0 Acked-by: Andrii Nakryiko diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 1d85565883ea..3ff7e79cc497 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -25,7 +25,7 @@ BPF_GCC ?= $(shell command -v bpf-gcc;) SAN_CFLAGS ?= CFLAGS += -g -rdynamic -Wall -O2 $(GENFLAGS) $(SAN_CFLAGS) \ -I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \ - -I$(TOOLSINCDIR) -I$(APIDIR) \ + -I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT) \ -Dbpf_prog_load=bpf_prog_test_load \ -Dbpf_load_program=bpf_test_load_program LDLIBS += -lcap -lelf -lz -lrt -lpthread