Skip to content

Commit

Permalink
Documentation: add makefiles for more targets
Browse files Browse the repository at this point in the history
Add a bunch of previously unbuilt source files to the Documentation build
machinery.

Signed-off-by: Peter Foley <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
pefoley2 authored and Jiri Kosina committed Sep 26, 2014
1 parent df68a01 commit adb19fb
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 64 deletions.
7 changes: 4 additions & 3 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
subdir-y := DocBook accounting auxdisplay connector \
filesystems filesystems ia64 laptops networking \
pcmcia spi timers watchdog misc-devices
subdir-y := accounting arm auxdisplay blackfin connector \
filesystems filesystems ia64 laptops mic misc-devices \
networking pcmcia prctl ptp spi timers vDSO video4linux \
watchdog
1 change: 1 addition & 0 deletions Documentation/arm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subdir-y := SH-Mobile
11 changes: 5 additions & 6 deletions Documentation/arm/SH-Mobile/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
BIN := vrl4
# List of programs to build
hostprogs-y := vrl4

.PHONY: all
all: $(BIN)
# Tell kbuild to always build the programs
always := $(hostprogs-y)

.PHONY: clean
clean:
rm -f *.o $(BIN)
HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include
7 changes: 2 additions & 5 deletions Documentation/blackfin/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
ifneq ($(CONFIG_BLACKFIN),)
obj-m := gptimers-example.o

all: modules

modules clean:
$(MAKE) -C ../.. SUBDIRS=$(PWD) $@
endif
2 changes: 2 additions & 0 deletions Documentation/filesystems/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
subdir-y := configfs

# List of programs to build
hostprogs-y := dnotify_test

Expand Down
2 changes: 1 addition & 1 deletion Documentation/laptops/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# List of programs to build
hostprogs-y := dslm
hostprogs-y := dslm freefall

# Tell kbuild to always build the programs
always := $(hostprogs-y)
1 change: 1 addition & 0 deletions Documentation/mic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subdir-y := mpssd
24 changes: 12 additions & 12 deletions Documentation/mic/mpssd/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#
# Makefile - Intel MIC User Space Tools.
# Copyright(c) 2013, Intel Corporation.
#
# List of programs to build
hostprogs-y := mpssd

mpssd-objs := mpssd.o sysfs.o

# Tell kbuild to always build the programs
always := $(hostprogs-y)

HOSTCFLAGS_mpssd.o += -I$(objtree)/usr/include

ifdef DEBUG
CFLAGS += $(USERWARNFLAGS) -I. -g -Wall -DDEBUG=$(DEBUG)
else
CFLAGS += $(USERWARNFLAGS) -I. -g -Wall
HOSTCFLAGS += -DDEBUG=$(DEBUG)
endif

mpssd: mpssd.o sysfs.o
$(CC) $(CFLAGS) -o $@ $^ -lpthread
HOSTLOADLIBES_mpssd := -lpthread

install:
install mpssd /usr/sbin/mpssd
install micctrl /usr/sbin/micctrl

clean:
rm -f mpssd *.o
5 changes: 1 addition & 4 deletions Documentation/networking/timestamping/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# List of programs to build
hostprogs-y := timestamping hwtstamp_config
hostprogs-y := hwtstamp_config timestamping

# Tell kbuild to always build the programs
always := $(hostprogs-y)

HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include
HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include

clean:
rm -f timestamping hwtstamp_config
8 changes: 8 additions & 0 deletions Documentation/prctl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List of programs to build
hostprogs-y := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test
# Tell kbuild to always build the programs
always := $(hostprogs-y)

HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include
HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include
HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include
8 changes: 8 additions & 0 deletions Documentation/ptp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List of programs to build
hostprogs-y := testptp

# Tell kbuild to always build the programs
always := $(hostprogs-y)

HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include
HOSTLOADLIBES_testptp := -lrt
33 changes: 0 additions & 33 deletions Documentation/ptp/testptp.mk

This file was deleted.

9 changes: 9 additions & 0 deletions Documentation/vDSO/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# List of programs to build
hostprogs-$(CONFIG_X86) := vdso_test
vdso_test-objs := parse_vdso.o vdso_test.o

# Tell kbuild to always build the programs
##always := $(hostprogs-y)

HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
HOSTLDFLAGS = -nostdlib -fno-asynchronous-unwind-tables
1 change: 1 addition & 0 deletions Documentation/video4linux/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-m := v4l2-pci-skeleton.o

0 comments on commit adb19fb

Please sign in to comment.