summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHaixiang Bao <haixiang.bao@amlogic.com>2015-10-15 16:12:17 +0800
committerHaixiang Bao <haixiang.bao@amlogic.com>2015-10-15 16:12:17 +0800
commitdbf5f94407676f3cf15914d18919c1446f7b6ac1 (patch)
tree5ac0910c7eb19405cbe64bc2687503c0e44bf723 /Makefile
parent5425ae07b16f514fb08042489bda2b85d487308a (diff)
downloadu-boot-odroid-c1-dbf5f94407676f3cf15914d18919c1446f7b6ac1.tar.gz
[GXB]:support uboot auto test building
1. for board stability test add uboot auto test build 2. to build the uboot please just enable CONFIG_AML_UBOOT_AUTO_TEST 3. the uboot built with above setting will take uboot auto reboot 3.1 it will use two stick register for boot time count 3.2 the uboot will use special version bl2 bl2_utst.bin for this feature 4. default CONFIG_AML_UBOOT_AUTO_TEST is disabled and no side effect. Change-Id: If02929695f6dc40734d9b94e4fd4526b8e4c0cec Signed-off-by: Haixiang Bao <haixiang.bao@amlogic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e0f0df91b7..fe8792f7c0 100644
--- a/Makefile
+++ b/Makefile
@@ -889,7 +889,11 @@ acs.bin: tools prepare u-boot.bin
.PHONY : boot.bin
boot.bin: fip.bin
+ifeq ($(CONFIG_AML_UBOOT_AUTO_TEST), y)
+ $(Q)python $(FIP_FOLDER)/acs_tool.pyc $(FIP_FOLDER_SOC)/bl2_utst.bin $(FIP_FOLDER_SOC)/bl2_acs.bin $(FIP_FOLDER_SOC)/acs.bin 0
+else
$(Q)python $(FIP_FOLDER)/acs_tool.pyc $(FIP_FOLDER_SOC)/bl2.bin $(FIP_FOLDER_SOC)/bl2_acs.bin $(FIP_FOLDER_SOC)/acs.bin 0
+endif
$(Q)$(FIP_FOLDER)/bl2_fix.sh $(FIP_FOLDER_SOC)/bl2_acs.bin $(FIP_FOLDER_SOC)/zero_tmp $(FIP_FOLDER_SOC)/bl2_new.bin
$(Q)cat $(FIP_FOLDER_SOC)/bl2_new.bin $(FIP_FOLDER_SOC)/fip.bin > $(FIP_FOLDER_SOC)/boot_new.bin
$(Q)$(FIP_FOLDER_SOC)/aml_encrypt_$(SOC) --bootsig --input $(FIP_FOLDER_SOC)/boot_new.bin --output $(FIP_FOLDER_SOC)/u-boot.bin