Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: use subdir-y to avoid unnecessary built-in.o files

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>

authored by

Peter Foley and committed by
Jiri Kosina
df68a010 f4cb707e

+6 -43
+3 -3
Documentation/Makefile
··· 1 - obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ 2 - filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \ 3 - pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/ 1 + subdir-y := DocBook accounting auxdisplay connector \ 2 + filesystems filesystems ia64 laptops networking \ 3 + pcmcia spi timers watchdog misc-devices
-3
Documentation/accounting/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := getdelays 6 3
-3
Documentation/auxdisplay/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := cfag12864b-example 6 3
-3
Documentation/filesystems/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := dnotify_test 6 3
-3
Documentation/ia64/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := aliasing-test 6 3
-3
Documentation/laptops/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := dslm 6 3
+1
Documentation/misc-devices/Makefile
··· 1 + subdir-y := mei
-3
Documentation/misc-devices/mei/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := mei-amt-version 6 3 HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
+1 -7
Documentation/networking/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 - # Tell kbuild to always build the programs 5 - always := $(hostprogs-y) 6 - 7 - obj-m := timestamping/ 1 + subdir-y := timestamping
-3
Documentation/networking/timestamping/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := timestamping hwtstamp_config 6 3
-3
Documentation/pcmcia/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := crc32hash 6 3
-3
Documentation/spi/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := spidev_test spidev_fdx 6 3
-3
Documentation/timers/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-$(CONFIG_X86) := hpet_example 6 3
+1
Documentation/watchdog/Makefile
··· 1 + subdir-y := src
-3
Documentation/watchdog/src/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := watchdog-simple watchdog-test 6 3