diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-15 13:16:28 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-15 13:16:28 +0106 |
| commit | f19259fb36ffe74a11325c14ee2260a8e323b8ee (patch) | |
| tree | 6cf02a4fcedfa1451c164f6c3a44a0781f41a571 /schulung_tools/drivers/modules/simplemodule | |
| parent | 9fffe2a41d0aa2b47c589db2523707a9e14ab5a1 (diff) | |
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 <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/drivers/modules/simplemodule')
| -rw-r--r-- | schulung_tools/drivers/modules/simplemodule/Makefile | 19 | ||||
| -rw-r--r-- | schulung_tools/drivers/modules/simplemodule/simple.c | 21 |
2 files changed, 0 insertions, 40 deletions
diff --git a/schulung_tools/drivers/modules/simplemodule/Makefile b/schulung_tools/drivers/modules/simplemodule/Makefile deleted file mode 100644 index 9413c4d..0000000 --- a/schulung_tools/drivers/modules/simplemodule/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/schulung_tools/drivers/modules/simplemodule/simple.c b/schulung_tools/drivers/modules/simplemodule/simple.c deleted file mode 100644 index e091f68..0000000 --- a/schulung_tools/drivers/modules/simplemodule/simple.c +++ /dev/null @@ -1,21 +0,0 @@ -#include <linux/init.h> -#include <linux/module.h> - -static int simple_hello(void) -{ - printk(KERN_ERR "called %s\n", __func__); - return 0; -} - -static void simple_goodbye(void) -{ - printk(KERN_ERR "called %s\n", __func__); -} - -module_init(simple_hello); -module_exit(simple_goodbye); - -MODULE_AUTHOR("John Ogness <john.ogness@linutronix.de>"); -MODULE_DESCRIPTION("simple"); -MODULE_LICENSE("GPL v2"); -MODULE_VERSION("12345.54321"); |
