I'm using Buildroot for compiling embedded linux. It works well because I have target Makefile configurations, but now I need driver for my usb devices. I manage to compile Qt appilactions(c++) on my host linux to target linux by using buildroots
/output/host/usr/bin/arm-none-linux-gnueabi-c++ . Works well.
Now I'm trying to compile c-files for this driver http://www.ftdichip.com/Drivers/VCP.htm
I'm calling it like
/output/host/usr/bin/arm-none-linux-gnueabi-gcc -Wall -D__KERNEL__ -DMODULE -I/home/buildroot-2012.08/output/build/linux-184.108.40.206/include -DMODVERSIONS -include /home/buildroot-2012.08/output/build/linux-220.127.116.11/include/config/modversions.h -I /home/buildroot-2012.08/output/build/linux-18.104.22.168/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
Now I'm getting error:
output/build/linux-22.214.171.124/include/linux/linkage.h:5: fatal error: asm/linkage.h: No such file or directory
- How I should configurate the driver compiling?
- Is there some other way to do it for target linux. Mayby I'm not doing it the right way.