Home | History | Annotate | Download | only in reflash-bootloader
      1 #!/bin/sh
      2 
      3 DIR=/tmp/reflash_bootloader.$$
      4 RAMDISK=/tmp/ramdisk.$$.img
      5 
      6 mkdir ${DIR}
      7 cp ${OUT}/system/bin/tuna-reflash-bootloader ${DIR}/init
      8 cp ${ANDROID_BUILD_TOP}/vendor/samsung/tuna/bootloader.img ${DIR}/bootloader.img
      9 mkbootfs ${DIR} | minigzip > ${RAMDISK}
     10 mkbootimg --kernel ${OUT}/kernel --ramdisk ${RAMDISK} -o tuna-reflash-bootloader.img
     11 rm ${DIR}/init
     12 rm ${DIR}/bootloader.img
     13 rmdir ${DIR}
     14 rm ${RAMDISK}
     15