2022-09-27 13:56:59

by Rong Tao

[permalink] [raw]
Subject: [PATCH] samples: bpf: add CONFIG_SAMPLES_BPF

Add the entry to samples/Makefile to put this into the build bot
coverage.

Signed-off-by: Rong Tao <[email protected]>
---
samples/Kconfig | 6 ++++++
samples/Makefile | 1 +
2 files changed, 7 insertions(+)

diff --git a/samples/Kconfig b/samples/Kconfig
index 470ee3baf2e1..f436e3616226 100644
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@ -6,6 +6,12 @@ menuconfig SAMPLES

if SAMPLES

+config SAMPLE_BPF
+ bool "bpf sample"
+ depends on BPF
+ help
+ This build several bpf examples.
+
config SAMPLE_AUXDISPLAY
bool "auxdisplay sample"
depends on CC_CAN_LINK
diff --git a/samples/Makefile b/samples/Makefile
index 701e912ab5af..a15d691a6817 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -2,6 +2,7 @@
# Makefile for Linux samples code

subdir-$(CONFIG_SAMPLE_AUXDISPLAY) += auxdisplay
+subdir-$(CONFIG_SAMPLE_BPF) += bpf
subdir-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs
obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/
obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/
--
2.31.1