KERNELDIR = /usr/src/Hi3520_VSSDK/source/os/linux-2.6.24
INCLUDEDIR = ${KERNELDIR}/include
SRCDIR = $(PWD)
CC = arm-hismall-linux-gcc
AR = arm-hismall-linux-ar
LD = arm-hismall-linux-ld
EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -I$(INCLUDEDIR) -Wall -Wstrict-prototypes
EXTRA_CFLAGS += -fno-strict-aliasing -pipe -msoft-float
ifeq ($(DEBUG),1)
EXTRA_CFLAGS += -DGPIO_DEBUG
endif
all:modules
obj-m :=armgpiodrv.o
OBJS = $(SRCS:.c=.o)
modules:
$(MAKE) -C $(KERNELDIR) M=$(SRCDIR) modules
clean:
rm -rf *.o *.ko *.mod.c .*.*.cmd .tmp_versions
文章评论(0条评论)
登录后参与讨论