From 44c981d39215a5b78f077ab758b41c6e0e8a73ef Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 21 Dec 2010 12:47:38 +0100 Subject: Use installed kernel headers instead of in-tree headers To install kernel headers to usr/include inside a kernel tree, just run make headers_install. media-ctl can then be compiled by setting KDIR to the patch to the kernel tree. Signed-off-by: Laurent Pinchart --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b1e6bfc..a89b79c 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ -SRCARCH ?= arm -CROSS_COMPILE ?= arm-none-linux-gnueabi- -KDIR ?= /usr/src/linux +CROSS_COMPILE ?= +KDIR ?= -KINC := -I$(KDIR)/include -I$(KDIR)/arch/$(SRCARCH)/include +KINC := -I$(KDIR)/usr/include CC := $(CROSS_COMPILE)gcc CFLAGS += -O2 -Wall -fpic -I. $(KINC) -- cgit v1.2.3