Files
linux-kernel-module-cheat/packages/kernel_module/Makefile
Ciro Santilli 66fe5f6647 build runs, lots of uncommented and lots of untested though
Refactor everything. Create nice submodules/ and packages/ folders.
2018-09-07 10:08:59 +01:00

11 lines
376 B
Makefile

obj-m += $(addsuffix .o, $(notdir $(basename $(filter-out %.mod.c, $(wildcard $(BR2_EXTERNAL_KERNEL_MODULE_PATH)/*.c)))))
ccflags-y := -DDEBUG -g -std=gnu99 -Werror -Wno-declaration-after-statement -Wframe-larger-than=1000000000
.PHONY: all clean
all:
$(MAKE) -C '/lib/modules/$(shell uname -r)/build' M='$(PWD)' modules
clean:
$(MAKE) -C '$(LINUX_DIR)' M='$(PWD)' clean