From 9fffe2a41d0aa2b47c589db2523707a9e14ab5a1 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 15 Feb 2019 13:14:36 +0106 Subject: 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 --- .../modules/hellodriver/patch-kernel-build.diff | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 schulung_tools/drivers/modules/hellodriver/patch-kernel-build.diff (limited to 'schulung_tools/drivers/modules') 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 -- cgit v1.2.3