diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-11-02 10:00:23 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-11-02 10:00:23 -0700 |
commit | dfff601c1549287194781937c74ce5935bf33470 (patch) | |
tree | 2b4af05ffba3377faa9cfa2eea5114d0d6e9c0b5 /generate-factory-images-common.sh | |
parent | 241b668398869e58de8ceb50f87a800741f9e91d (diff) | |
download | device_common-dfff601c1549287194781937c74ce5935bf33470.tar.gz device_common-dfff601c1549287194781937c74ce5935bf33470.tar.bz2 device_common-dfff601c1549287194781937c74ce5935bf33470.zip |
Allow the radio to be specified as a standalone file.
This replicates the bootloader setup.
Bug: 4295425
Bug: 7252211
Change-Id: I7f7ff157fab98f67a9e143019870d64fffd5b2f1
Diffstat (limited to 'generate-factory-images-common.sh')
-rw-r--r-- | generate-factory-images-common.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh index 2fc5ebf..3e07e3e 100644 --- a/generate-factory-images-common.sh +++ b/generate-factory-images-common.sh @@ -43,7 +43,7 @@ if test "$BOOTLOADERFILE" = "" then unzip -d tmp ${SRCPREFIX}$PRODUCT-target_files-$BUILD.zip RADIO/$BOOTLOADERSRC fi -if test "$RADIO" != "" +if test "$RADIO" != "" -a "$RADIOFILE" = "" then unzip -d tmp ${SRCPREFIX}$PRODUCT-target_files-$BUILD.zip RADIO/$RADIOSRC fi @@ -66,7 +66,12 @@ else fi if test "$RADIO" != "" then - cp tmp/RADIO/$RADIOSRC tmp/$PRODUCT-$VERSION/radio-$DEVICE-$RADIO.img + if test "$RADIOFILE" = "" + then + cp tmp/RADIO/$RADIOSRC tmp/$PRODUCT-$VERSION/radio-$DEVICE-$RADIO.img + else + cp $RADIOFILE tmp/$PRODUCT-$VERSION/radio-$DEVICE-$RADIO.img + fi fi if test "$CDMARADIO" != "" then |