From 27209bb802048f4803d9cd9a5c2f99d613986446 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 19 Dec 2017 10:53:07 +0100 Subject: import drivers from devel/jogness Simple drivers for use in the Linux Advanced schulung were only available in the devel/jogness branch. Push them to master so they are easily accessible to any trainer. Signed-off-by: John Ogness --- schulung_tools/drivers/modules/simplemodule/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 schulung_tools/drivers/modules/simplemodule/Makefile (limited to 'schulung_tools/drivers/modules/simplemodule/Makefile') diff --git a/schulung_tools/drivers/modules/simplemodule/Makefile b/schulung_tools/drivers/modules/simplemodule/Makefile new file mode 100644 index 0000000..9413c4d --- /dev/null +++ b/schulung_tools/drivers/modules/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