Skip to contentSkip to conversation

selftests: ptp: include default header install path

PATCH In review Grygorii Strashko 2 participants 2 messages Jul 28, 2017 – Aug 2, 2017 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: ptp: include default header install path

Add the usr/include subdirectory of the top-level tree to the include
path to fix build when cross compiling for ARM.
testptp.c: In function 'main':
testptp.c:289:15: error: 'struct ptp_clock_caps' has no member named 'cross_timestamping'

           caps.cross_timestamping);
---
 tools/testing/selftests/ptp/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/ptp/Makefile +1 -0
index 83dd42b..d4064c7 100644
@@ -1,3 +1,4 @@
+CFLAGS += -I../../../../usr/include/
 TEST_PROGS := testptp
 LDLIBS += -lrt
 all: $(TEST_PROGS)
Signature · 1 line
2.10.1
maintainer
#1 lore raw
Quoted 17 lines · Grygorii Strashko

Add the usr/include subdirectory of the top-level tree to the include
path to fix build when cross compiling for ARM.
testptp.c: In function 'main':
testptp.c:289:15: error: 'struct ptp_clock_caps' has no member named 'cross_timestamping'

           caps.cross_timestamping);
---
 tools/testing/selftests/ptp/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/ptp/Makefile +0 -0
index 83dd42b..d4064c7 100644

tools/testing/selftests/ptp/Makefile line 4

Quoted 4 lines
tools/testing/selftests/ptp/Makefile +1 -0
@@ -1,3 +1,4 @@
+CFLAGS += -I../../../../usr/include/
 TEST_PROGS := testptp
 LDLIBS += -lrt
 all: $(TEST_PROGS)

Thanks for the patch. Applied to linux-kselftest next for 4.14-rc1

thanks,
-- Shuah