-
-
[求助]编译嵌入式linux驱动程序时错误,急急急!!!
-
发表于:
2009-5-19 21:39
5773
-
[求助]编译嵌入式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
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)