summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bootimg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootimg.mk b/bootimg.mk
index 27980ef..5d5c0b7 100644
--- a/bootimg.mk
+++ b/bootimg.mk
@@ -16,9 +16,13 @@
LOCAL_PATH := $(call my-dir)
INSTALLED_RAMDISK_TARGET := $(PRODUCT_OUT)/ramdisk.cpio
+INSTALLED_BOOTLOADER_TARGET := $(PRODUCT_OUT)/bootloader.zip
INSTALLED_UBOOT_SCRIPT_MODULE := $(PRODUCT_OUT)/boot.scr
INSTALLED_UBOOT_SPLASH_MODULE := $(PRODUCT_OUT)/splash.rgb16z
+.PHONY: bootloader
+bootloader: $(INSTALLED_BOOTLOADER_TARGET)
+
BUILT_RAMDISK_TARGET := $(INSTALLED_RAMDISK_TARGET)
$(INSTALLED_RAMDISK_TARGET): $(MKBOOTFS) $(INTERNAL_RAMDISK_FILES)
@@ -40,3 +44,7 @@ $(INSTALLED_BOOTLOADERIMAGE_TARGET): $(INSTALLED_XLOADER_MODULE) $(INSTALLED_UBO
$(MKIMAGE) -A arm -T script -C none -n "boot.scr" -d $(UBOOT_SRC)/../boot-scr/boot.txt $(INSTALLED_UBOOT_SCRIPT_MODULE)
@echo -e ${CL_CYN}"Made U-Boot script: $(INSTALLED_UBOOT_SCRIPT_MODULE)"${CL_RST}
@echo -e ${CL_CYN}"Made U-Boot: $(INSTALLED_UBOOT_MODULE)"${CL_RST}
+
+$(INSTALLED_BOOTLOADER_TARGET): $(INSTALLED_RECOVERYIMAGE_TARGET) $(INSTALLED_BOOTLOADERIMAGE_TARGET) $(PRODUCT_OUT)/replicant_gta04_install.sh
+ zip -qj $@ $(INSTALLED_RECOVERYIMAGE_TARGET) $(INSTALLED_XLOADER_MODULE) $(INSTALLED_UBOOT_SPLASH_MODULE) $(INSTALLED_UBOOT_SCRIPT_MODULE) $(INSTALLED_UBOOT_MODULE)
+ @echo -e ${CL_CYN}"Made bootloader: $(INSTALLED_BOOTLOADER_TARGET)"${CL_RST}