diff options
author | Sylvain Chouleur <sylvain.chouleur@intel.com> | 2014-08-30 01:48:20 +0200 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-09-04 08:37:24 -0700 |
commit | 5d0c4d2613cad85b0e2ee6edc880841acbdff65e (patch) | |
tree | e8a80003d8b476a528d55bac8265a7db814085fa | |
parent | 310c3573727069755c3610939555aab5b4689759 (diff) | |
download | bootstub-5d0c4d2613cad85b0e2ee6edc880841acbdff65e.tar.gz |
Fix bootloader version computing
Use hex base to compute minor incrementation
Bug: 17381829
Change-Id: I0c0d6c5c526a950e78db8d4df9ac140eb5342dc5
Signed-off-by: Sylvain Chouleur <sylvain.chouleur@intel.com>
-rw-r--r-- | Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,6 +105,6 @@ $(bootstub_aosp_full) : CHECK_BOOTSTUB_AOSP_SIZE $(BL_VERSION_FILE) $(hide) cat $(bootstub_aosp_bin) /dev/zero | dd bs=$(BOOTSTUB_SIZE) count=1 > $@ export bl_version=`tail -n 1 $(BL_VERSION_FILE) | cut -d- -f2`; \ export maj=`echo $$bl_version | cut -d. -f1`; export min=`echo $$bl_version | cut -d. -f2`; \ - echo -en \\x$$maj\\x$$((min+1)) | dd of=$@ seek=$$(($(BOOTSTUB_SIZE)-2)) bs=1 + echo -en `printf "\\\\\x%x\\\\\x%x" $$maj $$((10#$$min+1))` | dd of=$@ seek=$$(($(BOOTSTUB_SIZE)-2)) bs=1 endif #($(TARGET_BOARD_PLATFORM),moorefield) |