DMAI_BSP移植



I recompiled ceexamples.

[linux-devkit]$ make ceexamples_clean && make ceexamples

Then I tried to recompile DMAI.

[linux-devkit]$ make dmai_clean && make dmai

Compiling obj/linux/Capture.dm365.o470MV from linux/Capture.c..
In file included from /opt/DaVinci-PSP-SDK-03.21.00.04/src/kernel/linux-03.21.00.04/include/linux/videodev2.h:66,
                 from linux/Capture.c:43:
/opt/DaVinci-PSP-SDK-03.21.00.04/src/kernel/linux-03.21.00.04/include/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"

 Can I use old (2.6.32) linux headers???


Need to change $DVSDK/dmai_2_20_00_15/packages/ti/sdo/dmai/Makefile

I declared variable to point it to old linux headers.

LINUXOLD = /opt/dvsdk402/psp/linux-2.6.32.17-psp03.01.01.39

then I change '-I' paths for GCC_CPP_FLAGS

Previous (commented out) flags:

#GCC_CPP_FLAGS    += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_DIR)/include -I$(LINUXKERNEL_INSTALL_DIR)/arch/arm/include -I$(LINUXKERNEL_INSTALL_DIR)/arch/arm/$(PLATFORM_ARCH)/include $(HAVE_AUTOCONFIG) -I$(CMEM_INSTALL_DIR)/packages -I$(LINK_INSTALL_DIR) -DDmai_BuildOs_linux -Dxdc_target_types__=gnu/targets/std.h -I$(LINUXLIBS_INSTALL_DIR)/include -Dxdc_target_name__=arm/GCArmv5T

Current flags:

GCC_CPP_FLAGS    += $(CPP_FLAGS) -I$(LINUXOLD)/include -I$(LINUXOLD)/arch/arm/include -I$(LINUXOLD)/arch/arm/$(PLATFORM_ARCH)/include $(HAVE_AUTOCONFIG) -I$(CMEM_INSTALL_DIR)/packages -I$(LINK_INSTALL_DIR) -DDmai_BuildOs_linux -Dxdc_target_types__=gnu/targets/std.h -I$(LINUXLIBS_INSTALL_DIR)/include -Dxdc_target_name__=arm/GCArmv5T

你可能感兴趣的:(DMAI_BSP移植)