Skip to content

Commit 4a006a5

Browse files
committed
iio: adc: adrv9025: add full path for include directories
Some build systems like yocto might not build the kernel on the kernel top directory. In that case the include paths won't be found and the build fails (petalinux is an example of this). So, we now add the full path making sure things are reachable. Similar with what was done for example for adrv9002. Signed-off-by: Nuno Sa <[email protected]>
1 parent 7df1529 commit 4a006a5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/iio/adc/madura/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ SRCS = devices/adrv9025/private/src/adrv9025_bf_analog_orx_mem_map.c \
4545
# Avoid FP operations and data sytpes - Remove DPD *_dfe.c files
4646
#SRCS := $(filter-out /devices/adrv9025/private/src/adrv9025_dfe.c /devices/adrv9025/public/src/adi_adrv9025_dfe.c, $(SRCS))
4747

48-
ccflags-y += -I$(src)/devices/adrv9025/private/include/ \
49-
-I$(src)/devices/adrv9025/public/include/ \
50-
-I$(src)/common/ \
51-
-I$(src)/common/adi_hal/ \
52-
-I$(src)/common/adi_error/ \
53-
-I$(src)/common/adi_libc/ \
54-
-I$(src)/common/adi_logging/ \
55-
-I$(src)/platforms/ \
48+
ccflags-y += -I$(srctree)/$(src)/devices/adrv9025/private/include/ \
49+
-I$(srctree)/$(src)/devices/adrv9025/public/include/ \
50+
-I$(srctree)/$(src)/common/ \
51+
-I$(srctree)/$(src)/common/adi_hal/ \
52+
-I$(srctree)/$(src)/common/adi_error/ \
53+
-I$(srctree)/$(src)/common/adi_libc/ \
54+
-I$(srctree)/$(src)/common/adi_logging/ \
55+
-I$(srctree)/$(src)/platforms/ \
5656
-DADRV9025_CHANNELID_CHECK=0 \
5757
-DADI_COMMON_VERBOSE=1 \
5858
-DADI_ADRV9025_RADIOCTRL_RANGE_CHECK=1 \

0 commit comments

Comments
 (0)