Skip to content

Commit

Permalink
hw/loongarch/virt: Add separate file for fdt building
Browse files Browse the repository at this point in the history
Similiar with virt-acpi-build.c, file virt-fdt-build.c is added here.
And move functions relative with fdt table building to the file.

It is only code movement and there is no function change.

Signed-off-by: Bibo Mao <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
bibo-mao committed Feb 12, 2025
1 parent e733b47 commit 3754f98
Show file tree
Hide file tree
Showing 4 changed files with 539 additions and 525 deletions.
4 changes: 3 additions & 1 deletion hw/loongarch/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ loongarch_ss.add(files(
'boot.c',
))
common_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('fw_cfg.c'))
loongarch_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files('virt.c'))
loongarch_ss.add(when: 'CONFIG_LOONGARCH_VIRT', if_true: files(
'virt-fdt-build.c',
'virt.c'))
loongarch_ss.add(when: 'CONFIG_ACPI', if_true: files('virt-acpi-build.c'))

hw_arch += {'loongarch': loongarch_ss}
Loading

0 comments on commit 3754f98

Please sign in to comment.