summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/hellodriver/patch-kernel-build.diff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-02-15 13:16:28 +0106
committerJohn Ogness <john.ogness@linutronix.de>2019-02-15 13:16:28 +0106
commitf19259fb36ffe74a11325c14ee2260a8e323b8ee (patch)
tree6cf02a4fcedfa1451c164f6c3a44a0781f41a571 /schulung_tools/drivers/hellodriver/patch-kernel-build.diff
parent9fffe2a41d0aa2b47c589db2523707a9e14ab5a1 (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/hellodriver/patch-kernel-build.diff')
-rw-r--r--schulung_tools/drivers/hellodriver/patch-kernel-build.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/schulung_tools/drivers/hellodriver/patch-kernel-build.diff b/schulung_tools/drivers/hellodriver/patch-kernel-build.diff
new file mode 100644
index 0000000..8d43ca7
--- /dev/null
+++ b/schulung_tools/drivers/hellodriver/patch-kernel-build.diff
@@ -0,0 +1,32 @@
+diff -urNp a/drivers/char/Kconfig b/drivers/char/Kconfig
+--- a/drivers/char/Kconfig 2016-05-16 00:43:13.000000000 +0200
++++ b/drivers/char/Kconfig 2016-06-08 20:41:14.047205734 +0200
+@@ -6,6 +6,16 @@ menu "Character devices"
+
+ source "drivers/tty/Kconfig"
+
++config HELLO
++ tristate "hello demo driver"
++ default n
++ help
++ This driver demonstrates how to create a platform device that is
++ specified in a device tree.
++
++ It also create a character device to demonstrate how a character
++ device interface can be provided to userspace.
++
+ config DEVMEM
+ bool "/dev/mem virtual device support"
+ default y
+diff -urNp a/drivers/char/Makefile b/drivers/char/Makefile
+--- a/drivers/char/Makefile 2016-05-16 00:43:13.000000000 +0200
++++ b/drivers/char/Makefile 2016-06-08 14:16:44.897437533 +0200
+@@ -16,6 +16,8 @@ obj-$(CONFIG_IBM_BSR) += bsr.o
+ obj-$(CONFIG_SGI_MBCS) += mbcs.o
+ obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
+
++obj-$(CONFIG_HELLO) += hello.o
++
+ obj-$(CONFIG_PRINTER) += lp.o
+
+ obj-$(CONFIG_APM_EMULATION) += apm-emulation.o