]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
selftests: Move networking/timestamping from Documentation
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 15 Sep 2016 14:36:07 +0000 (08:36 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 20 Sep 2016 15:59:50 +0000 (09:59 -0600)
Remove networking from Documentation Makefile to move the test to
selftests. Update networking/timestamping Makefile to work under
selftests. These tests will not be run as part of selftests suite
and will not be included in install targets. They can be built and
run separately for now.

This is part of the effort to move runnable code from Documentation.

Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Documentation/Makefile
Documentation/networking/Makefile [deleted file]
Documentation/networking/timestamping/Makefile [deleted file]
tools/testing/selftests/networking/timestamping/.gitignore [moved from Documentation/networking/timestamping/.gitignore with 100% similarity]
tools/testing/selftests/networking/timestamping/Makefile [new file with mode: 0644]
tools/testing/selftests/networking/timestamping/hwtstamp_config.c [moved from Documentation/networking/timestamping/hwtstamp_config.c with 100% similarity]
tools/testing/selftests/networking/timestamping/timestamping.c [moved from Documentation/networking/timestamping/timestamping.c with 100% similarity]
tools/testing/selftests/networking/timestamping/txtimestamp.c [moved from Documentation/networking/timestamping/txtimestamp.c with 100% similarity]

index 572e9b7f375849ad085a7a2b38776835be7ada8b..f530c298061893789d992c24d4a533cb44ce0fc4 100644 (file)
@@ -1,3 +1,2 @@
 subdir-y := accounting auxdisplay blackfin \
-       laptops mic misc-devices \
-       networking pcmcia timers watchdog
+       laptops mic misc-devices pcmcia timers watchdog
diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile
deleted file mode 100644 (file)
index 4c5d7c4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-subdir-y := timestamping
diff --git a/Documentation/networking/timestamping/Makefile b/Documentation/networking/timestamping/Makefile
deleted file mode 100644 (file)
index 8c20dfa..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# To compile, from the source root
-#
-#    make headers_install
-#    make M=documentation
-
-# List of programs to build
-hostprogs-y := hwtstamp_config timestamping txtimestamp
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include
-HOSTCFLAGS_txtimestamp.o += -I$(objtree)/usr/include
-HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include
diff --git a/tools/testing/selftests/networking/timestamping/Makefile b/tools/testing/selftests/networking/timestamping/Makefile
new file mode 100644 (file)
index 0000000..ccbb9ed
--- /dev/null
@@ -0,0 +1,8 @@
+TEST_PROGS := hwtstamp_config timestamping txtimestamp
+
+all: $(TEST_PROGS)
+
+include ../../lib.mk
+
+clean:
+       rm -fr $(TEST_PROGS)