diff options
Diffstat (limited to 'common/image-android.c')
-rw-r--r-- | common/image-android.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image-android.c b/common/image-android.c index 429bf1c..d90500a 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -13,6 +13,11 @@ static char andr_tmp_str[ANDR_BOOT_ARGS_SIZE + 1]; +#ifdef CONFIG_BRILLO_SUPPORT +#include <linux/usb/ch9.h> +#include <linux/usb/gadget.h> +#include "../drivers/usb/gadget/bootctrl.h" +#endif /** * android_image_get_kernel() - processes kernel part of Android boot images * @hdr: Pointer to image header, which is at the start @@ -78,6 +83,12 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, serialnr.high, serialnr.low); #endif + +#ifdef CONFIG_BRILLO_SUPPORT + char suffixStr[64]; + sprintf(suffixStr, " androidboot.slot_suffix=%s", get_slot_suffix()); + strcat(commandline, suffixStr); +#endif setenv("bootargs", commandline); if (os_data) { *os_data = (ulong)hdr; |