1 BPF_TESTMOD_DIR := $(realpath $(dir $(abspath 1 BPF_TESTMOD_DIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) 2 KDIR ?= $(abspath $(BPF_TESTMOD_DIR)/../../../ 2 KDIR ?= $(abspath $(BPF_TESTMOD_DIR)/../../../../..) 3 3 4 ifeq ($(V),1) 4 ifeq ($(V),1) 5 Q = 5 Q = 6 else 6 else 7 Q = @ 7 Q = @ 8 endif 8 endif 9 9 10 MODULES = bpf_testmod.ko 10 MODULES = bpf_testmod.ko 11 11 12 obj-m += bpf_testmod.o 12 obj-m += bpf_testmod.o 13 CFLAGS_bpf_testmod.o = -I$(src) 13 CFLAGS_bpf_testmod.o = -I$(src) 14 14 15 all: 15 all: 16 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_D 16 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) modules 17 17 18 clean: 18 clean: 19 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_D 19 +$(Q)make -C $(KDIR) M=$(BPF_TESTMOD_DIR) clean 20 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.