Skip to content

Commit cfbec2f

Browse files
committed
Add qemu environment variable to dump device tree.
Use make DUMPDTB=1 qemu to dump the device tree. Signed-off-by: KieranMusser <59939188+KieranMusser@users.noreply.github.com>
1 parent da59198 commit cfbec2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/targets/riscv64/qemu-riscv64.mak

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# SPDX-License-Identifier: GPL-3.0-or-later
44

55
kernel-cflags += -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs_svpbmt_svinval_svnapot_sstc_sscofpmf_zifencei
6+
7+
ifdef DUMPDTS
8+
target-qemuflags = --machine virt,dumpdtb=qemu.dtb --cpu rva23s64 --smp 2 -m 1G --netdev user,id=net0 -device rtl8139,netdev=net0,bus=pcie.0
9+
else
610
target-qemuflags = --machine virt --cpu rva23s64 --smp 2 -m 1G --netdev user,id=net0 -device rtl8139,netdev=net0,bus=pcie.0
11+
endif
712

813
ifdef NETDUMP
914
target-qemuflags += -object filter-dump,id=net0,netdev=net0,file=net_dump.pcap

0 commit comments

Comments
 (0)