mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 11:00:49 +01:00
Out of tree build using
make M=tools/test/nvdimm O=/tmp/build -C /tmp/build
fails with the following error
make: Entering directory '/tmp/build'
CC [M] tools/testing/nvdimm/test/nfit.o
linux/tools/testing/nvdimm/test/nfit.c:19:10: fatal error: nd-core.h: No such file or directory
19 | #include <nd-core.h>
| ^~~~~~~~~~~
compilation terminated.
That is because the kbuild file uses $(src) which points to
tools/testing/nvdimm, $(srctree) correctly points to root of the linux
source tree.
Reported-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Santosh Sivaraj <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
10 lines
223 B
Makefile
10 lines
223 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
ccflags-y := -I$(srctree)/drivers/nvdimm/
|
|
ccflags-y += -I$(srctree)/drivers/acpi/nfit/
|
|
|
|
obj-m += nfit_test.o
|
|
obj-m += nfit_test_iomap.o
|
|
|
|
nfit_test-y := nfit.o
|
|
nfit_test_iomap-y := iomap.o
|