I was trying to recompile the DVSDK 4.02 for DM365 and got an error. These were my steps:
1) installed CodeSourcery Tools and set the $PATH variable
2)Installed DVSDK from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_4_00/latest/index_FDS.html
executing ./setup.shdvsdk_dm365-evm_4_02_00_06_setuplinux
3) Setup DVSDK by executing
ti-dvsdk_dm365-evm_4_02_00_06/setup.sh
3) cd /ti-dvsdk_dm365-evm_4_02_00_06/psp/linux-2.6.32.17-psp03.01.01.39
4) Cleaned my installation of previous build settings
host$ make distclean ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
5) Configured the kernel according to the default configuration provided for DM365
host$ make davinci_dm365_defconfig ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
6) make clean
7) make all
Got error:
pedro@ubuntu:~/ti-dvsdk_dm365-evm_4_02_00_06/psp/linux-2.6.32.17-psp03.01.01.39$ make all
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2