rename include to lkmc

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 9c8f95d630
commit 1cc3ee8657
18 changed files with 56 additions and 35 deletions

View File

@@ -1,15 +1,17 @@
ifeq ($(OBJECT_FILES),)
# Hardcoding LKMC_MODULE_SUBDIRS here because is not defined.
obj-m += $(addsuffix .o, $(notdir $(basename $(filter-out %.mod.c, $(wildcard $(BR2_EXTERNAL_LKMC_PATH)/kernel_modules/*.c)))))
else
# Trying to do:
# $(MAKE) -C '$(LINUX_DIR)' M='$(M)' hello.ko hello2.ko
# to restrict which modules are built leads to failures
# when doing parallel builds. The only solution I could find
# was to let the host select obj-m itself.
obj-m += $(OBJECT_FILES)
endif
ccflags-y := -DDEBUG -g -std=gnu99 -Werror -Wno-declaration-after-statement -Wframe-larger-than=1000000000
ccflags-y := \
-DDEBUG \
-ggdb3 \
-std=gnu99 \
-Werror \
-Wframe-larger-than=1000000000 \
-Wno-declaration-after-statement \
$(CCFLAGS)
.PHONY: all