- 论坛徽章:
- 0
|
[hmp@lemigo tlv320aic1106]$ make
cc -c acdge_ssc_dma.c acdge_ssc_dma.h acdge_pdc.h acdge_audio_queue.h
acdge_ssc_dma.c:6:26: asm/hardware.h: 没有那个文件或目录
acdge_ssc_dma.c:8:24: asm/memory.h: 没有那个文件或目录
In file included from acdge_ssc_dma.c:9:
acdge_audio_queue.h:6:25: asm/uaccess.h: 没有那个文件或目录
acdge_ssc_dma.c: In function `ssc_dma_Init':
acdge_ssc_dma.c:17: error: `AT91_VA_BASE_SSC0' undeclared (first use in this function)
acdge_ssc_dma.c:17: error: (Each undeclared identifier is reported only once
acdge_ssc_dma.c:17: error: for each function it appears in.)
In file included from acdge_ssc_dma.h:7:
acdge_audio_queue.h:6:25: asm/uaccess.h: 没有那个文件或目录
acdge_audio_queue.h:6:25: asm/uaccess.h: 没有那个文件或目录
make: *** [acdge_ssc_dma.o] 错误 1
[hmp@lemigo tlv320aic1106]$
我发现只要是asm下面的就不能找到,其实这个文件却实在存.
下面是我的makefile
KERNELDIR = /home/hmp/MyProject/VideoPhone/linux
include $(KERNELDIR)/.config
KINCLUDE = /usr/local/arm/3.4.1/arm-linux/include
KERNEL_ACFILE = $(KINCLUDE)/linux/autoconf.h
KERNEL_MODVERSIONSFILE = $(KINCLUDE)/linux/modversions.h
CFAGS=-D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -I$(KINCLUDE)/include -O -Wall
VERSIONFILE=$(INCLUDEDIR)/linux/version.h
INSTALLDIR = /lib/modules/tlv320aic
all:tlv320aic.o
tlv320aic.o: acdge_audio_queue.o acdge_ssc_dma.o
$(LD) -r $^ -o $@
acdge_ssc_dma.o: acdge_ssc_dma.c acdge_ssc_dma.h acdge_pdc.h acdge_audio_queue.h
$(CC) $(CFLAGS) -c $^
acdge_audio_queue.o: acdge_audio_queue.c acdge_audio_queue.h
$(CC) $(CFLAGS) -c $^
.PHONY: clean
clean:
-rm -f *.ko *.ko
install:
install -d $(INSTALLDIR)
install -c $(OBJS) $(INSTALLDIR)
望知道的指点一下. |
|