utils/check-package: add checks for genimage*.cfg files
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest46 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/46 | utils/check-package: add checks for genimage*.cfg files.checkpackageignore utils/ utils/ +1 more | +1083 | 6 replies | |
| 2/46 | board/aarch64-efi: fix genimage-efi.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 3/46 | board/amarula/vyasa: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 1 reply | |
| 4/46 | board/andes/ae350: fix genimage_sdcard.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 5/46 | board/arm/fvp-ebbr: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 6/46 | board/aspeed/ast2500-evb: fix genimage.cfg coding style.checkpackageignore board/ | +2 | 0 replies | |
| 7/46 | board/aspeed/ast2600-evb: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 8/46 | board/avnet/rzboard_v2l: fix style and set partition-type-uuid.checkpackageignore board/ | +3 | 0 replies | |
| 9/46 | board/beagleboard/beagleplay: fix genimage.cfg coding style.checkpackageignore board/ | +28 | 0 replies | |
| 10/46 | board/beagleboard/beaglev_fire: fix style and set partition-type-uuid.checkpackageignore board/ | +5 | 0 replies | |
| 11/46 | board/bsh/imx8mn-bsh-smm-s2-pro: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +1 | 0 replies | |
| 12/46 | board/canaan/k210-soc: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 13/46 | board/compulab/iot-gate-imx8-ebbr: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 14/46 | board/coolpi/coolpi-4b: fix style and set partition-type-uuid.checkpackageignore board/ | +3 | 0 replies | |
| 15/46 | board/grinn/liteboard: fix genimage.cfg coding style.checkpackageignore board/ | +2 | 0 replies | |
| 16/46 | board/khadas/vim3: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 17/46 | board/kontron/bl-imx8mm: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +1 | 0 replies | |
| 18/46 | board/kontron/smarc-sal28: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +1 | 0 replies | |
| 19/46 | board/lego/ev3: fix genimage.cfg coding style.checkpackageignore board/ | +2 | 0 replies | |
| 20/46 | board/loongarch64-efi: fix genimage-efi.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 21/46 | board/mender/x86_64: fix genimage-efi.cfg coding style.checkpackageignore board/ | +4 | 0 replies | |
| 22/46 | board/microchip/mpfs_icicle: fix style and set partition-type-uuid.checkpackageignore board/ | +5 | 0 replies | |
| 23/46 | board/microchip/sama7g5ek: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 24/46 | board/minnowboard: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 25/46 | board/octavo/osd32mp1-brk: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +4 | 0 replies | |
| 26/46 | board/octavo/osd32mp1-red: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +4 | 0 replies | |
| 27/46 | board/olimex/stmp1_olinuxino: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +4 | 0 replies | |
| 28/46 | board/orangepi/common: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +1 | 0 replies | |
| 29/46 | board/orangepi/orangepi-5-plus: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 30/46 | board/pc: fix genimage-efi.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 31/46 | board/pine64/rockpro64-ebbr: fix genimage.cfg coding style.checkpackageignore board/ | +2 | 0 replies | |
| 32/46 | board/pine64/rockpro64: fix style and set partition-type-uuid.checkpackageignore board/ | +3 | 0 replies | |
| 33/46 | board/pine64/star64: fix style and set partition-type-uuid.checkpackageignore board/ | +18 | 0 replies | |
| 34/46 | board/qemu/aarch64-ebbr: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 35/46 | board/qemu/aarch64-sbsa: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 36/46 | board/qemu/arm-ebbr: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 37/46 | board/qemu/loongarch64-virt-efi: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 38/46 | board/qemu/riscv64-virt-efi: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 39/46 | board/radxa/rock5b: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 40/46 | board/seeed/stm32mp157c-odyssey: set partition-type-uuid in genimage.cfg.checkpackageignore board/ | +4 | 0 replies | |
| 41/46 | board/sifive/common: fix genimage_sdcard.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 42/46 | board/sipeed/licheepi_nano: fix genimage.cfg coding style.checkpackageignore board/ | +3 | 1 reply | |
| 43/46 | board/ti/am574x-idk: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 0 replies | |
| 44/46 | board/visionfive2: fix genimage.cfg coding style.checkpackageignore board/ | +1 | 1 reply | |
| 45/46 | support/testing: test_grub: fix genimage-aarch64-efi.cfg coding style.checkpackageignore support/ | +2 | 0 replies | |
| 46/46 | support/testing: test_xen: fix genimage.cfg coding style.checkpackageignore support/ support/ | +2 | 0 replies |
Reviews trailers per patch
3 of 46 patches have a Reviewed-by or Acked-by.
| Patch | Michael Trimarchi | Fengwei Tan |
|---|---|---|
| 1/46 | ||
| 2/46 | ||
| 3/46 | R-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/46 | R-b | |
| 43/46 | ||
| 44/46 | R-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.
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