summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Chouleur <sylvain.chouleur@intel.com>2014-08-30 01:48:20 +0200
committerPatrick Tjin <pattjin@google.com>2014-09-04 08:37:24 -0700
commit5d0c4d2613cad85b0e2ee6edc880841acbdff65e (patch)
treee8a80003d8b476a528d55bac8265a7db814085fa
parent310c3573727069755c3610939555aab5b4689759 (diff)
downloadbootstub-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.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 29252eb..539c7e1 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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)