Skip to contentSkip to conversation

build: small build system changes

PATCH In review John Snow 2 participants 9 messages Nov 9 – Nov 16

Subsystems (2)
lore
Share & tools
lore

John Snow

author
#0 lore raw

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
author
#1 lore raw

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
index bc0479a7e0a..b935ee61332 100644
@@ -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
index ff4bf9528a7..3f1b5317fed 100644
@@ -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
#2 lore raw

Re: [PATCH 1/3] build: remove vestigial CONFIG_SGA

Quoted 26 lines · John Snow

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
index bc0479a7e0a..b935ee61332 100644
@@ -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 -0
index ff4bf9528a7..3f1b5317fed 100644

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') and
Signature · 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 :|
author
#3 lore raw

PATCH 2/3 build: update CONFIG_PVPANIC

In reply to John Snow

The 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
index b935ee61332..96716e30b9b 100644
@@ -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
Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] build: update CONFIG_PVPANIC

Quoted 7 lines · John Snow

The 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(-)

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 :|
author
#5 lore raw

PATCH 3/3 build: Add "-d keeprsp" to Ninja flags

In reply to 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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 54547a37b1a..9dda1b3c89a 100644
@@ -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
Reviewed-by on v1 3/3
#6 lore raw

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Makefile NINJAFLAGS = \ · line 156

Quoted 12 lines
Makefile +1 -1
index 54547a37b1a..9dda1b3c89a 100644
@@ -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 :|
author
#7 lore raw

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
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks!

Quoted 16 lines

Makefile NINJAFLAGS = \ · line 156

Quoted 12 lines
Makefile +1 -1
index 54547a37b1a..9dda1b3c89a 100644
@@ -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 :|
author
#8 lore raw
In reply to John Snow
Quoted 8 lines · John Snow

John Snow (3):
build: remove vestigial CONFIG_SGA
build: update CONFIG_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.