diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-12-21 12:47:38 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-12-21 12:47:38 +0100 |
commit | 44c981d39215a5b78f077ab758b41c6e0e8a73ef (patch) | |
tree | 1fc8b361bd6cfb74aefbd1cca7a0f0eec3acb790 /Makefile | |
parent | 06013a66758e7c8e83dba4f81a92682c53a93d41 (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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) |