From patchwork Wed Jan 13 16:33:17 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: 362160 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp688509jap; Wed, 13 Jan 2021 08:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3ULswXHf6jE6O5NjxKr58osDbuGxub44K5h0d/EBreepCE/zctfh9w+mgOeczNJjsJN20 X-Received: by 2002:a05:6402:746:: with SMTP id p6mr2447174edy.313.1610555811508; Wed, 13 Jan 2021 08:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610555811; cv=none; d=google.com; s=arc-20160816; b=eQhPJLEli7OFdGdTi83P57rcPnwRD1urxl2eKKhnr9KnK2HfVF9LK5J9UYabgmEM3m mkMGS9Zmdv1jEngPQuancORWCGIidR3/kIJvb3YK/quOlcL/p7VatPiQO+pd6HzpmyHx XTT+UhzoP8PhLqRrnxlsuyKjwfYPJNpdRlsEAzaONu8Wz42maesimYXfpSGK45LUhCVI 7x3hkkHmHpCzDtstTMxLt7meOHwHzCSaDymxP/ZTkGUiDQhUeEM/h3th/kseXL+aQSsD LHAcCajeKaoQck7vz+urjAdptrMvXKRYb7gZxfrguFxAjAmdyywi/nj0F0K7wFQQ0gcN fcmQ== 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=imxNOIL2ER7DtcMLfQ/6C1z3KS46am+Q8zrFjZV4vkQ=; b=tKMuXLwP+L0KyvPuWqMhUjYUY7aj4VAmdXk7Hl64tqsqe/S0Mw5hTnbDW0EYJ3jlRs B5vepkHsjSbKLxhRMwos4YQc7HzwUSrospnH2835nUFtZEZsl80pAzEHur4c6IiY0yko +MsaCcOvWp/YBvZU+5sFFmOZ0Wg+0x1nf6/5qUoL4WxBpFe/cDRXLMUx4mwYk5EsdQyU vFj3OCBPZaz4wrPG7eiZ9ffmIzDri6qFlkH6y4QnREw7qwXMgKLLJuzMZR0nIy2TpxOf AdsFYLSppoL5KojeI3zbwIHVoZoIEYe1UzcRmC1wNCTFfSNz5X8WGW/YdAgKbxWX81BY sFfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kjwx42ms; 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 x11si1155669ejs.461.2021.01.13.08.36.51; Wed, 13 Jan 2021 08:36:51 -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=Kjwx42ms; 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 S1727406AbhAMQff (ORCPT + 6 others); Wed, 13 Jan 2021 11:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727370AbhAMQfe (ORCPT ); Wed, 13 Jan 2021 11:35:34 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 742B6C06179F for ; Wed, 13 Jan 2021 08:34:54 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id e18so3917712ejt.12 for ; Wed, 13 Jan 2021 08:34:54 -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=imxNOIL2ER7DtcMLfQ/6C1z3KS46am+Q8zrFjZV4vkQ=; b=Kjwx42msNjsVsAuTlIgBlFA9ZiedF39fMDSTDx/uckfRWrku2SMld2JIZoV3curmq2 0PRYHBZXnn5PZqOlPGjGiu4nqP8KHft0NfPoRx4MlAJG/mocoNSqN91WySExPaUgDoya 4127NK+NdAeUYjwhLG7eroAVVu8XRMLzgidw5MGuxr2X+wzsvD/EnsqA0KPh99Az1iQQ 4cCM+W9j4z76qPSynvGJqstRDe1g9I99miFxjGiL6aqCmi/Wej2wXufK+BplN/oksnfT vQ5kNWocVePxAhnq3mkpfPE9QpaHQYeI2tu7WcZTTdSiWbhTMkqHt+eutDKft2jA0TGn eymQ== 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=imxNOIL2ER7DtcMLfQ/6C1z3KS46am+Q8zrFjZV4vkQ=; b=qOPoITFs6htJpaELdpss9zw9+6UnkazOCvOUxGlYU70b7T61tSXOAefxQyqgHnSNxg cXM0e/UnJmFUxmfrYn4bsif3eoaNw6LGlDUz8zQ78khuZ8cRixmnG60lXW/N6KgRuKr8 njd4ZIk7MKMGJpVM6aFhe5hG1XKjC+7pNSbRsJuEKZmnjzNYtEfaZCZK4UIBicligIOT Ovl1TaMUVq826cBgSD6GURcQp+Fwc6WXf+b7t8RhsZqdw7gUa3bvN2x0HFDLnxdulSdZ 9N4O+vNmGBO+LE+RL4Svm5RAf9vy6xaF8yjREPqzVnKANpm0p14UrnBvptmR74wueqVd Q+DA== X-Gm-Message-State: AOAM531+FsKTKG3AqUil8dljpDlLVqWKIdFGizkvzwvXIBYOUk3mwXjM 9WfBOm+Wd4qyudobqHblkZtGxw== X-Received: by 2002:a17:906:ece4:: with SMTP id qt4mr2038296ejb.311.1610555693177; Wed, 13 Jan 2021 08:34:53 -0800 (PST) Received: from localhost.localdomain ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id g25sm923943ejf.15.2021.01.13.08.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 08:34:52 -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 v2 2/5] selftests/bpf: Fix out-of-tree build Date: Wed, 13 Jan 2021 17:33:17 +0100 Message-Id: <20210113163319.1516382-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210113163319.1516382-1-jean-philippe@linaro.org> References: <20210113163319.1516382-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. Acked-by: Andrii Nakryiko Signed-off-by: Jean-Philippe Brucker --- tools/testing/selftests/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.0 diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 95ce81513648..92888eed89f3 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