Skip to content

utils/check-package: add checks for genimage*.cfg files

Giulio Benetti buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest46 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/46utils/check-package: add checks for genimage*.cfg files.checkpackageignore utils/check-package utils/checkpackagelib/lib_genimage.py +1 more+1083 -06 replies
2/46board/aarch64-efi: fix genimage-efi.cfg coding style.checkpackageignore board/aarch64-efi/genimage-efi.cfg+1 -10 replies
3/46board/amarula/vyasa: fix genimage.cfg coding style.checkpackageignore board/amarula/vyasa/genimage.cfg+1 -21 reply
4/46board/andes/ae350: fix genimage_sdcard.cfg coding style.checkpackageignore board/andes/ae350/genimage_sdcard.cfg+1 -10 replies
5/46board/arm/fvp-ebbr: fix genimage.cfg coding style.checkpackageignore board/arm/fvp-ebbr/genimage.cfg+1 -20 replies
6/46board/aspeed/ast2500-evb: fix genimage.cfg coding style.checkpackageignore board/aspeed/ast2500-evb/genimage.cfg+2 -20 replies
7/46board/aspeed/ast2600-evb: fix genimage.cfg coding style.checkpackageignore board/aspeed/ast2600-evb/genimage.cfg+1 -10 replies
8/46board/avnet/rzboard_v2l: fix style and set partition-type-uuid.checkpackageignore board/avnet/rzboard_v2l/genimage.cfg+3 -10 replies
9/46board/beagleboard/beagleplay: fix genimage.cfg coding style.checkpackageignore board/beagleboard/beagleplay/genimage.cfg+28 -290 replies
10/46board/beagleboard/beaglev_fire: fix style and set partition-type-uuid.checkpackageignore board/beagleboard/beaglev_fire/genimage.cfg+5 -40 replies
11/46board/bsh/imx8mn-bsh-smm-s2-pro: set partition-type-uuid in genimage.cfg.checkpackageignore board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg+1 -10 replies
12/46board/canaan/k210-soc: fix genimage.cfg coding style.checkpackageignore board/canaan/k210-soc/genimage.cfg+1 -10 replies
13/46board/compulab/iot-gate-imx8-ebbr: fix genimage.cfg coding style.checkpackageignore board/compulab/iot-gate-imx8-ebbr/genimage.cfg+1 -20 replies
14/46board/coolpi/coolpi-4b: fix style and set partition-type-uuid.checkpackageignore board/coolpi/coolpi-4b/genimage.cfg+3 -10 replies
15/46board/grinn/liteboard: fix genimage.cfg coding style.checkpackageignore board/grinn/liteboard/genimage.cfg+2 -30 replies
16/46board/khadas/vim3: fix genimage.cfg coding style.checkpackageignore board/khadas/vim3/genimage.cfg+1 -20 replies
17/46board/kontron/bl-imx8mm: set partition-type-uuid in genimage.cfg.checkpackageignore board/kontron/bl-imx8mm/genimage.cfg+1 -10 replies
18/46board/kontron/smarc-sal28: set partition-type-uuid in genimage.cfg.checkpackageignore board/kontron/smarc-sal28/genimage.cfg+1 -10 replies
19/46board/lego/ev3: fix genimage.cfg coding style.checkpackageignore board/lego/ev3/genimage.cfg+2 -20 replies
20/46board/loongarch64-efi: fix genimage-efi.cfg coding style.checkpackageignore board/loongarch64-efi/genimage-efi.cfg+1 -10 replies
21/46board/mender/x86_64: fix genimage-efi.cfg coding style.checkpackageignore board/mender/x86_64/genimage-efi.cfg+4 -30 replies
22/46board/microchip/mpfs_icicle: fix style and set partition-type-uuid.checkpackageignore board/microchip/mpfs_icicle/genimage.cfg+5 -30 replies
23/46board/microchip/sama7g5ek: fix genimage.cfg coding style.checkpackageignore board/microchip/sama7g5ek/genimage.cfg+1 -10 replies
24/46board/minnowboard: fix genimage.cfg coding style.checkpackageignore board/minnowboard/genimage.cfg+1 -10 replies
25/46board/octavo/osd32mp1-brk: set partition-type-uuid in genimage.cfg.checkpackageignore board/octavo/osd32mp1-brk/genimage.cfg+4 -10 replies
26/46board/octavo/osd32mp1-red: set partition-type-uuid in genimage.cfg.checkpackageignore board/octavo/osd32mp1-red/genimage.cfg+4 -10 replies
27/46board/olimex/stmp1_olinuxino: set partition-type-uuid in genimage.cfg.checkpackageignore board/olimex/stmp1_olinuxino/genimage.cfg+4 -10 replies
28/46board/orangepi/common: set partition-type-uuid in genimage.cfg.checkpackageignore board/orangepi/common/genimage.cfg+1 -10 replies
29/46board/orangepi/orangepi-5-plus: fix genimage.cfg coding style.checkpackageignore board/orangepi/orangepi-5-plus/genimage.cfg+1 -20 replies
30/46board/pc: fix genimage-efi.cfg coding style.checkpackageignore board/pc/genimage-efi.cfg+1 -20 replies
31/46board/pine64/rockpro64-ebbr: fix genimage.cfg coding style.checkpackageignore board/pine64/rockpro64-ebbr/genimage.cfg+2 -30 replies
32/46board/pine64/rockpro64: fix style and set partition-type-uuid.checkpackageignore board/pine64/rockpro64/genimage.cfg+3 -20 replies
33/46board/pine64/star64: fix style and set partition-type-uuid.checkpackageignore board/pine64/star64/genimage.cfg+18 -180 replies
34/46board/qemu/aarch64-ebbr: fix genimage.cfg coding style.checkpackageignore board/qemu/aarch64-ebbr/genimage.cfg+1 -20 replies
35/46board/qemu/aarch64-sbsa: fix genimage.cfg coding style.checkpackageignore board/qemu/aarch64-sbsa/genimage.cfg+1 -20 replies
36/46board/qemu/arm-ebbr: fix genimage.cfg coding style.checkpackageignore board/qemu/arm-ebbr/genimage.cfg+1 -20 replies
37/46board/qemu/loongarch64-virt-efi: fix genimage.cfg coding style.checkpackageignore board/qemu/loongarch64-virt-efi/genimage.cfg+1 -10 replies
38/46board/qemu/riscv64-virt-efi: fix genimage.cfg coding style.checkpackageignore board/qemu/riscv64-virt-efi/genimage.cfg+1 -20 replies
39/46board/radxa/rock5b: fix genimage.cfg coding style.checkpackageignore board/radxa/rock5b/genimage.cfg+1 -20 replies
40/46board/seeed/stm32mp157c-odyssey: set partition-type-uuid in genimage.cfg.checkpackageignore board/seeed/stm32mp157c-odyssey/genimage.cfg+4 -10 replies
41/46board/sifive/common: fix genimage_sdcard.cfg coding style.checkpackageignore board/sifive/common/genimage_sdcard.cfg+1 -20 replies
42/46board/sipeed/licheepi_nano: fix genimage.cfg coding style.checkpackageignore board/sipeed/licheepi_nano/genimage.cfg+3 -31 reply
43/46board/ti/am574x-idk: fix genimage.cfg coding style.checkpackageignore board/ti/am574x-idk/genimage.cfg+1 -20 replies
44/46board/visionfive2: fix genimage.cfg coding style.checkpackageignore board/visionfive2/genimage.cfg+1 -21 reply
45/46support/testing: test_grub: fix genimage-aarch64-efi.cfg coding style.checkpackageignore support/testing/tests/boot/test_grub/genimage-aarch64-efi.cfg+2 -30 replies
46/46support/testing: test_xen: fix genimage.cfg coding style.checkpackageignore support/testing/tests/package/test_xen/aarch64/genimage.cfg support/testing/tests/package/test_xen/arm/genimage.cfg+2 -40 replies

