Skip to content

Commit

Permalink
Install our own kernel modules in the root fs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwu committed Nov 23, 2011
1 parent 72061d5 commit ddf262f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -38,6 +38,13 @@ ifeq (qemu,$(KERNEL))
build: kernel bootimg-hack
endif

# someone rename the galaxys2 kernel dir plz
ifeq (galaxys2,$(KERNEL))
KERNEL_DIR=boot/kernel-android-galaxy-s2
else
KERNEL_DIR=boot/kernel-android-$(KERNEL)
endif

ifeq (android,$(WIDGET_BACKEND))
ifndef ANDROID_SDK
$(error Sorry, you need to set ANDROID_SDK in your environment to point at the top-level of the SDK install. For now.)
Expand Down Expand Up @@ -72,6 +79,8 @@ gonk: gaia-hack
# XXX Hard-coded for gonk tool support
kernel:
@PATH="$$PATH:$(abspath $(TOOLCHAIN_PATH))" make -C $(KERNEL_PATH) $(MAKE_FLAGS) ARCH=arm CROSS_COMPILE=arm-eabi-
-find "$(KERNEL_DIR)" -name "*.ko" | xargs -I MOD cp MOD "$(GONK_PATH)/out/target/product/$(GONK)/root/lib/modules"
@PATH="$$PATH:$(abspath $(TOOLCHAIN_PATH))" make -C $(KERNEL_PATH) $(MAKE_FLAGS) ARCH=arm CROSS_COMPILE=arm-eabi- zImage

.PHONY: clean
clean: clean-gecko clean-gonk clean-kernel
Expand Down

0 comments on commit ddf262f

Please sign in to comment.