From caedc737d27dd697641cb75ef6c5c27562c8044a Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Wed, 20 Jun 2012 20:46:22 +0200 Subject: PPC: e500: allow users to set the /compatible property via -machine Device trees usually have a node /compatible, which indicate which machine type we're looking at. For quick prototyping, it can be very useful to change the contents of that node via the command line. Thus, introduce a new option to -machine called dt_compatible, which when set changes the /compatible contents to its value. Signed-off-by: Alexander Graf --- qemu-config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index 2cd2726..5c3296b 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -591,6 +591,10 @@ static QemuOptsList qemu_machine_opts = { .name = "phandle_start", .type = QEMU_OPT_STRING, .help = "The first phandle ID we may generate dynamically", + }, { + .name = "dt_compatible", + .type = QEMU_OPT_STRING, + .help = "Overrides the \"compatible\" property of the dt root node", }, { /* End of list */ } }, -- cgit v1.1