summaryrefslogtreecommitdiff
path: root/qemu-config.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-03-02 11:56:38 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-03-02 11:56:38 +0000
commit412beee6a0349ce430920e2b2faa8009ced4a672 (patch)
treea45532e27595b703ab6e8106b52a0ba4ab4cb95e /qemu-config.c
parent41c1e2f54e6fc76dbc7047f1a95693f4d37b4623 (diff)
downloadqemu-412beee6a0349ce430920e2b2faa8009ced4a672.tar.gz
qemu-412beee6a0349ce430920e2b2faa8009ced4a672.tar.bz2
qemu-412beee6a0349ce430920e2b2faa8009ced4a672.zip
arm: add device tree support
If compiled with CONFIG_FDT, allow user to specify a device tree file using the -dtb argument. If the machine supports it then the dtb will be loaded into memory and passed to the kernel on boot. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca> [Peter Maydell: Use machine opt rather than global to pass dtb filename] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index 7d9da787c7..be84a0347c 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -578,6 +578,10 @@ static QemuOptsList qemu_machine_opts = {
.name = "append",
.type = QEMU_OPT_STRING,
.help = "Linux kernel command line",
+ }, {
+ .name = "dtb",
+ .type = QEMU_OPT_STRING,
+ .help = "Linux kernel device tree file",
},
{ /* End of list */ }
},