Commit f73a5f59 authored by Franco Lanza's avatar Franco Lanza

force smp on armel to 1

parent e8fedbfb
......@@ -329,7 +329,12 @@ static int fork_qemu(const char* hda, const char* hdb, const struct pbuilderconf
argv[argc++]=mem;
if (pc->smp) {
argv[argc++]="-smp";
argv[argc++]=strdupa(pc->smp);
// versatilepb doesn't support more than 1 cpu
if(!strcmp(machine, "versatilepb")) {
argv[argc++]=strdupa(pc->smp);
} else {
argv[argc++]="1";
}
}
if (kernel_image && strcmp(kernel_image, ""))
{
......@@ -345,8 +350,11 @@ static int fork_qemu(const char* hda, const char* hdb, const struct pbuilderconf
argv[argc++]=hda_command;
argv[argc++]="-drive";
argv[argc++]=hdb_command;
argv[argc++]="-append";
argv[argc++]=append_command;
if (kernel_image && strcmp(kernel_image, ""))
{
argv[argc++]="-append";
argv[argc++]=append_command;
}
argv[argc++]="-serial";
argv[argc++]="stdio";
argv[argc++]="-net";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment