Skip to contentSkip to conversation

Find all non-existent config options by CI/CD

Buildroot CHERNIAEV ANDREI 2 participants 4 messages Oct 29, 2024

lore
Share & tools
lore
#0 lore raw

As [you know](https://gitlab.com/buildroot.org/buildroot/-/issues/57) buildroot contains some amount of non-existent BR2_ config options. I suggest to discuss should we make script to automatically detect all bad BR2_ and how to integrate it to CI/CD. In my point of view we also should detect legacy config options which are not marked as "legacy". Why I can't make such script? Because I don't know how to get a list of all non-legacy BR2_ config options

P.S. Let's use https://gitlab.com/buildroot.org/buildroot/-/issues to discuss about new feature!

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

Hello Andrei,

Quoted 7 lines · On Tue, 29 Oct 2024 15:38:26 +0900 CHERNIAEV ANDREI…

As [you
know](https://gitlab.com/buildroot.org/buildroot/-/issues/57) buildroot contains some amount of non-existent BR2_ config options. I suggest to discuss should we make script to automatically detect all bad BR2_ and how to integrate it to CI/CD. In my point of view we also should detect legacy config options which are not marked as "legacy". Why I can't make such script? Because I don't know how to get a list
of all non-legacy BR2_ config options

P.S. Let's
use https://gitlab.com/buildroot.org/buildroot/-/issues to discuss about new feature!

We already have such a check in check-package, but it checks Config.in and .mk files, not random documentation indeed.

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Why you call the officially part of buildroot documentation as "random documentation"? Is file "/support/kconfig/README.buildroot" or "buildroot/blob/master/board/qemu/x86/readme.txt" also "random documentation"? So if any file from buildroot repo is not Config.in or .mk then buildroot doesn't plan to check it?

-----Original Message-----
From: "Thomas Petazzoni via buildroot"<[email protected]>
To: "CHERNIAEV ANDREI"<[email protected]>;
Cc: <[email protected]>;
Sent: 2024-10-29 (화) 20:19:08 (GMT+09:00)
Subject: Re: [Buildroot] [Feature request] Find all non-existent config options by CI/CD

Hello Andrei,

Quoted 7 lines · On Tue, 29 Oct 2024 15:38:26 +0900 CHERNIAEV ANDREI…

As [you
know](https://gitlab.com/buildroot.org/buildroot/-/issues/57) buildroot contains some amount of non-existent BR2_ config options. I suggest to discuss should we make script to automatically detect all bad BR2_ and how to integrate it to CI/CD. In my point of view we also should detect legacy config options which are not marked as "legacy". Why I can't make such script? Because I don't know how to get a list
of all non-legacy BR2_ config options

P.S. Let's
use https://gitlab.com/buildroot.org/buildroot/-/issues to discuss about new feature!

We already have such a check in check-package, but it checks Config.in and .mk files, not random documentation indeed.

Best regards,

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list [email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Hello,

Quoted 5 lines · On Tue, 29 Oct 2024 20:57:07 +0900 CHERNIAEV ANDREI…

Why you call the officially part of buildroot documentation as "random documentation"? Is file "/support/kconfig/README.buildroot" or "buildroot/blob/master/board/qemu/x86/readme.txt" also "random documentation"? So if any file from buildroot repo is not Config.in or .mk then buildroot doesn't plan to check it?

For now, check-package is only capable of verifying the coding style of Config.in, .hash files, .mk files. At this point, I don't expect it to ever be capable of scanning/validating *.txt files, as their content can be quite arbitrary.

Of course, you are welcome to develop improvements in this area if you feel like it should be improved.

Best regards,

Thomas

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