Skip to content

Commit df68a01

Browse files
pefoley2Jiri Kosina
authored andcommitted
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>
1 parent f4cb707 commit df68a01

15 files changed

Lines changed: 6 additions & 43 deletions

File tree

‎Documentation/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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

‎Documentation/accounting/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := getdelays
63

‎Documentation/auxdisplay/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := cfag12864b-example
63

‎Documentation/filesystems/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := dnotify_test
63

‎Documentation/ia64/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := aliasing-test
63

‎Documentation/laptops/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := dslm
63

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
subdir-y := mei

‎Documentation/misc-devices/mei/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := mei-amt-version
63
HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include

‎Documentation/networking/Makefile‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
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

‎Documentation/networking/timestamping/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# kbuild trick to avoid linker error. Can be omitted if a module is built.
2-
obj- := dummy.o
3-
41
# List of programs to build
52
hostprogs-y := timestamping hwtstamp_config
63

0 commit comments

Comments
 (0)