Reviews trailers per patch

3 of 46 patches have a Reviewed-by or Acked-by.

PatchMichael TrimarchiFengwei Tan
1/46
2/46
3/46R-b
4/46
5/46
6/46
7/46
8/46
9/46
10/46
11/46
12/46
13/46
14/46
15/46
16/46
17/46
18/46
19/46
20/46
21/46
22/46
23/46
24/46
25/46
26/46
27/46
28/46
29/46
30/46
31/46
32/46
33/46
34/46
35/46
36/46
37/46
38/46
39/46
40/46
41/46
42/46R-b
43/46
44/46R-b T-b
45/46
46/46

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Buildroot] [PATCH 00/46] utils/check-package: add checks for genimage*.cfg files

Hello,

this series adds check-package support for the genimage*.cfg files, as Arnout requested[1], based on the "The genimage.cfg file" section of the manual.

Patch 1 adds the checks with their unit tests, and lists the existing files that do not comply in .checkpackageignore. Each of the following patches fixes a single board (or runtime test), and drops its entries from .checkpackageignore. At the end of the series no genimage*.cfg file is left there. Patches 2 to 46 have to be applied in order, since they all modify .checkpackageignore.

The generated images are not supposed to change. I've verified it by running genimage 19 with stub input files before and after the series:
the 43 disk images are the same, except for the random GUIDs and the related CRCs. The other 3 files (aspeed ast2500-evb and ast2600-evb, licheepi_nano) describe flash images, so there only the content of the files has been compared, ignoring white spaces and comments. No board has been boot tested.

