* [Buildroot] [PATCH 1/1] utils/genrandconfig: add mxs-bootlets custom handling
@ 2022-08-24 22:14 Fabrice Fontaine
2022-09-06 20:01 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-08-24 22:14 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Add custom cases to make sure that a random configuration with an empty
git or tarball location for mxs-bootlets doesn't fail. It reverts to
BR2_TARGET_MXS_BOOTLETS_FREESCALE in that case.
Fixes:
- http://autobuild.buildroot.org/results/dcbeb73d152c79c18b1fa3bef3b4fa07635d7b36
- http://autobuild.buildroot.org/results/f61cf3fc58db9ded5ec42ebf4a9847584700698d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
utils/genrandconfig | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 54146a99de..7fd17239c5 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -543,6 +543,20 @@ def fixup_config(sysinfo, configfile):
if 'BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT=y\n' in configlines:
return False
+ if 'BR2_TARGET_MXS_BOOTLETS=y\n' in configlines and \
+ 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT=y\n' in configlines and \
+ 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL=""\n' in configlines:
+ configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT=y\n')
+ configlines.append('BR2_TARGET_MXS_BOOTLETS_FREESCALE=y\n')
+ configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL=""\n')
+
+ if 'BR2_TARGET_MXS_BOOTLETS=y\n' in configlines and \
+ 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL=y\n' in configlines and \
+ 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL=""\n' in configlines:
+ configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL=y\n')
+ configlines.append('BR2_TARGET_MXS_BOOTLETS_FREESCALE=y\n')
+ configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL=""\n')
+
if 'BR2_TARGET_OPENSBI=y\n' in configlines and \
'BR2_TARGET_OPENSBI_CUSTOM_GIT=y\n' in configlines and \
'BR2_TARGET_OPENSBI_CUSTOM_REPO_URL=""\n' in configlines:
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] utils/genrandconfig: add mxs-bootlets custom handling
2022-08-24 22:14 [Buildroot] [PATCH 1/1] utils/genrandconfig: add mxs-bootlets custom handling Fabrice Fontaine
@ 2022-09-06 20:01 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2022-09-06 20:01 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot
On 25/08/2022 00:14, Fabrice Fontaine wrote:
> Add custom cases to make sure that a random configuration with an empty
> git or tarball location for mxs-bootlets doesn't fail. It reverts to
> BR2_TARGET_MXS_BOOTLETS_FREESCALE in that case.
>
> Fixes:
> - http://autobuild.buildroot.org/results/dcbeb73d152c79c18b1fa3bef3b4fa07635d7b36
> - http://autobuild.buildroot.org/results/f61cf3fc58db9ded5ec42ebf4a9847584700698d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> utils/genrandconfig | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/utils/genrandconfig b/utils/genrandconfig
> index 54146a99de..7fd17239c5 100755
> --- a/utils/genrandconfig
> +++ b/utils/genrandconfig
> @@ -543,6 +543,20 @@ def fixup_config(sysinfo, configfile):
> if 'BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT=y\n' in configlines:
> return False
>
> + if 'BR2_TARGET_MXS_BOOTLETS=y\n' in configlines and \
> + 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT=y\n' in configlines and \
> + 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL=""\n' in configlines:
> + configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT=y\n')
> + configlines.append('BR2_TARGET_MXS_BOOTLETS_FREESCALE=y\n')
> + configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_GIT_URL=""\n')
> +
> + if 'BR2_TARGET_MXS_BOOTLETS=y\n' in configlines and \
> + 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL=y\n' in configlines and \
> + 'BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL=""\n' in configlines:
> + configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL=y\n')
> + configlines.append('BR2_TARGET_MXS_BOOTLETS_FREESCALE=y\n')
> + configlines.remove('BR2_TARGET_MXS_BOOTLETS_CUSTOM_TARBALL_URL=""\n')
> +
> if 'BR2_TARGET_OPENSBI=y\n' in configlines and \
> 'BR2_TARGET_OPENSBI_CUSTOM_GIT=y\n' in configlines and \
> 'BR2_TARGET_OPENSBI_CUSTOM_REPO_URL=""\n' in configlines:
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-06 20:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-24 22:14 [Buildroot] [PATCH 1/1] utils/genrandconfig: add mxs-bootlets custom handling Fabrice Fontaine
2022-09-06 20:01 ` Arnout Vandecappelle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.