aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2012-09-21 23:34:35 +0530
committerAmit Pundir <amit.pundir@linaro.org>2012-09-21 23:39:27 +0530
commit7e0e6f2223c6a36d91a79a41b0c874431c462092 (patch)
tree3f3b23d4d1e573a551348d03120190cf9c6972a7
parent9a4442cb9a98455ece5f2dda98db74e76dc2d9b6 (diff)
add bootwrapper android makefile
add bootwrapper android makefile to be called from top level Android makefiles to build it as a part of AOSP.
-rw-r--r--bootwrapper.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootwrapper.mk b/bootwrapper.mk
new file mode 100644
index 0000000..2862308
--- /dev/null
+++ b/bootwrapper.mk
@@ -0,0 +1,10 @@
+# Buildfile to invoke bootwrapper makefile.
+
+bootwrapper: android_kernel $(INSTALLED_RAMDISK_TARGET)
+ cp $(PRODUCT_OUT)/obj/kernel/arch/arm/boot/uImage $(DEVICE_TREE_TARGETS) $(PRODUCT_OUT)/obj/ramdisk.img $(PRODUCT_OUT)/boot && \
+ cd boot-wrapper/ && \
+ export KCMD="\"console=ttyAMA0 mem=512M mem=512M@0x880000000 earlyprintk init=/init\"" && \
+ $(MAKE) CROSS_COMPILE=arm-linux-gnueabi- USE_INITRD=yes USE_PREBUILT_KERNEL=yes linux-system-semi.axf && \
+ cp linux-system-semi.axf ../$(PRODUCT_OUT)/boot/linux-system-semi.axf
+
+$(INSTALLED_BOOTTARBALL_TARGET): bootwrapper