f63731e18e
When building selftests out of the kernel tree the gpio.h the include
path is incorrect and the build falls back to the system includes
which may be outdated.
Add the KHDR_INCLUDES to the CFLAGS to include the gpio.h from the
build tree.
Fixes: 4f4d0af7b2
("selftests: gpio: restore CFLAGS options")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
9 lines
272 B
Makefile
9 lines
272 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
TEST_PROGS := gpio-mockup.sh gpio-sim.sh
|
|
TEST_FILES := gpio-mockup-sysfs.sh
|
|
TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gpio-chip-info gpio-line-name
|
|
CFLAGS += -O2 -g -Wall -I../../../../usr/include/ $(KHDR_INCLUDES)
|
|
|
|
include ../lib.mk
|