Lines Matching refs:product
25 product=''
283 log_print "getting bootloader file for $product"
284 bootloaderfile=`ls -1 $ROOT/$product | sed -n 's/\(.*boot[0-9._]\+img\)/\1/ p'`
289 if [ ! -e "$ROOT/$product/$bootloaderfile" ]; then
290 log_print "bootloader file not found: ./$product/$bootloaderfile"
293 log_print "using $ROOT/$product/$bootloaderfile as the bootloader image file"
296 flash_partition $bootpart $ROOT/$product/$bootloaderfile
322 log_print "getting radio file for $product"
323 radiofile=`ls -1 $ROOT/$product | sed -n 's/\(radio[0-9._A-Za-z]\+img\)/\1/ p'`
328 if [ ! -e "$ROOT/$product/$radiofile" ]; then
329 log_print "radio file not found: ./$product/$radiofile"
332 log_print "using $ROOT/$product/$radiofile as the radio image file"
335 flash_partition $radiopart $ROOT/$product/$radiofile
356 log_print "getting build file for $product"
357 buildfile=`\ls -1 $ROOT/$product 2>&1 | sed -n 's/\([a-z]\+-img-[0-9]\+.zip\)/\1/ p'`
362 if [ ! -e "$ROOT/$product/$buildfile" ]; then
363 log_print "build file not found: ./$product/$buildfile"
366 log_print "using $ROOT/$product/$buildfile as the system image file"
369 fastboot_command update $ROOT/$product/$buildfile
386 if [ -e $ROOT/$product/userdata.img ];then
387 flash_partition userdata $ROOT/$product/userdata.img
389 log_print "userdata.img file not found: $ROOT/$product/userdata.img"
437 if [ "$product" == "" ]; then
439 product=`$FASTBOOT -s $device getvar product 2>&1 | sed -n 's/product: \([a-z]*\)\n*/\1/ p'`
440 if [ ! -e "$ROOT/$product" ]; then
441 log_print "device product id not supported: $product"
445 log_print "using $product as device product id"
508 if [ -e "$ROOT/$product/custom_flash.sh" ]; then
509 . $ROOT/$product/custom_flash.sh