blob: 7b0edf55d3219e168579d3bc774b9bacf1bd3e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}
|