diff options
Diffstat (limited to 'reflash-bootloader/build-image.sh')
-rwxr-xr-x | reflash-bootloader/build-image.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/reflash-bootloader/build-image.sh b/reflash-bootloader/build-image.sh new file mode 100755 index 0000000..7b0edf5 --- /dev/null +++ b/reflash-bootloader/build-image.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +DIR=/tmp/reflash_bootloader.$$ +RAMDISK=/tmp/ramdisk.$$.img + +mkdir ${DIR} +cp ${OUT}/system/bin/tuna-reflash-bootloader ${DIR}/init +cp ${ANDROID_BUILD_TOP}/vendor/samsung/tuna/bootloader.img ${DIR}/bootloader.img +mkbootfs ${DIR} | minigzip > ${RAMDISK} +mkbootimg --kernel ${OUT}/kernel --ramdisk ${RAMDISK} -o tuna-reflash-bootloader.img +rm ${DIR}/init +rm ${DIR}/bootloader.img +rmdir ${DIR} +rm ${RAMDISK} |