mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-10-31 12:45:23 +08:00
ci: cover all libbpf Makefile tutorials (#213)
* ci: cover all libbpf Makefile tutorials * ci: build modules against HWE headers --------- Co-authored-by: LinuxDev9002 <i@littlefisher.me>
This commit is contained in:
@@ -2,10 +2,11 @@ obj-m += hello.o # hello.o is the target
|
||||
|
||||
# Enable BTF generation
|
||||
KBUILD_CFLAGS += -g -O2
|
||||
KDIR ?= /lib/modules/$(shell uname -r)/build
|
||||
|
||||
all:
|
||||
# Compile the module with BTF information
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
||||
+$(MAKE) -C $(KDIR) M=$(CURDIR) modules
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
||||
+$(MAKE) -C $(KDIR) M=$(CURDIR) clean
|
||||
|
||||
Reference in New Issue
Block a user