Browse Source

selftests: Move networking/timestamping from Documentation

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>
Shuah Khan 9 years ago
parent
commit
3d2c86e305

+ 1 - 2
Documentation/Makefile

@@ -1,3 +1,2 @@
 subdir-y := accounting auxdisplay blackfin \
-	laptops mic misc-devices \
-	networking pcmcia timers watchdog
+	laptops mic misc-devices pcmcia timers watchdog

+ 0 - 1
Documentation/networking/Makefile

@@ -1 +0,0 @@
-subdir-y := timestamping

+ 0 - 14
Documentation/networking/timestamping/Makefile

@@ -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

+ 0 - 0
Documentation/networking/timestamping/.gitignore → tools/testing/selftests/networking/timestamping/.gitignore


+ 8 - 0
tools/testing/selftests/networking/timestamping/Makefile

@@ -0,0 +1,8 @@
+TEST_PROGS := hwtstamp_config timestamping txtimestamp
+
+all: $(TEST_PROGS)
+
+include ../../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/networking/timestamping/hwtstamp_config.c → tools/testing/selftests/networking/timestamping/hwtstamp_config.c


+ 0 - 0
Documentation/networking/timestamping/timestamping.c → tools/testing/selftests/networking/timestamping/timestamping.c


+ 0 - 0
Documentation/networking/timestamping/txtimestamp.c → tools/testing/selftests/networking/timestamping/txtimestamp.c