Some notes:
- the GPT partitions lacking partition-type-uuid are set to L, since this is what genimage uses by default. This is not the most accurate type for bootloader, FAT and root partitions, but a better one would modify the images, so it can be done later board by board
- board/pc/genimage-efi.cfg now uses root-x86, because this is the shortcut of the GUID that was already there
- the shortcut table comes from genimage 19, while Buildroot has version 20
- genimage.cfg.in and genimage.cfg.template* are not checked, since they contain placeholders

[1]: https://lore.kernel.org/buildroot/[email protected]/

Best regards
Giulio Benetti

Giulio Benetti (46):
utils/check-package: add checks for genimage*.cfg files board/aarch64-efi: fix genimage-efi.cfg coding style board/amarula/vyasa: fix genimage.cfg coding style board/andes/ae350: fix genimage_sdcard.cfg coding style board/arm/fvp-ebbr: fix genimage.cfg coding style board/aspeed/ast2500-evb: fix genimage.cfg coding style board/aspeed/ast2600-evb: fix genimage.cfg coding style board/avnet/rzboard_v2l: fix style and set partition-type-uuid board/beagleboard/beagleplay: fix genimage.cfg coding style board/beagleboard/beaglev_fire: fix style and set partition-type-uuid board/bsh/imx8mn-bsh-smm-s2-pro: set partition-type-uuid in
genimage.cfg
board/canaan/k210-soc: fix genimage.cfg coding style board/compulab/iot-gate-imx8-ebbr: fix genimage.cfg coding style board/coolpi/coolpi-4b: fix style and set partition-type-uuid board/grinn/liteboard: fix genimage.cfg coding style board/khadas/vim3: fix genimage.cfg coding style board/kontron/bl-imx8mm: set partition-type-uuid in genimage.cfg board/kontron/smarc-sal28: set partition-type-uuid in genimage.cfg board/lego/ev3: fix genimage.cfg coding style board/loongarch64-efi: fix genimage-efi.cfg coding style board/mender/x86_64: fix genimage-efi.cfg coding style board/microchip/mpfs_icicle: fix style and set partition-type-uuid board/microchip/sama7g5ek: fix genimage.cfg coding style board/minnowboard: fix genimage.cfg coding style board/octavo/osd32mp1-brk: set partition-type-uuid in genimage.cfg board/octavo/osd32mp1-red: set partition-type-uuid in genimage.cfg board/olimex/stmp1_olinuxino: set partition-type-uuid in genimage.cfg board/orangepi/common: set partition-type-uuid in genimage.cfg board/orangepi/orangepi-5-plus: fix genimage.cfg coding style board/pc: fix genimage-efi.cfg coding style board/pine64/rockpro64-ebbr: fix genimage.cfg coding style board/pine64/rockpro64: fix style and set partition-type-uuid board/pine64/star64: fix style and set partition-type-uuid board/qemu/aarch64-ebbr: fix genimage.cfg coding style board/qemu/aarch64-sbsa: fix genimage.cfg coding style board/qemu/arm-ebbr: fix genimage.cfg coding style board/qemu/loongarch64-virt-efi: fix genimage.cfg coding style board/qemu/riscv64-virt-efi: fix genimage.cfg coding style board/radxa/rock5b: fix genimage.cfg coding style board/seeed/stm32mp157c-odyssey: set partition-type-uuid in
genimage.cfg
board/sifive/common: fix genimage_sdcard.cfg coding style board/sipeed/licheepi_nano: fix genimage.cfg coding style board/ti/am574x-idk: fix genimage.cfg coding style board/visionfive2: fix genimage.cfg coding style support/testing: test_grub: fix genimage-aarch64-efi.cfg coding style support/testing: test_xen: fix genimage.cfg coding style

 board/aarch64-efi/genimage-efi.cfg            |   1 +
 board/amarula/vyasa/genimage.cfg              |   2 +-
 board/andes/ae350/genimage_sdcard.cfg         |   1 +
 board/arm/fvp-ebbr/genimage.cfg               |   2 +-
 board/aspeed/ast2500-evb/genimage.cfg         |   3 +-
 board/aspeed/ast2600-evb/genimage.cfg         |   1 +
 board/avnet/rzboard_v2l/genimage.cfg          |   3 +
 board/beagleboard/beagleplay/genimage.cfg     |  56 +-
 board/beagleboard/beaglev_fire/genimage.cfg   |   8 +-
 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg  |   1 +
 board/canaan/k210-soc/genimage.cfg            |   1 +
 .../compulab/iot-gate-imx8-ebbr/genimage.cfg  |   2 +-
 board/coolpi/coolpi-4b/genimage.cfg           |   3 +
 board/grinn/liteboard/genimage.cfg            |   4 +-
 board/khadas/vim3/genimage.cfg                |   2 +-
 board/kontron/bl-imx8mm/genimage.cfg          |   1 +
 board/kontron/smarc-sal28/genimage.cfg        |   1 +
 board/lego/ev3/genimage.cfg                   |   3 +-
 board/loongarch64-efi/genimage-efi.cfg        |   1 +
 board/mender/x86_64/genimage-efi.cfg          |   6 +-
 board/microchip/mpfs_icicle/genimage.cfg      |   7 +-
 board/microchip/sama7g5ek/genimage.cfg        |   1 +
 board/minnowboard/genimage.cfg                |   1 +
 board/octavo/osd32mp1-brk/genimage.cfg        |   4 +
 board/octavo/osd32mp1-red/genimage.cfg        |   4 +
 board/olimex/stmp1_olinuxino/genimage.cfg     |   4 +
 board/orangepi/common/genimage.cfg            |   1 +
 board/orangepi/orangepi-5-plus/genimage.cfg   |   2 +-
 board/pc/genimage-efi.cfg                     |   2 +-
 board/pine64/rockpro64-ebbr/genimage.cfg      |   4 +-
 board/pine64/rockpro64/genimage.cfg           |   4 +-
 board/pine64/star64/genimage.cfg              |  35 +-
 board/qemu/aarch64-ebbr/genimage.cfg          |   2 +-
 board/qemu/aarch64-sbsa/genimage.cfg          |   2 +-
 board/qemu/arm-ebbr/genimage.cfg              |   2 +-
 board/qemu/loongarch64-virt-efi/genimage.cfg  |   1 +
 board/qemu/riscv64-virt-efi/genimage.cfg      |   2 +-
 board/radxa/rock5b/genimage.cfg               |   2 +-
 board/seeed/stm32mp157c-odyssey/genimage.cfg  |   4 +
 board/sifive/common/genimage_sdcard.cfg       |   2 +-
 board/sipeed/licheepi_nano/genimage.cfg       |   5 +-
 board/ti/am574x-idk/genimage.cfg              |   2 +-
 board/visionfive2/genimage.cfg                |   2 +-
 .../boot/test_grub/genimage-aarch64-efi.cfg   |   4 +-
 .../package/test_xen/aarch64/genimage.cfg     |   2 +-
 .../tests/package/test_xen/arm/genimage.cfg   |   2 +-
 utils/check-package                           |   7 +
 utils/checkpackagelib/lib_genimage.py         | 407 ++++++++++++
 utils/checkpackagelib/test_lib_genimage.py    | 623 ++++++++++++++++++
 49 files changed, 1163 insertions(+), 79 deletions(-)
 create mode 100644 utils/checkpackagelib/lib_genimage.py
 create mode 100644 utils/checkpackagelib/test_lib_genimage.py
Signature · 6 lines
2.47.3

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