aboot: add support for dsda2
Change-Id: I5caaa206c9d5c92b5d3c0169c9e7fa44815091ed
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index eeffeaa..2e3d475 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -2,7 +2,7 @@
* Copyright (c) 2009, Google Inc.
* All rights reserved.
*
- * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -98,7 +98,8 @@
static const char *baseband_svlte2a = " androidboot.baseband=svlte2a";
static const char *baseband_mdm = " androidboot.baseband=mdm";
static const char *baseband_sglte = " androidboot.baseband=sglte";
-static const char *baseband_dsda = " androidboot.baseband=dsda";
+static const char *baseband_dsda = " androidboot.baseband=dsda";
+static const char *baseband_dsda2 = " androidboot.baseband=dsda2";
/* Assuming unauthorized kernel image by default */
static int auth_kernel_img = 0;
@@ -199,6 +200,10 @@
case BASEBAND_DSDA:
cmdline_len += strlen(baseband_dsda);
break;
+
+ case BASEBAND_DSDA2:
+ cmdline_len += strlen(baseband_dsda2);
+ break;
}
if (cmdline_len > 0) {
@@ -283,6 +288,12 @@
if (have_cmdline) --dst;
while ((*dst++ = *src++));
break;
+
+ case BASEBAND_DSDA2:
+ src = baseband_dsda2;
+ if (have_cmdline) --dst;
+ while ((*dst++ = *src++));
+ break;
}
}