Skip to content

Instantly share code, notes, and snippets.

@creamidea
Created April 18, 2013 07:50
Show Gist options
  • Save creamidea/5410972 to your computer and use it in GitHub Desktop.
Save creamidea/5410972 to your computer and use it in GitHub Desktop.
led makefile arm入门练习 交叉编译
obj-m=led.o
KERDIR=/opt/EmbedSky/linux-2.6.30.4
CURDIR=$(shell pwd)
# 交叉编译
CROSS_ARCH=ARCH=arm CROSS_COMPILE=arm-linux-
default:
# -C 转移目录
$(MAKE) $(CROSS_ARCH) -C $(KERDIR) SUBDIRS=$(CURDIR) modules
clean:
$(MAKE) $(CROSS_ARCH) -C $(KERDIR) SUBDIRS=$(CURDIR) clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment