diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/image-android.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/image-android.c b/common/image-android.c index 0f6de83..a006120 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -97,6 +97,16 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, serialnr.low); strcat(commandline, newbootargs); #endif + + /* append soc type into bootargs */ + char *soc_type = getenv("soc_type"); + if (soc_type) { + sprintf(newbootargs, + " androidboot.soc_type=%s", + soc_type); + strcat(commandline, newbootargs); + } + int bootdev = get_boot_device(); if (bootdev == SD1_BOOT || bootdev == SD2_BOOT || bootdev == SD3_BOOT || bootdev == SD4_BOOT) { |