Skip to contentSkip to conversation

utils/genrandconfig: add refpolicy custom git handling

PATCH Applied Fabrice Fontaine 2 participants 2 messages Aug 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/genrandconfig: add refpolicy custom git handling

Add a custom case to make sure that a random configuration with an empty git location for refpolicy doesn't fail. It reverts to BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION in that case.

Fixes:
- http://autobuild.buildroot.org/results/98da07a1f9b88e2e8a028a55c8cf76c6ebc28304

---
 utils/genrandconfig | 7 +++++++
 1 file changed, 7 insertions(+)
utils/genrandconfig +7 -0
index 75757917c2..a56f03681a 100755
@@ -535,6 +535,13 @@ def fixup_config(sysinfo, configfile):
         if 'BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT=y\n' in configlines:
             return False
 
+   if 'BR2_PACKAGE_REFPOLICY=y\n' in configlines and \
+       'BR2_PACKAGE_REFPOLICY_CUSTOM_GIT=y\n' in configlines and \
+       'BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_URL=""\n' in configlines:
+        configlines.remove('BR2_PACKAGE_REFPOLICY_CUSTOM_GIT=y\n')
+        configlines.append('BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION=y\n')
+        configlines.remove('BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_URL=""\n')
+
     if 'BR2_PACKAGE_XVISOR=y\n' in configlines and \
        'BR2_PACKAGE_XVISOR_USE_CUSTOM_CONFIG=y\n' in configlines and \
        'BR2_PACKAGE_XVISOR_CUSTOM_CONFIG_FILE=""\n' in configlines:
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · On Mon, 8 Aug 2022 13:04:14 +0200 Fabrice Fontaine…

Add a custom case to make sure that a random configuration with an empty git location for refpolicy doesn't fail. It reverts to BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION in that case.

Fixes:
- http://autobuild.buildroot.org/results/98da07a1f9b88e2e8a028a55c8cf76c6ebc28304

---
 utils/genrandconfig | 7 +++++++
 1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot