Hi,
I created this simple program in order to use the board-dm365-evm object file that is why I did the following program:
main.c:
int main(){
evm_init_cpld();
cpld_leds_init();
return 0;
}
with this Makefile:
CC = arm-none-linux-gnueabi-gcc
all:
$(CC) -c main.c
$(CC) -o test gpio.o dma.o usb.o common.o sram.o gpio.o dma.o usb.o common.o sram.o mux.o dm365.o devices.o irq.o board-dm365-evm.o main.o
(all the objects are in the same folder)
And the compiler find thousands of undefined references such as :
main.o: In function `main':
main.c:(.text+0x8): undefined reference to `evm_init_cpld'
main.c:(.text+0xc): undefined reference to `cpld_leds_init'
/home/administrateur/dvsdk/git/arch/arm/mach-davinci/board-dm365-evm.o: In function `dm365evm_keyscan_enable':
board-dm365-evm.c:(.text+0x120): undefined reference to `davinci_cfg_reg'
/home/administrateur/dvsdk/git/arch/arm/mach-davinci/board-dm365-evm.o: In function `dm365evm_emac_configure':
board-dm365-evm.c:(.text+0x138): undefined reference to `davinci_cfg_reg'
board-dm365-evm.c:(.text+0x140): undefined reference to `davinci_cfg_reg'
board-dm365-evm.c:(.text+0x148): undefined reference to `davinci_cfg_reg'
board-dm365-evm.c:(.text+0x150): undefined reference to `davinci_cfg_reg'
...
I tried almost everything with the makefile...
I hope it is obvious for non-beginner !
Regards,
Thibault