From f19259fb36ffe74a11325c14ee2260a8e323b8ee Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 15 Feb 2019 13:16:28 +0106 Subject: schulung_tools: drivers: remove modules subdir There is no need for the extra directory level. Move all the example modules to the parent "drivers" directory and delete the modules directory. Signed-off-by: John Ogness --- schulung_tools/drivers/simplemodule/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 schulung_tools/drivers/simplemodule/Makefile (limited to 'schulung_tools/drivers/simplemodule/Makefile') diff --git a/schulung_tools/drivers/simplemodule/Makefile b/schulung_tools/drivers/simplemodule/Makefile new file mode 100644 index 0000000..9413c4d --- /dev/null +++ b/schulung_tools/drivers/simplemodule/Makefile @@ -0,0 +1,19 @@ +MNAME=simple +BDIR=/home/devel/work/build-linux + +ifeq ($(KERNELRELEASE),) +# called from shell + +.PHONY: default clean + +default: + make -C $(BDIR) M=$(shell pwd) modules + +clean: + rm -rf $(MNAME).mod.* $(MNAME).*o .$(MNAME)* .tmp* Module.symvers modules.order + +else +# called from kernel Makefile + + obj-m := $(MNAME).o +endif -- cgit v1.2.3