Hi Sergio,

On Wednesday 14 July 2010 18:17:25 Sergio Aguirre wrote:
> We shouldn't require full kernel source for this.

That's right in theory, but I then get

$ make KDIR=/home/laurent/src/arm/kernel/
arm-none-linux-gnueabi-gcc -O2 -Wall -fpic -I. 
-I/home/laurent/src/arm/kernel//include    -c -o media.o media.c
In file included from 
/opt/cs/arm-2009q1/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/types.h:4,
                 from /home/laurent/src/arm/kernel//include/linux/types.h:4,
                 from 
/home/laurent/src/arm/kernel//include/linux/videodev2.h:66,
                 from media.c:31:
/home/laurent/src/arm/kernel//include/asm-generic/int-ll64.h:11:29: error: 
asm/bitsperlong.h: No such file or directory
make: *** [media.o] Error 1

when building against a kernel tree.

> Signed-off-by: Sergio Aguirre <saagui...@ti.com>
> ---
>  Makefile |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index bf4cf55..300ed7e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,11 +1,9 @@
> -SRCARCH ?= arm
>  CROSS_COMPILE ?= arm-none-linux-gnueabi-
> -KDIR ?= /usr/src/linux
> +HDIR ?= /usr/include
> 
> -KINC := -I$(KDIR)/include -I$(KDIR)/arch/$(SRCARCH)/include
>  CC   := $(CROSS_COMPILE)gcc
> 
> -CFLAGS = -O2 -Wall -fpic -I. $(KINC)
> +CFLAGS = -O2 -Wall -fpic -I$(HDIR)
>  OBJS = media.o main.o options.o subdev.o
> 
>  all: media-ctl

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to