ifneq ($(KERNELRELEASE),)
obj-m := test.o
else
KDIR := /work/mydroid/kernel/kernel
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -r .tmp_versions *.mod.c .*.cmd *.o *.ko Module.symvers
endif
~
KERNEL_TOOLCHAIN_PREFIX := path/arm-eabi-
export ARCH:=arm
export CROSS_COMPILE:=$(KERNEL_TOOLCHAIN_PREFIX)
obj-m := proc.o
KDIR := /apps/study/mydroid/kernel/kernel
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -r .tmp_versions *.mod.c .*.cmd *.o *.ko Module.symvers
~
~
沒有留言:
張貼留言