diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-01 14:02:42 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-01 15:31:11 +0100 |
commit | 0b0194940523fa3f318c380d0693907bd522241c (patch) | |
tree | 69d2e8db93e660fc22b468faeb5d097653ff71ad /vl-android.c | |
parent | 25eb6557b94da066d6e137c07aeced39badf5aa6 (diff) | |
download | external_qemu-0b0194940523fa3f318c380d0693907bd522241c.zip external_qemu-0b0194940523fa3f318c380d0693907bd522241c.tar.gz external_qemu-0b0194940523fa3f318c380d0693907bd522241c.tar.bz2 |
Move kernel/ramdisk initialization to the core.
The QEMU -kernel, -initrd and -append options are still supported for
overriding the hardware configuration.
Change-Id: I034d9e25d0a23341086aa052f449db5de50b2c8d
Diffstat (limited to 'vl-android.c')
-rw-r--r-- | vl-android.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vl-android.c b/vl-android.c index ff21db9..d5b37ae 100644 --- a/vl-android.c +++ b/vl-android.c @@ -5061,6 +5061,14 @@ int main(int argc, char **argv, char **envp) if (qemu_init_main_loop()) { PANIC("qemu_init_main_loop failed"); } + + if (kernel_filename == NULL) { + kernel_filename = android_hw->kernel_path; + } + if (initrd_filename == NULL) { + initrd_filename = android_hw->disk_ramdisk_path; + } + linux_boot = (kernel_filename != NULL); net_boot = (boot_devices_bitmap >> ('n' - 'a')) & 0xF; @@ -5333,6 +5341,10 @@ int main(int argc, char **argv, char **envp) { const char* kernel_parameters; + if (android_hw->kernel_parameters) { + stralloc_add_str(kernel_params, android_hw->kernel_parameters); + } + /* If not empty, kernel_config always contains a leading space */ stralloc_append(kernel_params, kernel_config); |