diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-15 13:14:36 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-15 13:14:36 +0106 |
| commit | 9fffe2a41d0aa2b47c589db2523707a9e14ab5a1 (patch) | |
| tree | 8e35b6fbe30bb60395f760647e9709ab5db41024 /schulung_tools/drivers/modules/hellodriver | |
| parent | aed79d1121a9c65dead95fb6ea8c2d8541d01143 (diff) | |
schulung_tools: hellodriver: relocate and minimize kernel build patch
There is no reason the the kernel build patch needs to duplicate
the entire hello driver. Just show the parts relating to kbuild
integration.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/drivers/modules/hellodriver')
| -rw-r--r-- | schulung_tools/drivers/modules/hellodriver/patch-kernel-build.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/schulung_tools/drivers/modules/hellodriver/patch-kernel-build.diff b/schulung_tools/drivers/modules/hellodriver/patch-kernel-build.diff new file mode 100644 index 0000000..8d43ca7 --- /dev/null +++ b/schulung_tools/drivers/modules/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 |
