summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-12-21 12:47:38 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-12-21 12:47:38 +0100
commit44c981d39215a5b78f077ab758b41c6e0e8a73ef (patch)
tree1fc8b361bd6cfb74aefbd1cca7a0f0eec3acb790
parent06013a66758e7c8e83dba4f81a92682c53a93d41 (diff)
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 <laurent.pinchart@ideasonboard.com>
-rw-r--r--Makefile7
1 files 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)