diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-01-08 18:13:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-01-10 09:46:30 +0100 |
commit | 7218cfd2264faf299f7095a97892819294cd2be6 (patch) | |
tree | 916bbbc50f5973d059f6c96a8ebbf50335925081 /common | |
parent | b6dbb0920e1d13ea5703fb3a6b8b74934b184a52 (diff) | |
download | barebox-7218cfd2264faf299f7095a97892819294cd2be6.tar.gz barebox-7218cfd2264faf299f7095a97892819294cd2be6.tar.xz |
common: boards: qemu-virt: fix dtc warning
DTC complains about a Warning (chosen_node_is_root):
/fragment@1/__overlay__/chosen: chosen node must be at root node
As /chosen is already available in the device tree of all of:
- ARM 32-Bit QEMU Virt
- ARM 64-Bit QEMU Virt
- RISC-V 32-Bit QEMU Virt
- RISC-V 64-Bit QEMU Virt
Just reference that in a new fragment to silence the warning.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220108171356.586099-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/boards/qemu-virt/overlay-of-flash.dts | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/common/boards/qemu-virt/overlay-of-flash.dts b/common/boards/qemu-virt/overlay-of-flash.dts index a271a45510..b912cbec18 100644 --- a/common/boards/qemu-virt/overlay-of-flash.dts +++ b/common/boards/qemu-virt/overlay-of-flash.dts @@ -35,15 +35,20 @@ }; }; }; + fragment@1 { - target-path="/"; + target-path = "/chosen"; __overlay__ { - chosen { - environment { - compatible = "barebox,environment"; - device-path = ENV_DEVICE_PATH; - }; + environment { + compatible = "barebox,environment"; + device-path = ENV_DEVICE_PATH; }; + }; + }; + + fragment@2 { + target-path = "/"; + __overlay__ { aliases { state = "/state"; }; |