target: project: msm8996: Target specific command line
Add support to pass command line specific to a particular target, for
8996 pass command line argument to disable fpsimd settings based on the
hw id.
Change-Id: I8d0746f923b48b9964c2a12b2ef7737b4d45565e
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 892ec72..b134ec0 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -447,6 +447,14 @@
cmdline_len += strlen(warmboot_cmdline);
}
+#if TARGET_CMDLINE_SUPPORT
+ char *target_cmdline_buf = malloc(TARGET_MAX_CMDLNBUF);
+ int target_cmd_line_len;
+ ASSERT(target_cmdline_buf);
+ target_cmd_line_len = target_update_cmdline(target_cmdline_buf);
+ cmdline_len += target_cmd_line_len;
+#endif
+
if (cmdline_len > 0) {
const char *src;
unsigned char *dst;
@@ -626,6 +634,16 @@
while ((*dst++ = *src++));
free(target_boot_params);
}
+
+#if TARGET_CMDLINE_SUPPORT
+ if (target_cmdline_buf && target_cmd_line_len)
+ {
+ if (have_cmdline) --dst;
+ src = target_cmdline_buf;
+ while((*dst++ = *src++));
+ free(target_cmdline_buf);
+ }
+#endif
}