staging: vc04_services: fix compiling in separate directory
authorMarek Behún <marek.behun@nic.cz>
Sat, 3 Aug 2019 12:34:59 +0000 (14:34 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:01 +0000 (16:33 +0100)
The vc04_services Makefiles do not respect the O=path argument
correctly: include paths in CFLAGS are given relatively to object path,
not source path. Compiling in a separate directory yields #include
errors.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
drivers/staging/vc04_services/bcm2835-codec/Makefile

index 5820ec1..7fb908d 100644 (file)
@@ -4,5 +4,5 @@ bcm2835-codec-objs := bcm2835-v4l2-codec.o
 obj-$(CONFIG_VIDEO_CODEC_BCM2835) += bcm2835-codec.o
 
 ccflags-y += \
-       -Idrivers/staging/vc04_services \
+       -I$(srctree)/drivers/staging/vc04_services \
        -D__VCCOREVER__=0x04000000