forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docsrc: build Documentation/ sources
Currently source files in the Documentation/ sub-dir can easily bit-rot since they are not generally buildable, either because they are hidden in text files or because there are no Makefile rules for them. This needs to be fixed so that the source files remain usable and good examples of code instead of bad examples. Add the ability to build source files that are in the Documentation/ dir. Add to Kconfig as "BUILD_DOCSRC" config symbol. Use "CONFIG_BUILD_DOCSRC=1 make ..." to build objects from the Documentation/ sources. Or enable BUILD_DOCSRC in the *config system. However, this symbol depends on HEADERS_CHECK since the header files need to be installed (for userspace builds). Built (using cross-tools) for x86-64, i386, alpha, ia64, sparc32, sparc64, powerpc, sh, m68k, & mips. Signed-off-by: Randy Dunlap <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
15 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ | ||
filesystems/configfs/ ia64/ networking/ \ | ||
pcmcia/ spi/ video4linux/ vm/ watchdog/src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_getdelays.o += -I$(objtree)/usr/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_cfag12864b-example.o += -I$(objtree)/usr/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ifneq ($(CONFIG_CONNECTOR),) | ||
obj-m += cn_test.o | ||
endif | ||
|
||
# List of programs to build | ||
hostprogs-y := ucon | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ifneq ($(CONFIG_CONFIGFS_FS),) | ||
obj-m += configfs_example_explicit.o configfs_example_macros.o | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
obj- := dummy.o | ||
|
||
# List of programs to build | ||
hostprogs-y := ifenslave | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_crc32hash.o += -I$(objtree)/usr/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) | ||
|
||
HOSTCFLAGS_spidev_test.o += -I$(objtree)/usr/include | ||
HOSTCFLAGS_spidev_fdx.o += -I$(objtree)/usr/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
obj- := dummy.o | ||
|
||
# List of programs to build | ||
hostprogs-y := v4lgrab | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# kbuild trick to avoid linker error. Can be omitted if a module is built. | ||
obj- := dummy.o | ||
|
||
# List of programs to build | ||
hostprogs-y := slabinfo | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 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 | ||
|
||
# Tell kbuild to always build the programs | ||
always := $(hostprogs-y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters