summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.h
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-04-04 17:54:59 -0700
committerWink Saville <wink@google.com>2011-04-04 17:54:59 -0700
commitb98762f7824c291dc5d9a9b757af434ef31d8c81 (patch)
tree7f719a05275e43a74a312d17987f74a22e8e0112 /fastboot/fastboot.h
parent47e4ee5958bfd48c741f17c23b3a4a3f7866416e (diff)
downloadcore-b98762f7824c291dc5d9a9b757af434ef31d8c81.tar.gz
core-b98762f7824c291dc5d9a9b757af434ef31d8c81.tar.bz2
core-b98762f7824c291dc5d9a9b757af434ef31d8c81.zip
Teach fastboot to allow required variables per product.
This is needed for products like xoom-cdma and xoom-cdma-lte. The xoom-cdma-lte product requires an lte baseband binary but it's not needed for xoom-cdma. This is implemented by allowing an optional product parameter to "required" statements. The parameter is separated from "required" by a colon so the version-baseband-2 requirment in board-info.txt for stingray becomes: require-for-product:xoom-cdma-lte version-baseband-2=ltedc_u_03.25.00|ltedc_u_03.19.00 In the above statement, only xoom-cdma-lte requires version-baseband-2 and the baseband can be lte_u_03.25.00 or lte_u_03.19.00. For other products version-baseband-2 will be ignored. Change-Id: I786bec5f5661c2243d87925b064fc6124d3cffa1
Diffstat (limited to 'fastboot/fastboot.h')
-rw-r--r--fastboot/fastboot.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fastboot/fastboot.h b/fastboot/fastboot.h
index a4b27a02f..9e043fe6f 100644
--- a/fastboot/fastboot.h
+++ b/fastboot/fastboot.h
@@ -43,8 +43,10 @@ char *fb_get_error(void);
/* engine.c - high level command queue engine */
void fb_queue_flash(const char *ptn, void *data, unsigned sz);;
void fb_queue_erase(const char *ptn);
-void fb_queue_require(const char *var, int invert, unsigned nvalues, const char **value);
+void fb_queue_require(const char *prod, const char *var, int invert,
+ unsigned nvalues, const char **value);
void fb_queue_display(const char *var, const char *prettyname);
+void fb_queue_query_save(const char *var, char *dest, unsigned dest_size);
void fb_queue_reboot(void);
void fb_queue_command(const char *cmd, const char *msg);
void fb_queue_download(const char *name, void *data, unsigned size);
@@ -54,4 +56,7 @@ int fb_execute_queue(usb_handle *usb);
/* util stuff */
void die(const char *fmt, ...);
+/* Current product */
+extern char cur_product[FB_RESPONSE_SZ + 1];
+
#endif