2010年3月19日 星期五
2010年3月8日 星期一
Linux driver Makefile for CROSS-COMPILE
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
~
~
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
~
~
Linux driver Makefile for CROSS-COMPILE
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
~
~
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
~
~
訂閱:
文章 (Atom)