Skip to content

[RFC] change uboot_help to build_matrix #6427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lrusak
Copy link
Member

@lrusak lrusak commented Apr 26, 2022

This is my attempt to have a way to identify all the possible build combinations within a single file. The uboot_helper was essential a list of all the combinations of builds (that used uboot). I've co-opted this to support all the projects/devices. I've also added the ability to get the arch for each device.

This changes the behaviour a little bit. I think it made the most sense but it may be worth looking into refactoring the helper yet again to make it suit our needs even more.

$ ./scripts/build_matrix Generic gbm arch
x86_64
$ ./scripts/build_matrix Rockchip RK3328 boards rock64 config
evb-rk3328_defconfig

I've mainly made this change as a good way to identify all the possible build combinations so we can automatically populate the CI builds. With this change we will be able to automatically (and logically) create jobs for each project/device. We may also want to have something similar for the add-on build combinations.

Other future improvements may be to add a list of possible archs (arm + aarch64) but not many devices support this.

Github makes the diff a bit weird so it's probably best to look at each commit individually. The big commit should be looked at with whitespace changes off 7a54ccc?w=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants