Automated import from //branches/donutburger/...@142141,142141

This commit is contained in:
Doug Zongker 2009-03-24 21:30:32 -07:00 committed by The Android Open Source Project
parent cf5b17055b
commit bc012de46e

View file

@ -185,16 +185,21 @@ int main(int argc, char *argv[]) {
}
// The lines we're looking for look like:
// version-bootloader=x.yy.zzzz
// version-bootloader=x.yy.zzzz|x.yy.zzzz|...
// or:
// require version-bootloader=x.yy.zzzz
// require version-bootloader=x.yy.zzzz|x.yy.zzzz|...
char line[256];
while (fgets(line, sizeof(line), fp)) {
const char *name = strtok(line, "="), *value = strtok(NULL, "\n");
const char *name = strtok(line, "="), *value = strtok(NULL, "|\n");
if (value != NULL &&
(!strcmp(name, "version-bootloader") ||
!strcmp(name, "require version-bootloader"))) {
printf("assert getprop(\"ro.bootloader\") == \"%s\"\n", value);
printf("assert getprop(\"ro.bootloader\") == \"%s\"", value);
while ((value = strtok(NULL, "|\n")) != NULL) {
printf(" || getprop(\"ro.bootloader\") == \"%s\"", value);
}
printf("\n");
}
// We also used to check version-baseband, but we update radio.img
// ourselves, so there's no need.