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
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 @@
     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 @@
     {
         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);