diff options
author | Peter Foley <pefoley2@pefoley.com> | 2014-09-25 14:23:02 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-09-26 05:02:55 -0400 |
commit | df68a01014fd5dea890349321787ca08a5377f0b (patch) | |
tree | 1e49292b3dfef57e91ca5bfcb031d4bff08e1dd1 /Documentation | |
parent | f4cb707e7ad9727a046b463232f2de166e327d3e (diff) |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/Makefile | 6 | ||||
-rw-r--r-- | Documentation/accounting/Makefile | 3 | ||||
-rw-r--r-- | Documentation/auxdisplay/Makefile | 3 | ||||
-rw-r--r-- | Documentation/filesystems/Makefile | 3 | ||||
-rw-r--r-- | Documentation/ia64/Makefile | 3 | ||||
-rw-r--r-- | Documentation/laptops/Makefile | 3 | ||||
-rw-r--r-- | Documentation/misc-devices/Makefile | 1 | ||||
-rw-r--r-- | Documentation/misc-devices/mei/Makefile | 3 | ||||
-rw-r--r-- | Documentation/networking/Makefile | 8 | ||||
-rw-r--r-- | Documentation/networking/timestamping/Makefile | 3 | ||||
-rw-r--r-- | Documentation/pcmcia/Makefile | 3 | ||||
-rw-r--r-- | Documentation/spi/Makefile | 3 | ||||
-rw-r--r-- | Documentation/timers/Makefile | 3 | ||||
-rw-r--r-- | Documentation/watchdog/Makefile | 1 | ||||
-rw-r--r-- | Documentation/watchdog/src/Makefile | 3 |
15 files changed, 6 insertions, 43 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 31d302bc5863..605f84f29bae 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile | |||
@@ -1,3 +1,3 @@ | |||
1 | obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ | 1 | subdir-y := DocBook accounting auxdisplay connector \ |
2 | filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \ | 2 | filesystems filesystems ia64 laptops networking \ |
3 | pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/ | 3 | pcmcia spi timers watchdog misc-devices |
diff --git a/Documentation/accounting/Makefile b/Documentation/accounting/Makefile index 31929eb875b1..7e232cb6fd7d 100644 --- a/Documentation/accounting/Makefile +++ b/Documentation/accounting/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := getdelays | 2 | hostprogs-y := getdelays |
6 | 3 | ||
diff --git a/Documentation/auxdisplay/Makefile b/Documentation/auxdisplay/Makefile index 51fe23332c81..ada4dac99ef4 100644 --- a/Documentation/auxdisplay/Makefile +++ b/Documentation/auxdisplay/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := cfag12864b-example | 2 | hostprogs-y := cfag12864b-example |
6 | 3 | ||
diff --git a/Documentation/filesystems/Makefile b/Documentation/filesystems/Makefile index a5dd114da14f..883010ce5e35 100644 --- a/Documentation/filesystems/Makefile +++ b/Documentation/filesystems/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := dnotify_test | 2 | hostprogs-y := dnotify_test |
6 | 3 | ||
diff --git a/Documentation/ia64/Makefile b/Documentation/ia64/Makefile index b75db69ec483..d493163affe7 100644 --- a/Documentation/ia64/Makefile +++ b/Documentation/ia64/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := aliasing-test | 2 | hostprogs-y := aliasing-test |
6 | 3 | ||
diff --git a/Documentation/laptops/Makefile b/Documentation/laptops/Makefile index 5cb144af3c09..0abe44f68965 100644 --- a/Documentation/laptops/Makefile +++ b/Documentation/laptops/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := dslm | 2 | hostprogs-y := dslm |
6 | 3 | ||
diff --git a/Documentation/misc-devices/Makefile b/Documentation/misc-devices/Makefile new file mode 100644 index 000000000000..e2b7aa4c9e21 --- /dev/null +++ b/Documentation/misc-devices/Makefile | |||
@@ -0,0 +1 @@ | |||
subdir-y := mei | |||
diff --git a/Documentation/misc-devices/mei/Makefile b/Documentation/misc-devices/mei/Makefile index 00e8c3e836ff..d758047d1b6d 100644 --- a/Documentation/misc-devices/mei/Makefile +++ b/Documentation/misc-devices/mei/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := mei-amt-version | 2 | hostprogs-y := mei-amt-version |
6 | HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include | 3 | HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include |
diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile index 0aa1ac98fc2b..4c5d7c485439 100644 --- a/Documentation/networking/Makefile +++ b/Documentation/networking/Makefile | |||
@@ -1,7 +1 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | subdir-y := timestamping | |
2 | obj- := dummy.o | ||
3 | |||
4 | # Tell kbuild to always build the programs | ||
5 | always := $(hostprogs-y) | ||
6 | |||
7 | obj-m := timestamping/ | ||
diff --git a/Documentation/networking/timestamping/Makefile b/Documentation/networking/timestamping/Makefile index d934afc8306a..bbe6f810535d 100644 --- a/Documentation/networking/timestamping/Makefile +++ b/Documentation/networking/timestamping/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := timestamping hwtstamp_config | 2 | hostprogs-y := timestamping hwtstamp_config |
6 | 3 | ||
diff --git a/Documentation/pcmcia/Makefile b/Documentation/pcmcia/Makefile index accde871ae77..47a8fa162683 100644 --- a/Documentation/pcmcia/Makefile +++ b/Documentation/pcmcia/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := crc32hash | 2 | hostprogs-y := crc32hash |
6 | 3 | ||
diff --git a/Documentation/spi/Makefile b/Documentation/spi/Makefile index a5b03c88beae..efa255813e9d 100644 --- a/Documentation/spi/Makefile +++ b/Documentation/spi/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := spidev_test spidev_fdx | 2 | hostprogs-y := spidev_test spidev_fdx |
6 | 3 | ||
diff --git a/Documentation/timers/Makefile b/Documentation/timers/Makefile index 73f75f8a87dc..6c09ee6ca721 100644 --- a/Documentation/timers/Makefile +++ b/Documentation/timers/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-$(CONFIG_X86) := hpet_example | 2 | hostprogs-$(CONFIG_X86) := hpet_example |
6 | 3 | ||
diff --git a/Documentation/watchdog/Makefile b/Documentation/watchdog/Makefile new file mode 100644 index 000000000000..6018f45f2471 --- /dev/null +++ b/Documentation/watchdog/Makefile | |||
@@ -0,0 +1 @@ | |||
subdir-y := src | |||
diff --git a/Documentation/watchdog/src/Makefile b/Documentation/watchdog/src/Makefile index 40e5f46e4740..4a892c304983 100644 --- a/Documentation/watchdog/src/Makefile +++ b/Documentation/watchdog/src/Makefile | |||
@@ -1,6 +1,3 @@ | |||
1 | # kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := watchdog-simple watchdog-test | 2 | hostprogs-y := watchdog-simple watchdog-test |
6 | 3 | ||