b2d35fa5fc
If the kernel headers aren't installed we can't build all the tests. Add a new make target rule 'khdr' in the file lib.mk to generate the kernel headers and that gets include for every test-dir Makefile that includes lib.mk If the testdir in turn have its own sub-dirs the top_srcdir needs to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
13 lines
242 B
Makefile
13 lines
242 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS += -I../../../../../usr/include
|
|
|
|
TEST_PROGS := hwtstamp_config rxtimestamp timestamping txtimestamp
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
top_srcdir = ../../../../..
|
|
include ../../lib.mk
|
|
|
|
clean:
|
|
rm -fr $(TEST_PROGS)
|