请教诸位个问题,我买的开发板,按照说明书做的移植,过程如下,
1,board目录下创建ljd2410目录,然后把smdk2410里的内容复制进去,再把smdk2410.c重命名为ljd2410.c
2,include/configs目录下的smdk2410.h复制一个ljd2410.h
3,修改主目录下的Makefile。
4,开始配置,编译。
结果是如果我编译smdk2410就能通过,编译我自己移植的ljd2410就不能过,出错信息如下
interrupts.c: In function `interrupt_init':
interrupts.c:63: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c:63: error: (Each undeclared identifier is reported only once
interrupts.c:63: error: for each function it appears in.)
interrupts.c: In function `get_timer_raw':
interrupts.c:111: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `get_timer_masked':
interrupts.c:120: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `udelay_masked':
interrupts.c:129: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `reset_cpu':
interrupts.c:183: error: `us' undeclared (first use in this function)
make[1]: *** [interrupts.o] Error 1
make[1]: Leaving directory `/root/test/uboot/u-boot-1.1.6/cpu/arm920t/at91rm9200'
make: *** [cpu/arm920t/at91rm9200/libat91rm9200.a] Error 2
哪位高手帮忙看看,烦劳赐教。 |