RFC buildsys: Do not use internal fdt library when asked for the system one
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | hw/mem/nvdimm: Use Kconfig 'imply' instead of 'depends on'default-configs/ hw/ hw/ +2 more | +3 | 9 replies | |
| 2/5 | Kconfig: Declare 'FDT' host symbolKconfig.host | +3 | 1 reply | |
| 3/5 | hw/ppc: Have pSeries depends on libfdt (via host Kconfig FDT symbol)hw/ hw/ | +3 | 5 replies | |
| 4/5 | hw/ppc/fdt: Drop dependency on libfdthw/ | +2 | 7 replies | |
| 5/5 | meson: Do not use internal fdt library if user asked for the system onemeson.build | +1 | 1 reply |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Thomas Huth |
|---|---|
| 1/5 | R-b |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/5] buildsys: Do not use internal fdt library when asked for the system one
Attempt to fix the issue reported by John when building with an outdated libfdt.
For now it changes:
hw/ppc/spapr_hcall.c: In function =E2=80=98h_update_dt=E2=80=99:
hw/ppc/spapr_hcall.c:1966:9: warning: implicit declaration of function =E2=
=80=98fdt_check_full=E2=80=99; did you mean =E2=80=98fdt_check_header=E2=80= =99? [-Wimplicit-function-declaration]
1966 | if (fdt_check_full(fdt, cb)) {
| ^~~~~~~~~~~~~~
| fdt_check_header hw/ppc/spapr_hcall.c:1966:9: warning: nested extern declaration of =E2=80=
=98fdt_check_full=E2=80=99 [-Wnested-externs]
[...]
/usr/bin/ld: libqemu-ppc64-softmmu.fa.p/hw_ppc_spapr_hcall.c.o: in function=
`h_update_dt':
hw/ppc/spapr_hcall.c:1966: undefined reference to `fdt_check_full'
collect2: error: ld returned 1 exit status
by:
qemu/meson.build:1352:4: ERROR: Running configure command failed. The following clauses were found for PSERIES
CONFIG_PSERIES=3Dy
config PSERIES depends on FDT
which is not better, but one step at a time...
John said: https://gitlab.com/qemu-project/qemu/-/issues/255#note_572421108
Distributions usually don't used embedded copies of libraries, so the configure script should require the correct minimum version.
Personally I'd rather allow users to build the most of QEMU with what is available, that is all possible machines except pSeries, making pSeries machine selected by default and deselected if not possible, with this change:
-- >8 --
default-configs/devi= renamed from default-configs/devices/ppc64-softmmu.mak +0 -0
ces/ppc64-softmmu.mak
index cca52665d90..62339661fca 100644
default-configs/devices/ppc64-softmmu.mak +0 -3
@@ -5,6 +5,3 @@ include ppc-softmmu.mak # For PowerNV CONFIG_POWERNV=3Dy - -# For pSeries -CONFIG_PSERIES=3Dy
hw/ppc/Kconfig +1 -0
@@ -1,5 +1,6 @@ config PSERIES bool + default y depends on FDT imply PCI_DEVICES imply TEST_DEVICES
---
But I suppose it breaks user expectations.
Thoughts?
Regards,
Phil.
Philippe Mathieu-Daud=C3=A9 (5):
hw/mem/nvdimm: Use Kconfig 'imply' instead of 'depends on'
Kconfig: Declare 'FDT' host symbol
hw/ppc: Have pSeries depends on libfdt (via host Kconfig FDT symbol) hw/ppc/fdt: Drop dependency on libfdt
meson: Do not use internal fdt library if user asked for the system
one
default-configs/devices/ppc64-softmmu.mak | 1 - meson.build | 2 +- Kconfig.host | 3 +++ hw/arm/Kconfig | 1 + hw/i386/Kconfig | 1 + hw/mem/Kconfig | 2 -- hw/ppc/Kconfig | 2 ++ hw/ppc/meson.build | 8 ++++---- 8 files changed, 12 insertions(+), 8 deletions(-)
--=20
2.26.3