赞
踩
make命令 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
CROSS_COMPLE:=arm-none-linux-gnueabi-
ARCH:=arm
CC:=$(CROSS_COMPILE)gcc
LD:=$(CROSS_COMPILE)ld
obj-m := simple.o
module-objs = simple.o
#KDIR := /root/eastcom/susz_view_server_test/SW_COMM/lib/SW_BPS/Terminal/D8135/CPU/LinuxSys/Kernel
KDIR := /home/bps/susz/D8135_TEST/susz_view_server_test/SW_COMM/lib/SW_BPS/Terminal/D8135/CPU/LinuxSys/Kernel
PWD := $(shell pwd)
defaule:
make -C $(KDIR) M=$(PWD) modules ARCH=arm
clean:
rm -f *.ko *.o *.mod.c *.symvers
如果还是编译不过有可能是需要先编译指定目录下的内核
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。