* [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV
@ 2024-08-20 6:45 Yann E. MORIN
2024-08-20 21:22 ` Thomas Petazzoni via buildroot
2024-09-18 11:11 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2024-08-20 6:45 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Yann E. MORIN, Thomas Petazzoni
Commit 2f260084d577 (utils/genrandconfig: remove support for toolchain
CSV) kept the --no-toolchains-csv option, but in the rework forgot to
keep it as a bool, while argparse default is to expect a string.
Rather than re-introduce the action="store_true" which implies the
argument is a bool, explicit make it a bool.
Fixes: 2f260084d5771728f3340ff6a86a23391133a635
Reported-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
utils/genrandconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 8e60fd3f9e..ae1f0f85de 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -611,7 +611,7 @@ if __name__ == '__main__':
help="Buildroot directory (relative to current directory)",
type=str, default='.')
parser.add_argument("--toolchains-csv", help="Legacy, unused", type=str)
- parser.add_argument("--no-toolchains-csv", help="Legacy, unused")
+ parser.add_argument("--no-toolchains-csv", help="Legacy, unused", type=bool)
args = parser.parse_args()
--
2.46.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV
2024-08-20 6:45 [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV Yann E. MORIN
@ 2024-08-20 21:22 ` Thomas Petazzoni via buildroot
2024-09-18 11:11 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-20 21:22 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: James Hilliard, buildroot
On Tue, 20 Aug 2024 08:45:31 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> Commit 2f260084d577 (utils/genrandconfig: remove support for toolchain
> CSV) kept the --no-toolchains-csv option, but in the rework forgot to
> keep it as a bool, while argparse default is to expect a string.
>
> Rather than re-introduce the action="store_true" which implies the
> argument is a bool, explicit make it a bool.
>
> Fixes: 2f260084d5771728f3340ff6a86a23391133a635
>
> Reported-by: James Hilliard <james.hilliard1@gmail.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> utils/genrandconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV
2024-08-20 6:45 [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV Yann E. MORIN
2024-08-20 21:22 ` Thomas Petazzoni via buildroot
@ 2024-09-18 11:11 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-09-18 11:11 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: James Hilliard, Thomas Petazzoni, buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> Commit 2f260084d577 (utils/genrandconfig: remove support for toolchain
> CSV) kept the --no-toolchains-csv option, but in the rework forgot to
> keep it as a bool, while argparse default is to expect a string.
> Rather than re-introduce the action="store_true" which implies the
> argument is a bool, explicit make it a bool.
> Fixes: 2f260084d5771728f3340ff6a86a23391133a635
> Reported-by: James Hilliard <james.hilliard1@gmail.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Committed to 2024.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-18 11:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20 6:45 [Buildroot] [PATCH] utils/genrandconfig: fix fallout of dropping toolchain CSV Yann E. MORIN
2024-08-20 21:22 ` Thomas Petazzoni via buildroot
2024-09-18 11:11 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox