build: small build system changes
Subsystems (2)
cover build: small build system changes
John Snow (3):
build: remove vestigial CONFIG_SGA
build: update CONFIG_PVPANIC
build: Add "-d keeprsp" to Ninja flags
Makefile | 2 +- configs/devices/i386-softmmu/default.mak | 6 ++++-- tests/qtest/meson.build | 1 - 3 files changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.56.0
PATCH 1/3 build: remove vestigial CONFIG_SGA
This configuration knob no longer exists as CONFIG_SGA was removed quite some time ago. Remove it from our sample config files.
--- configs/devices/i386-softmmu/default.mak | 1 - tests/qtest/meson.build | 1 - 2 files changed, 2 deletions(-)
configs/devices/i386-softmmu/default.mak +0 -1
@@ -17,7 +17,6 @@ #CONFIG_PVPANIC=n #CONFIG_QXL=n #CONFIG_SEV=n -#CONFIG_SGA=n #CONFIG_TDX=n #CONFIG_TEST_DEVICES=n #CONFIG_TPM_CRB=n
tests/qtest/meson.build +0 -1
@@ -74,7 +74,6 @@ qtests_i386 = \ (config_all_devices.has_key('CONFIG_I440FX') ? ['numa-test'] : []) + \ (config_all_devices.has_key('CONFIG_I440FX') ? ['test-x86-cpuid-compat'] : []) + \ (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \ - (config_all_devices.has_key('CONFIG_SGA') ? ['boot-serial-test'] : []) + \ (config_all_devices.has_key('CONFIG_ISA_IPMI_KCS') ? ['ipmi-kcs-test'] : []) + \ (host_os == 'linux' and \ config_all_devices.has_key('CONFIG_ISA_IPMI_BT') and
Signature · 1 line
2.56.0
Re: [PATCH 1/3] build: remove vestigial CONFIG_SGA
Quoted 26 lines · John Snow
This configuration knob no longer exists as
CONFIG_SGAwas removed quite some time ago. Remove it from our sample config files.Signed-off-by John Snow <[email protected]>--- configs/devices/i386-softmmu/default.mak | 1 - tests/qtest/meson.build | 1 - 2 files changed, 2 deletions(-)configs/devices/i386-softmmu/default.mak +0
-1@@ -17,7 +17,6 @@ #CONFIG_PVPANIC=n #CONFIG_QXL=n #CONFIG_SEV=n -#CONFIG_SGA=n #CONFIG_TDX=n #CONFIG_TEST_DEVICES=n #CONFIG_TPM_CRB=ntests/qtest/meson.build +0
-0
tests/qtest/meson.build qtests_i386 = \ · line 77
Quoted 4 lines
tests/qtest/meson.build +0
-1@@ -74,7 +74,6 @@ qtests_i386 = \ (config_all_devices.has_key('CONFIG_I440FX') ? ['numa-test'] : []) + \ (config_all_devices.has_key('CONFIG_I440FX') ? ['test-x86-cpuid-compat'] : []) + \ (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \ - (config_all_devices.has_key('CONFIG_SGA') ? ['boot-serial-test'] : []) + \
boot-serial-test.c still exists, and IIRC will probably still work, so we should add it unconditionally instead.
Quoted 7 lines
tests/qtest/meson.build +0
-0(config_all_devices.has_key('CONFIG_ISA_IPMI_KCS') ? ['ipmi-kcs-test'] : []) + \ (host_os == 'linux' and \ config_all_devices.has_key('CONFIG_ISA_IPMI_BT') andSignature · 1 line
2.56.0
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
PATCH 2/3 build: update CONFIG_PVPANIC
In reply to John SnowThe symbol for CONFIG_PVPANIC has been changed, update the dummy config file to reference the new names.
--- configs/devices/i386-softmmu/default.mak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
configs/devices/i386-softmmu/default.mak +4 -1
@@ -14,7 +14,10 @@ #CONFIG_PCI_IPMI_BT=n #CONFIG_IPMI_SSIF=n #CONFIG_PCI_DEVICES=n -#CONFIG_PVPANIC=n +#CONFIG_PVPANIC_COMMON=n +#CONFIG_PVPANIC_ISA=n +#CONFIG_PVPANIC_PCI=n +#CONFIG_PVPANIC_MMIO=n #CONFIG_QXL=n #CONFIG_SEV=n #CONFIG_TDX=n
Signature · 1 line
2.56.0
Re: [PATCH 2/3] build: update CONFIG_PVPANIC
Quoted 7 lines · John Snow
The symbol for
CONFIG_PVPANIChas been changed, update the dummy config file to reference the new names.Signed-off-by John Snow <[email protected]>--- configs/devices/i386-softmmu/default.mak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
PATCH 3/3 build: Add "-d keeprsp" to Ninja flags
In reply to John SnowWhen auditing compilation, it is helpful to be able to see all of the object files passed during the linking step, which ninja can obscure behind temporary .rsp "response files". Normally, these are deleted immediately afterwards - but for debugging purposes, it is helpful to leave them behind to understand what went wrong.
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -151,7 +151,7 @@ NINJAFLAGS = \ $(filter-out -j, \ $(or $(filter -l% -j%, $(MAKEFLAGS)), \ $(if $(filter --jobserver-auth=%, $(MAKEFLAGS)),, -j1))) \ - -d keepdepfile + -d keepdepfile $(if $(DEBUG),-d keeprsp) ninja-cmd-goals += $(or $(MAKECMDGOALS), all) ninja-cmd-goals += $(foreach g, $(MAKECMDGOALS), $(.ninja-goals.$g))
Signature · 1 line
2.56.0
Re: [PATCH 3/3] build: Add "-d keeprsp" to Ninja flags
Quoted 10 lines · John Snow
When auditing compilation, it is helpful to be able to see all of the object files passed during the linking step, which ninja can obscure behind temporary .rsp "response files". Normally, these are deleted immediately afterwards - but for debugging purposes, it is helpful to leave them behind to understand what went wrong.
Signed-off-by John Snow <[email protected]>--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile NINJAFLAGS = \ · line 156
Quoted 12 lines
Makefile +1
-1@@ -151,7 +151,7 @@ NINJAFLAGS = \ $(filter-out -j, \ $(or $(filter -l% -j%, $(MAKEFLAGS)), \ $(if $(filter --jobserver-auth=%, $(MAKEFLAGS)),, -j1))) \ - -d keepdepfile + -d keepdepfile $(if $(DEBUG),-d keeprsp) ninja-cmd-goals += $(or $(MAKECMDGOALS), all) ninja-cmd-goals += $(foreach g, $(MAKECMDGOALS), $(.ninja-goals.$g))
Alternatively we hardcode our makefile to raise meson's annoyingly pessimistic defaults
export MESON_RSP_THRESHOLD=126976
provided we detect we're not running a build inside Wine, or just blindly assume no one is quite that crazy :-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
Re: [PATCH 3/3] build: Add "-d keeprsp" to Ninja flags
Quoted 8 lines · Daniel P. Berrangé
Quoted 6 lines · John Snow
When auditing compilation, it is helpful to be able to see all of the object files passed during the linking step, which ninja can obscure behind temporary .rsp "response files". Normally, these are deleted immediately afterwards - but for debugging purposes, it is helpful to leave them behind to understand what went wrong.
Quoted 7 lines
Quoted 4 lines
Signed-off-by John Snow <[email protected]>--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Reviewed-by Daniel P. Berrangé <[email protected]>
Thanks!
Quoted 16 lines
Makefile NINJAFLAGS = \ · line 156
Quoted 12 lines
Makefile +1
-1@@ -151,7 +151,7 @@ NINJAFLAGS = \ $(filter-out -j, \ $(or $(filter -l% -j%, $(MAKEFLAGS)), \ $(if $(filter --jobserver-auth=%, $(MAKEFLAGS)),, -j1))) \ - -d keepdepfile + -d keepdepfile $(if $(DEBUG),-d keeprsp) ninja-cmd-goals += $(or $(MAKECMDGOALS), all) ninja-cmd-goals += $(foreach g, $(MAKECMDGOALS), $(.ninja-goals.$g))Alternatively we hardcode our makefile to raise meson's annoyingly pessimistic defaults
Quoted 4 lines
export MESON_RSP_THRESHOLD=126976
provided we detect we're not running a build inside Wine, or just blindly assume no one is quite that crazy :-)
I'll leave this to someone braver than me :')
Quoted 8 lines
With regards,
Daniel
--|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
Quoted 8 lines · John Snow
John Snow (3):
build: remove vestigialCONFIG_SGA
build: updateCONFIG_PVPANIC
build: Add "-d keeprsp" to Ninja flags
Quoted 8 lines
Makefile | 2 +- configs/devices/i386-softmmu/default.mak | 6 ++++-- tests/qtest/meson.build | 1 - 3 files changed, 5 insertions(+), 4 deletions(-)--
2.56.0
Hi, I think we want these for 11.2 if possible, though I suppose it's not absolutely crucial.