-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules: device Makefile to build ext kernel modules
This makefile is used in kernel-omap Android.mk to build the modules against the locked kernel tree. Change-Id: I1757f6261cee7284410be97b6db52e4536b5ecdd
- Loading branch information
Showing
3 changed files
with
73 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Makefile for Android Defy kernel-omap tree | ||
# "make jordan_modules" in repo root (not here) | ||
|
||
|
||
# list of modules to build : | ||
obj-m += symsearch/ | ||
obj-m += overclock/ | ||
obj-m += backlight/ | ||
obj-m += multitouch/ | ||
obj-m += mmcfix/ | ||
obj-m += gpiofix/ | ||
obj-m += clockfix/ | ||
obj-m += logcap/ | ||
obj-m += usbled/ | ||
|
||
|
||
PWD := $(shell pwd) | ||
|
||
.PHONY: clean | ||
####################################################################################### | ||
clean: | ||
@find $(PWD) | grep "\\.o$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.ko$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.cmd$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.mod.c$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.order$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.tmp_versions$$" | xargs rm -rf | ||
@cd $(PWD) && git checkout *.ko | ||
|
||
|
||
EXTRA_CFLAGS += -I$(KERNEL_DIR) -DUTS_RELEASE=\\\"2.6.32.9\\\" | ||
|
||
.PHONY: all | ||
####################################################################################### | ||
# Build the modules | ||
####################################################################################### | ||
all: modules | ||
modules: | ||
pwd | ||
@echo $@ EXTRA_CFLAGS = $(EXTRA_CFLAGS) | ||
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" ARCH=$(ARCH) -C $(KERNEL_DIR) M=$(PWD) modules | ||
@find $(PWD) | grep "\\.o$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.cmd$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.mod.c$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.order$$" | xargs rm -f | ||
@find $(PWD) | grep "\\.tmp_versions$$" | xargs rm -rf | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
How to compile jordan kernel modules | ||
------------------------------------ | ||
|
||
These external kernel modules require the Defy kernel tree : | ||
|
||
It is available at https://github.com/CyanogenDefy/kernel-omap | ||
|
||
Add to your repo manifest \<project path="kernel" name="CyanogenDefy/kernel-omap" /> | ||
|
||
--- | ||
|
||
"repo sync" and then, in root of your android repo : | ||
|
||
. build/envsetup.sh | ||
lunch cyanogen_jordan-eng | ||
|
||
make kernel | ||
make jordan_modules | ||
|
||
--- | ||
|
||
PS : Do not make menuconfig, or use make in kernel tree, if you have an error reporting | ||
the kernel source is not clean, type before : | ||
|
||
make kernel_clean | ||
|