From 364160b45c3303efba4e225be6ebeec8f09095f9 Mon Sep 17 00:00:00 2001 From: Mateusz Krawczuk Date: Mon, 6 Jul 2015 16:36:14 +0200 Subject: Makefiles update v4l2-dmabuf-test v4l2-mfc-encoder v4l2-mfc-example Signed-off-by: Mateusz Krawczuk --- v4l2-dmabuf-test/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'v4l2-dmabuf-test/Makefile') diff --git a/v4l2-dmabuf-test/Makefile b/v4l2-dmabuf-test/Makefile index cfd7436..330ec1c 100644 --- a/v4l2-dmabuf-test/Makefile +++ b/v4l2-dmabuf-test/Makefile @@ -1,8 +1,11 @@ +ifeq ($(KERNELHEADERS_PREFIX),) +$(warning KERNELHEADERS_PREFIX is not set, the build may fail due to lack of kernel headers) +endif + CROSS_COMPILE ?= arm-linux-gnueabi- -KDIR ?= /usr/src/linux CC=$(CROSS_COMPILE)gcc OBJS = v4l2-dbuf -CFLAGS += -I$(KDIR)/usr/include -std=gnu99 -Wall -pedantic -O2 +CFLAGS += -I$(KERNELHEADERS_PREFIX)/include -std=gnu99 -Wall -O2 all: $(OBJS) -- cgit v1.2.3