summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-04-21 02:06:47 +0100
committerAndre Przywara <andre.przywara@arm.com>2016-06-02 01:27:19 +0100
commit13c7a5c8d469c4ee0425e64a1ae4bf11edee7bed (patch)
tree4dec8bef5c21fccdc17a43ae1384221453358c09 /tools
parent4ee05598f9301e06f10111503fd1c7776c3741a7 (diff)
sun50i: remove Allwinner hash output
We actually have the short SHA1 of the HEAD commit already in the output, so there is no need for that extra bloated code to insert it into the binary. Remove it. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add_hash_bl31.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/tools/add_hash_bl31.sh b/tools/add_hash_bl31.sh
deleted file mode 100755
index 1814460..0000000
--- a/tools/add_hash_bl31.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-set -e
-
-BUILD_FILE=bl31.bin
-BUILD_MODE=bl31
-
-show_help()
-{
- printf "\n add_hash.sh - add git log hash value into uboot,boot0,sboot,fes \n"
- echo " eg :"
- echo " ./add_hash.sh -f input_file -m file_flag "
- echo " file_flag = uboot or boot0 or sboot"
- printf "\n\n"
-}
-
-
-build_bl31()
-{
- dd if=./${BUILD_FILE} of=./bl31_back bs=48 count=1 status=noxfer 2> /dev/null
- dd if=./cur.log of=./bl31_back ibs=64 conv=notrunc,sync oflag=append obs=64 count=1 status=noxfer 2> /dev/null
- dd if=./${BUILD_FILE} of=./bl31_back ibs=112 obs=112 conv=notrunc oflag=append skip=1 status=noxfer 2> /dev/null
- mv bl31_back ${BUILD_FILE}
-}
-
-
-do_common()
-{
- if [ "x${BUILD_MODE}" = "xbl31" ] ; then
- echo " add commit info for bl31 "
- build_bl31
- else
- echo "build none"
- fi
-}
-while getopts f:m: OPTION
-do
- case $OPTION in
- f)
- BUILD_FILE=$OPTARG
- ;;
- m)
- BUILD_MODE=$OPTARG
- ;;
- *)
- show_help
- exit
- ;;
- esac
-done
-
-do_common