msm8960: sglte baseband detect

Added support to detect sglte baseband.
Also moved the target specific detection code to target directory.

Change-Id: Iff8c8c538b14fc4d92091a28a62a9dcaec6b8e08
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 5a68a4b..9ca4bce 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -82,6 +82,7 @@
 static const char *baseband_csfb    = " androidboot.baseband=csfb";
 static const char *baseband_svlte2a = " androidboot.baseband=svlte2a";
 static const char *baseband_mdm     = " androidboot.baseband=mdm";
+static const char *baseband_sglte   = " androidboot.baseband=sglte";
 
 /* Assuming unauthorized kernel image by default */
 static int auth_kernel_img = 0;
@@ -205,6 +206,10 @@
 		case BASEBAND_MDM:
 			cmdline_len += strlen(baseband_mdm);
 			break;
+
+		case BASEBAND_SGLTE:
+			cmdline_len += strlen(baseband_sglte);
+			break;
 	}
 
 	if (cmdline_len > 0) {
@@ -281,6 +286,12 @@
 				if (have_cmdline) --dst;
 				while ((*dst++ = *src++));
 				break;
+
+			case BASEBAND_SGLTE:
+				src = baseband_sglte;
+				if (have_cmdline) --dst;
+				while ((*dst++ = *src++));
+				break;
 		}
 		ptr += (n / 4);
 	}
@@ -1096,7 +1107,7 @@
 		}
 	}
 
-	if (!strcmp(ptn->name, "system") 
+	if (!strcmp(ptn->name, "system")
 		|| !strcmp(ptn->name, "userdata")
 		|| !strcmp(ptn->name, "persist")
 		|| !strcmp(ptn->name, "recoveryfs")) {