-
-
[求助]编译嵌入式linux驱动程序时错误,急急急!!!
-
发表于:
2009-5-19 21:39
5772
-
[求助]编译嵌入式linux驱动程序时错误,急急急!!!
[error]:connot specify -o with -c or -S and multiple compilation
makefile 文件内容如下:
CC = /opt/host/armv4l/bin/armv4l-unknown-linux-gcc
LD = /opt/host/armv4l/bin/armv4l-unknown-linux-ld
CFLAGS = -D__KERNEL__ -I/linux2410/arm830/kernel/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DKBUILD_BASENAME=Lcd_driver -I/opt/host/armv4l/src/linux/include -DMODULE
Lcd_driver.o: Lcd_driver.c def.h
$(CC) $(CFLAGS) -c $^ -o $@
cp Lcd_driver.o /-f
clean:
-rm -f *.o
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课