diff options
| author | 张智皓 <[email protected]> | 2023-08-04 03:13:52 +0000 |
|---|---|---|
| committer | 张智皓 <[email protected]> | 2023-08-04 03:13:52 +0000 |
| commit | c65d96fe420c66d8b2fdbf01eb68e79d2d4a10ca (patch) | |
| tree | 582961cd8dd4ae56d3558a10b94a8aad84643ede | |
| parent | bd61440309d198b0f055c86c6d1bbf95252d0a9a (diff) | |
上传新文件
| -rw-r--r-- | kernel/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile new file mode 100644 index 0000000..51568b0 --- /dev/null +++ b/kernel/Makefile @@ -0,0 +1,27 @@ +LINUX_SRC_PATH = /lib/modules/$(shell uname -r)/build + +# +## If building against OFED, include the OFED headers first. +# +ifneq ($(OFA_DIR),) +EXTRA_CFLAGS += -DOFED_BUILD +FOO := -I$(OFA_DIR)/include $(LINUXINCLUDE) +override LINUXINCLUDE=$(FOO) +endif + +default: modules + +install: modules + @${MAKE} -C $(LINUX_SRC_PATH) M=`pwd` modules_install + +modules: + @${MAKE} -C $(LINUX_SRC_PATH) M=`pwd` modules + +all: + @${MAKE} -C $(LINUX_SRC_PATH) M=`pwd` modules + +clean: + -@${MAKE} -C $(LINUX_SRC_PATH) M=`pwd` clean + +.PHONY: clean modules install + |
