OSDN Git Service

Documentation: use subdir-y to avoid unnecessary built-in.o files
authorPeter Foley <pefoley2@pefoley.com>
Thu, 25 Sep 2014 18:23:02 +0000 (11:23 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Sep 2014 09:02:55 +0000 (11:02 +0200)
Change the Documentation makefiles from obj-m to subdir-y
to avoid generating unnecessary built-in.o files since nothing
in Documentation/ is ever linked in to vmlinux.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
15 files changed:
Documentation/Makefile
Documentation/accounting/Makefile
Documentation/auxdisplay/Makefile
Documentation/filesystems/Makefile
Documentation/ia64/Makefile
Documentation/laptops/Makefile
Documentation/misc-devices/Makefile [new file with mode: 0644]
Documentation/misc-devices/mei/Makefile
Documentation/networking/Makefile
Documentation/networking/timestamping/Makefile
Documentation/pcmcia/Makefile
Documentation/spi/Makefile
Documentation/timers/Makefile
Documentation/watchdog/Makefile [new file with mode: 0644]
Documentation/watchdog/src/Makefile

index 31d302b..605f84f 100644 (file)
@@ -1,3 +1,3 @@
-obj-m := DocBook/ accounting/ auxdisplay/ connector/ \
-       filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \
-       pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/
+subdir-y := DocBook accounting auxdisplay connector \
+       filesystems filesystems ia64 laptops networking \
+       pcmcia spi timers watchdog misc-devices
index 31929eb..7e232cb 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := getdelays
 
index 51fe233..ada4dac 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := cfag12864b-example
 
index a5dd114..883010c 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := dnotify_test
 
index b75db69..d493163 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := aliasing-test
 
index 5cb144a..0abe44f 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := dslm
 
diff --git a/Documentation/misc-devices/Makefile b/Documentation/misc-devices/Makefile
new file mode 100644 (file)
index 0000000..e2b7aa4
--- /dev/null
@@ -0,0 +1 @@
+subdir-y := mei
index 00e8c3e..d758047 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := mei-amt-version
 HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
index 0aa1ac9..4c5d7c4 100644 (file)
@@ -1,7 +1 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-obj-m := timestamping/
+subdir-y := timestamping
index d934afc..bbe6f81 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := timestamping hwtstamp_config
 
index accde87..47a8fa1 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := crc32hash
 
index a5b03c8..efa2558 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := spidev_test spidev_fdx
 
index 73f75f8..6c09ee6 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-$(CONFIG_X86) := hpet_example
 
diff --git a/Documentation/watchdog/Makefile b/Documentation/watchdog/Makefile
new file mode 100644 (file)
index 0000000..6018f45
--- /dev/null
@@ -0,0 +1 @@
+subdir-y := src
index 40e5f46..4a892c3 100644 (file)
@@ -1,6 +1,3 @@
-# kbuild trick to avoid linker error. Can be omitted if a module is built.
-obj- := dummy.o
-
 # List of programs to build
 hostprogs-y := watchdog-simple watchdog-test