diff --git a/Documentation/Makefile b/Documentation/Makefile index 605f84f29bae2844e3728bc41568bfdf7329de9d..6883a1b9b351d9942112a7c450d53f3152453a4a 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -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 diff --git a/Documentation/arm/Makefile b/Documentation/arm/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..732c77050cff6737bfb7538dd832fa4957d257eb --- /dev/null +++ b/Documentation/arm/Makefile @@ -0,0 +1 @@ +subdir-y := SH-Mobile diff --git a/Documentation/arm/SH-Mobile/Makefile b/Documentation/arm/SH-Mobile/Makefile index 8771d832cf8ca1fb471864206bc85342b9e0374c..ac8075dcfddc6272fff0c6a23db6bc0badca5437 100644 --- a/Documentation/arm/SH-Mobile/Makefile +++ b/Documentation/arm/SH-Mobile/Makefile @@ -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 diff --git a/Documentation/blackfin/Makefile b/Documentation/blackfin/Makefile index 773dbb103f1c142e1a657d29195b1b26b0c6867d..c7e6c99bad8176a4295e398cce2d516d6fc63e2e 100644 --- a/Documentation/blackfin/Makefile +++ b/Documentation/blackfin/Makefile @@ -1,6 +1,3 @@ +ifneq ($(CONFIG_BLACKFIN),) obj-m := gptimers-example.o - -all: modules - -modules clean: - $(MAKE) -C ../.. SUBDIRS=$(PWD) $@ +endif diff --git a/Documentation/filesystems/Makefile b/Documentation/filesystems/Makefile index 883010ce5e35bcd88885b0a5eeff68e82676029f..13483d192ebb9f80bf541eead154f28c1eb44c0f 100644 --- a/Documentation/filesystems/Makefile +++ b/Documentation/filesystems/Makefile @@ -1,3 +1,5 @@ +subdir-y := configfs + # List of programs to build hostprogs-y := dnotify_test diff --git a/Documentation/laptops/Makefile b/Documentation/laptops/Makefile index 0abe44f68965eb4b7acd9f6380c8c04036b1e73b..2b0fa5edf1d37b57ba7579fd669a6363d716f95d 100644 --- a/Documentation/laptops/Makefile +++ b/Documentation/laptops/Makefile @@ -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) diff --git a/Documentation/mic/Makefile b/Documentation/mic/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..a191d453badf1349c77085dc41cf24c799826b4a --- /dev/null +++ b/Documentation/mic/Makefile @@ -0,0 +1 @@ +subdir-y := mpssd diff --git a/Documentation/mic/mpssd/Makefile b/Documentation/mic/mpssd/Makefile index eb860a7d152e39cd7e07232c27c66b3d1eaaba61..aaa89d137c1a57b446d5f024ac09c435f8a86c0a 100644 --- a/Documentation/mic/mpssd/Makefile +++ b/Documentation/mic/mpssd/Makefile @@ -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 diff --git a/Documentation/networking/timestamping/Makefile b/Documentation/networking/timestamping/Makefile index bbe6f810535d6635bb47aee45411b6e95996318a..52ac67da931516873f3039613ff139c1d7b5d6bd 100644 --- a/Documentation/networking/timestamping/Makefile +++ b/Documentation/networking/timestamping/Makefile @@ -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 diff --git a/Documentation/prctl/Makefile b/Documentation/prctl/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..3e3232dcb2b828eb4dd5e73a81daf898f7e82e5f --- /dev/null +++ b/Documentation/prctl/Makefile @@ -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 diff --git a/Documentation/ptp/Makefile b/Documentation/ptp/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..293d6c09a11ff0fa7bdbe5f00a5022f7c4521226 --- /dev/null +++ b/Documentation/ptp/Makefile @@ -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 diff --git a/Documentation/ptp/testptp.mk b/Documentation/ptp/testptp.mk deleted file mode 100644 index 4ef2d975542143bc53f014bab30e2074cc2b5c0e..0000000000000000000000000000000000000000 --- a/Documentation/ptp/testptp.mk +++ /dev/null @@ -1,33 +0,0 @@ -# PTP 1588 clock support - User space test program -# -# Copyright (C) 2010 OMICRON electronics GmbH -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -CC = $(CROSS_COMPILE)gcc -INC = -I$(KBUILD_OUTPUT)/usr/include -CFLAGS = -Wall $(INC) -LDLIBS = -lrt -PROGS = testptp - -all: $(PROGS) - -testptp: testptp.o - -clean: - rm -f testptp.o - -distclean: clean - rm -f $(PROGS) diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..6cbd61270de5d5e2c66f8ef0c27d414b308b9b5e --- /dev/null +++ b/Documentation/vDSO/Makefile @@ -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 diff --git a/Documentation/video4linux/Makefile b/Documentation/video4linux/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..d58101e788fc7a7c5b79e9fbebf56c853911b238 --- /dev/null +++ b/Documentation/video4linux/Makefile @@ -0,0 +1 @@ +obj-m := v4l2-pci-skeleton.o