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=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 77AA5C47404 for ; Sat, 5 Oct 2019 19:22:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 442F22084D for ; Sat, 5 Oct 2019 19:22:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sage.org header.i=@sage.org header.b="DLnlnW6o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729193AbfJETW1 (ORCPT ); Sat, 5 Oct 2019 15:22:27 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36385 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727466AbfJETW1 (ORCPT ); Sat, 5 Oct 2019 15:22:27 -0400 Received: by mail-pl1-f196.google.com with SMTP id j11so4774352plk.3 for ; Sat, 05 Oct 2019 12:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sage.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=egI3Lzn5J+3ZS1vrYh1u58rnDHSDofBO/EJHma4TvZU=; b=DLnlnW6oTYVZbnSF3kDpJ4PKFM6Je8A9tUucSZBn5Mu9i6xqh8Kr48xCpSD+waX1+s Zb6vC49HzuPX95Kwck1azeOfyh5Wd2FnUwxqAX2vMv9XD5gOnhTYajSHC5dgU89sP2/F /QdOlM/uPHiKTo3spnUL7TfoAp5lfD2+b7vEzQ9BT/tk3agzlkLuro0HarCXdKePyN+s iQfG8o6HR2VGr4fMglfylC7uKa+A0sKlicCoTPys99i4G45gSmTcuJqnmpb0iWvB6YuF 5i5y3a/BY59ceMwF3sGJjeQ+WbDkbJIRaAGif8uPMh9uyA1dZ45lofsU4zn0RSnLI02X Mj7Q== 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; bh=egI3Lzn5J+3ZS1vrYh1u58rnDHSDofBO/EJHma4TvZU=; b=MGC9Musn8Ondq232Of1ibl38IMUmFruJo5NtamWhC0qNEsQpzepcyxsRKauvHzSND0 oZda2OFxrTIpK9B3E1xPhoC8AEDcgq+9+k7sNndE/NokNS60Ly7r4n7TgZoFXIe+gmfm 00zg7sVA1dMyhiAoi6wJ4BJo6dRcx9eJ7asQdWFGJAVq7xI6ZjGYdpSVOBt4VmBSpn1H Sl5UunLIna1SRDsF2HJ8PQlB0A+xDjYGRRUKEsN8uv2sKqnPEU1rUpZLB6ZDoFxVj9ze e1nX60ufDyfg7wQx5BCDx34TktEK11cLBmf9sPeoCHeFR+x0zJwmyfL0T26DhEGL/oev ZDaQ== X-Gm-Message-State: APjAAAWyBEfwRXQZ3x3bKwW7yI0vXV3NkWkQMCtL4od8GtkX1D/X7jLv ib8qElV8TVS9nYfX0Q97dBHTmA== X-Google-Smtp-Source: APXvYqzMkpr2ME4mA22jKU19DERTN42LvgfIBDtz6oU18uFC107kOFDOaJAsxNobGKOEewxGTsB4zQ== X-Received: by 2002:a17:902:8691:: with SMTP id g17mr21247589plo.141.1570303345996; Sat, 05 Oct 2019 12:22:25 -0700 (PDT) Received: from dev-instance.c.sage-org.internal (143.139.82.34.bc.googleusercontent.com. [34.82.139.143]) by smtp.googlemail.com with ESMTPSA id b14sm10462336pfi.95.2019.10.05.12.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 12:22:25 -0700 (PDT) From: Eric Sage To: netdev@vger.kernel.org Cc: bpf@vger.kernel.org, daniel@iogearbox.net, xdp-newbies@vger.kernel.org, ast@kernel.org, Eric Sage Subject: Re: samples/bpf not working? Date: Sat, 5 Oct 2019 19:20:41 +0000 Message-Id: <20191005192040.20308-1-eric@sage.org> X-Mailer: git-send-email 2.18.1 In-Reply-To: References: Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org 394053f4a4b3 ("kbuild: make single targets work more correctly") changed the way single target builds work. For example, 'make samples/bpf/' in the previous commit matched: Makefile:1787 %/: prepare FORCE $(Q)$(MAKE) KBUILD_MODULES=1 $(build)=$(build-dir) need-modorder=1 So that 'samples/bpf/Makefile' was processed directly. Commit 394053f4a4b3 removed this rule and now requires that 'CONFIG_SAMPLES=y' and that 'bpf/' be added to 'samples/Makefile' so it is added to the list of targets processed by the new 'ifdef single-build' section of 'scripts/Makefile.build'. This commit adds a new 'CONFIG_SAMPLE_BPF' under 'CONFIG_SAMPLES' to match what the other sample subdirs have done. Signed-off-by: Eric Sage --- samples/Kconfig | 6 ++++++ samples/Makefile | 1 + 2 files changed, 7 insertions(+) diff --git a/samples/Kconfig b/samples/Kconfig index c8dacb4dda80..396e87ba97e0 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -6,6 +6,12 @@ menuconfig SAMPLES if SAMPLES +config SAMPLE_BPF + tristate "Build bpf examples" + depends on EVENT_TRACING && m + help + This builds the bpf example modules. + config SAMPLE_TRACE_EVENTS tristate "Build trace_events examples -- loadable modules only" depends on EVENT_TRACING && m diff --git a/samples/Makefile b/samples/Makefile index 7d6e4ca28d69..e133a78f3fb8 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -2,6 +2,7 @@ # Makefile for Linux samples code obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/ +obj-$(CONFIG_SAMPLE_BPF) += bpf/ obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/ obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/ subdir-$(CONFIG_SAMPLE_HIDRAW) += hidraw -- 2.18.1