From a9efa86e951f2b6c1a019ac01b8d68a6f43c720e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 25 Apr 2014 12:09:29 +0200 Subject: bootimg.mk: bootloader target Signed-off-by: Paul Kocialkowski --- bootimg.mk | 8 ++++++++ 1 file changed, 8 insertions(+) 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} -- cgit v1.1