summaryrefslogtreecommitdiff
path: root/kernel-devel/char-device
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-devel/char-device')
-rw-r--r--kernel-devel/char-device/Kconfig5
-rw-r--r--kernel-devel/char-device/Makefile10
-rw-r--r--kernel-devel/char-device/example/kernel/Makefile13
-rw-r--r--kernel-devel/char-device/example/user/Makefile6
4 files changed, 6 insertions, 28 deletions
diff --git a/kernel-devel/char-device/Kconfig b/kernel-devel/char-device/Kconfig
new file mode 100644
index 0000000..82ea89b
--- /dev/null
+++ b/kernel-devel/char-device/Kconfig
@@ -0,0 +1,5 @@
+config KERNEL_CHAR_DEV
+ bool "Kernel char device papers"
+ default y
+ help
+ Papers about kernel char devices
diff --git a/kernel-devel/char-device/Makefile b/kernel-devel/char-device/Makefile
index d641258..88cdbc6 100644
--- a/kernel-devel/char-device/Makefile
+++ b/kernel-devel/char-device/Makefile
@@ -1,9 +1 @@
-all:
- for pdf in `ls -1 *.tex` ; do \
- TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \
- TEXINPUTS=`pwd`/../..:.:..:$(TEXINPUTS) pdflatex $$pdf; \
- done
-
-clean:
- rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out
-
+obj-$(CONFIG_KERNEL_CHAR_DEV) += hints_char-device_de.pdf pres_char-device_de.pdf
diff --git a/kernel-devel/char-device/example/kernel/Makefile b/kernel-devel/char-device/example/kernel/Makefile
deleted file mode 100644
index 822c7d7..0000000
--- a/kernel-devel/char-device/example/kernel/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-# If KERNELRELEASE is defined, we've been invoked from the
-# kernel build system and can use its language.
-ifneq ($(KERNELRELEASE),)
- obj-m := huhu.o
-
-# Otherwise we were called directly from the command
-# line; invoke the kernel build system.
-else
- KERNELDIR ?= /lib/modules/$(shell uname -r)/build
- PWD := $(shell pwd)
-default:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
-endif
diff --git a/kernel-devel/char-device/example/user/Makefile b/kernel-devel/char-device/example/user/Makefile
deleted file mode 100644
index 66a330c..0000000
--- a/kernel-devel/char-device/example/user/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-OBJECTS=huhu.o
-
-all: $(OBJECTS)
- gcc -o huhu $(OBJECTS)
-clean:
- rm -f $(OBJECTS) huhu