am 241b6683: xloader is optional, only copy it when it\'s there

* commit '241b668398869e58de8ceb50f87a800741f9e91d':
  xloader is optional, only copy it when it's there
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index 417bc8b..241ecd7 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -54,7 +54,10 @@
 
 # Copy the various images in their staging location
 cp ${SRCPREFIX}$PRODUCT-img-$BUILD.zip tmp/$PRODUCT-$VERSION/image-$PRODUCT-$VERSION.zip
-cp tmp/RADIO/$XLOADERSRC tmp/$PRODUCT-$VERSION/xloader-$DEVICE-$XLOADER.img
+if test "$XLOADER" != ""
+then
+  cp tmp/RADIO/$XLOADERSRC tmp/$PRODUCT-$VERSION/xloader-$DEVICE-$XLOADER.img
+fi
 if test "$BOOTLOADERFILE" = ""
 then
   cp tmp/RADIO/$BOOTLOADERSRC tmp/$PRODUCT-$VERSION/bootloader-$DEVICE-$BOOTLOADER.img