coreboot™: fast, flexible and reproducible Open Source firmware!
Reproducible Coreboot
Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is more information about reproducible builds on the Debian wiki and on https://reproducible-builds.org. These pages explain in more depth why this is useful, what common issues exist and which workarounds and solutions are known.
Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice (without payloads), with a few variations added and then those two ROMs are compared using diffoscope. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.
There is a weekly run jenkins job to test the master
branch of coreboot.git. The jenkins job is running reproducible_coreboot.sh in a Debian environment and this script is solely responsible for creating this page. Feel invited to join #reproducible-builds
(on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated - if you want to help, please start by looking at the ToDo list for coreboot, you might find something easy to contribute.
Thanks to IONOS for donating the virtual machines this is running on!
123 (100.0%) out of 123 built coreboot images were reproducible in our test setup ! These tests were last run on 2024-03-18 for version 24.02-243-g3e4b517265 using diffoscope 260.
variation | first build | second build |
---|---|---|
hostname | osuosl1-amd64 or osuosl2-amd64 | the other one |
domainname | is not yet varied between rebuilds of coreboot. | |
env CAPTURE_ENVIRONMENT | not set | CAPTURE_ENVIRONMENT="I capture the environment" |
env TZ | TZ="/usr/share/zoneinfo/Etc/GMT+12" | TZ="/usr/share/zoneinfo/Etc/GMT-14" |
env LANG | LANG="en_GB.UTF-8" | LANG="et_EE.UTF-8" |
env LC_ALL | not set | LC_ALL="et_EE.UTF-8" |
env PATH | PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:" | PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" |
env USER | is not yet varied between rebuilds of coreboot. | |
uid | is not yet varied between rebuilds of coreboot. | |
gid | is not yet varied between rebuilds of coreboot. | |
UTS namespace | is not yet varied between rebuilds of coreboot. | |
kernel version, modified using /usr/bin/linux64 --uname-2.6 | Linux 6.6.13+bpo-amd64 | Linux 2.6.66+bpo-amd64 |
umask | 0022 | 0002 |
CPU type | AMD Opteron(tm) Processor 4284 | same for both builds |
/bin/sh | is not yet varied between rebuilds of coreboot. | |
year, month, date | today (2024-03-18) | same for both builds (currently, work in progress) |
hour, minute | hour and minute will probably vary between two builds... | the future system actually runs 398 days, 6 hours and 23 minutes ahead... |
Filesystem | tmpfs | same for both builds (currently, this could be varied using disorderfs) |
everything else... | is likely the same. There will be more variations in the wild. |
- BYTEDANCE_BD_EGS (098880923403dbd72b516984bb4ac665c71cc612b81471437d77e54ed317d794, 64MiB) is reproducible.
- EMULATION_QEMU_AARCH64 (2439806e9d7c7addfdf33b43ea7e2f32a856e758f39401f51f2aab9e3f6d8e42, 16MiB) is reproducible.
- EMULATION_QEMU_AARCH64_FIT_SUPPORT_TIMESTAMPS (010d517fcd903760dce761189a747849969cbccf541156a607113775146b7959, 16MiB) is reproducible.
- EMULATION_QEMU_ARMV7 (ecb63eda999361a27e5885d841ea48b19ae43c3fc3e5207d2822ac50be1d0f07, 4MiB) is reproducible.
- EMULATION_QEMU_RISCV_RV32 (a64c6fba56e41da4c64e1e11e5d4a3b8c1378f332ab86ed3e6e47b081d3b33c4, 32MiB) is reproducible.
- EMULATION_QEMU_RISCV_RV64 (b2da0741bd5a65af63a38fa37c43ee675f73a4cd643b76b121d4c65e90bb259c, 32MiB) is reproducible.
- EMULATION_QEMU_RISCV_RV64_ (a236a4474a8f643ee0a032b90713d6015e41abf125e89e6506ace6d7b7015931, 32MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX (51de524b25ff3820dfeb1399722a1661e8ed1ecfb0b28318f4826a6f0ded4f40, 4MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX_ (51de524b25ff3820dfeb1399722a1661e8ed1ecfb0b28318f4826a6f0ded4f40, 4MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX_ASAN (850d2ce4c5cc4c9f8f918f67b977c58e81b22cdba5d2e417afef1aa4d519542a, 4MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX_DEBUG (daffb73a4c16a317370ef5685cd587eb622b262ecc9e3af4e2fd43c188221058, 4MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX_NOSERIAL (742ecb531a7f167a5cfef172fa294e7107ea21aa0e90df312747ae873e978f52, 4MiB) is reproducible.
- EMULATION_QEMU_X86_I440FX_X86_64 (84f853dd343929f501d5b4e000c27a6b2e3cab84de740c0aef6040e6d7b349fd, 4MiB) is reproducible.
- EMULATION_QEMU_X86_Q35 (57fbc3d75e60d172d5d9558505dd3659c1cee2306b90e2d3620c482a6e803e41, 16MiB) is reproducible.
- EMULATION_QEMU_X86_Q35_SMM_TSEG (60282010137fa325dc7013224ccd3bc0a3b32d876505702b6426a17d933182e4, 16MiB) is reproducible.
- EMULATION_SPIKE_RISCV (cd0f04b71bf1dd68269816e19aae9c052d080a58d91914f2a0966a927f1f6c16, 4MiB) is reproducible.
- EXAMPLE_MIN86 (5e0bb2310a6cc058bd91fda99e66c60ddbf1ccbd9c81c436095106f0517670ba, 256KiB) is reproducible.
- GOOGLE_ASURADA (a8029dae5a282bd6d4278a9525678ee0d8567f27190577b66ea6c424a44a1a9e, 8MiB) is reproducible.
- GOOGLE_BOB (098803bf9389b41038fb2e3e8c88e5a29b09b0e78441ed202fd98fc25dc63b05, 8MiB) is reproducible.
- GOOGLE_BUBS (730d261218cae66d2fabc3ee619688a981e5a86c5c75028b27e7a21de24fac74, 8MiB) is reproducible.
- GOOGLE_BURNET (6ca4f316b42c37ea67e84061c1f6f00f56c3bef3957ecb286f5fb7dccbfcf873, 8MiB) is reproducible.
- GOOGLE_CERISE (0d1319d802285b15618b60e23c4bfd8a46f6dbbce2f30617b8fa2568e2acabdc, 8MiB) is reproducible.
- GOOGLE_CHERRY (508641159afe89a12d141bfa6a4fd0ee297e322a56790e81ba0f527146b389d0, 8MiB) is reproducible.
- GOOGLE_CHINCHOU (8a8a57e0f305752501073485aea2aedfeb8cc1ed461dddaac7718994b72df6f5, 8MiB) is reproducible.
- GOOGLE_CIRI (6acf5df4d82ee8d3fd7706898ebfe48c9028057b0d8f0bfc2f20942882d5b9d0, 8MiB) is reproducible.
- GOOGLE_COACHZ (ed6c06ab83e65e83f8547d396e69bb116566d35c2a75ac20694b62ea9a3c2fad, 8MiB) is reproducible.
- GOOGLE_COZMO (de55f9d8a90971a0b826665358d5efdcf533c04d683874ef1849f362100dd6a3, 8MiB) is reproducible.
- GOOGLE_DAISY (5751c2e129d473e94a20f49d860987bf8154572f66d992fe8d75d3a3068c34e8, 4MiB) is reproducible.
- GOOGLE_DAMU (068fa7c24d8a7b1d44118a993f4f12970fc3d3b8254249e30004a7fdbbfe8e9a, 8MiB) is reproducible.
- GOOGLE_DEKU (d7f1583eace8feb25c841b1295e482dcbc07dd3ecd8481ff9fc8f3fa4b5b4cff, 32MiB) is reproducible.
- GOOGLE_DEKU4ES (81e184020f6bc735eebe0872f10bca5a2eb371faea76f45b7216155b0c977eed, 32MiB) is reproducible.
- GOOGLE_DOJO (01b0854b7fa39ac4e698d7863792e918d28de22474b5c1046ed672006a11ae1d, 8MiB) is reproducible.
- GOOGLE_ELM (c8304215184921b171f6bb32ea1e751c8742e0db5c4a6192117a50223f1eaac0, 4MiB) is reproducible.
- GOOGLE_ESCHE (b97c50160b1f29f6dc01386e046911527c9a00b41cb458c6fb5431e4c747ac5b, 8MiB) is reproducible.
- GOOGLE_FENNEL (50f8491471d4e1b6bf5324ee6d43083cb5803ec2472bfc7ef421b850f9d03cfb, 8MiB) is reproducible.
- GOOGLE_FLAPJACK (fcd3b623a00d300877503d9b396ee648b31b2986e7ee7b319bb4b5721e8200ed, 8MiB) is reproducible.
- GOOGLE_FOSTER (44fa840f9fc7fa287f81b431708a73a07423504e244a0217b42da3d92bca72c6, 4MiB) is reproducible.
- GOOGLE_GALE (dbb2717e8e779147893a5c1a69bac424710ce77be3a45076c9ce9238e966b6ed, 8MiB) is reproducible.
- GOOGLE_GELARSHIE (065fb521ff8b2bf33aff47b4a8fa667e8b2207dfa61f7bb463cf17d6cb228462, 8MiB) is reproducible.
- GOOGLE_GERALT (c4e37ad5f9db2a2e5a3a3786181caaab71b77942fda3661ea2e42609143e4af8, 8MiB) is reproducible.
- GOOGLE_GRU (4a7f7744a8c32901c61fd97b9642c1711a86f6a9d6303fe8fdd8e1b594fb1786, 8MiB) is reproducible.
- GOOGLE_HANA (34ccf6f71791005d732633335b4c1c1c14199f3e6ce7da31e6ff0f1b4fcb6981, 4MiB) is reproducible.
- GOOGLE_HAYATO (c41966fd5dac99e3a30837d7203f362b4ce02b574a9c258dde265334d7daa45f, 8MiB) is reproducible.
- GOOGLE_HOMESTAR (5b6f14907a50953eb9203e4842ef18ec41f831068b8599924faa6a1ee25cfd67, 8MiB) is reproducible.
- GOOGLE_JACUZZI (348843402d076446250e0d1a37c5fe738cbdcd3415f3254bf76546b395bf1688, 8MiB) is reproducible.
- GOOGLE_JUNIPER (5e722e7422709b8a25d5e7bc626d6abd669b3c9877e9f690b78f4fbbe2815dfc, 8MiB) is reproducible.
- GOOGLE_KAKADU (b1447415df6e9aefa69529f3d088d52edb0114b8825d8d297cff8bcd4b4c4bd4, 8MiB) is reproducible.
- GOOGLE_KAPPA (7079ab75a06091efe9483f1448963f51d04085f5d3e8f316e16e31d4ad250ea7, 8MiB) is reproducible.
- GOOGLE_KARIS (3b512f98c4d8da91fcc456dcb9fca58a1c5a658bd6154f96056c728fd3a01a2c, 32MiB) is reproducible.
- GOOGLE_KARIS4ES (f8ab7b72bbe523b82d97731115cf49a26e23726bdec7bd7ff58d18e399cca5b8, 32MiB) is reproducible.
- GOOGLE_KATSU (d3548a5d2f3e3a3aac15030755d7ee23ab27de4eb16f01a2cfa945137c053341, 8MiB) is reproducible.
- GOOGLE_KEVIN (c3cb454c073c5b0a488d2063eb3aa61c2d4d1f10fa58c1a057253481e8f79366, 8MiB) is reproducible.
- GOOGLE_KINGLER (f120339a09e3b574f02c0d5e3837fe2d1d7567470f2b0375c117a2f3adb4acdc, 8MiB) is reproducible.
- GOOGLE_KINGOFTOWN (7cafa3abd3272053b51b1d0792f0a3c0a4fc767ae5c5a91fd0351318d38161b1, 8MiB) is reproducible.
- GOOGLE_KODAMA (fd53467e860adae5a9e64bfc7ed8b78a1f62ba4e919f4370a521250b9fff187f, 8MiB) is reproducible.
- GOOGLE_KRABBY (f66993d0494ea22c21cfc6f4424fedef0f879980db0f51c56042ec1dd0e3ace5, 8MiB) is reproducible.
- GOOGLE_KRANE (9f7028b4a70dc2c55b6fe408f90230d04912576c7c3cb9228bf4e3a157f3b83a, 8MiB) is reproducible.
- GOOGLE_KUKUI (e728fea87e34011d66f55d214de576bd14d92790464eb2e357728e7fd4a17559, 8MiB) is reproducible.
- GOOGLE_LAZOR (89db68a0af5312e114414bece26fe081acfed4f4962c0304055e4ce125571cca, 8MiB) is reproducible.
- GOOGLE_MAGIKARP (0a8c5c26b2609cafe24fc783debbb1e586e00a17d716037a941501acf9779f9d, 8MiB) is reproducible.
- GOOGLE_MAKOMO (82da1bab136df4e159f3df6f0da7b0b0d3ed05b88cbcb720dfb84e666a28e842, 8MiB) is reproducible.
- GOOGLE_MARZIPAN (8dfbed7047f2958012fb0ec42546b6a897f6bf65886960a9eb931eaa12420064, 8MiB) is reproducible.
- GOOGLE_MISTRAL (7ce9e6244bfaa110ac305e2fce1d01e30b341f21c0c3b117eee351e83587b2a0, 8MiB) is reproducible.
- GOOGLE_MRBLAND (ebb5484740ffd21b6cdcc7531e85d12853bd0b8443bb0356bb32698c58c14a03, 8MiB) is reproducible.
- GOOGLE_MUNNA (e4a55e01123f90fa3108aad77b8b1eb533a70b1a22a1ad4fffedd022ab5674dc, 8MiB) is reproducible.
- GOOGLE_NEFARIO (b94e2a2f5a6813f2355f9cb428a35317cbfa5b85df502b8cc2fa4feaed86d8ed, 8MiB) is reproducible.
- GOOGLE_NYAN (f572cda2bacbcc15551e55ce8a031dfc843d7b2c34897371165688478a687aea, 4MiB) is reproducible.
- GOOGLE_NYAN_BIG (d40729ca13e1a718d4e2557a513cf8dea3a2d78e3734fc767b1fa12defe877b1, 4MiB) is reproducible.
- GOOGLE_NYAN_BLAZE (a8d8dcf3e0b9e09fb57f47db8964c1efc4ae920ca59cd7ab447f8382d466070d, 4MiB) is reproducible.
- GOOGLE_OAK (1677724a5ce656f38b224939cb2bbcaf555e3a792240c0a9ad89574c8efebfa7, 4MiB) is reproducible.
- GOOGLE_OVIS (72f587d7a43d1ac4edc2e03a5c97df822f558130af785049ce092a12f701394c, 32MiB) is reproducible.
- GOOGLE_OVIS4ES (8e2df0108cae43ebbeea88e55fa06f652b73df4adbfce18ae0abd669635b814d, 32MiB) is reproducible.
- GOOGLE_PAZQUEL (378a796e5c452f785a2349e03d27e5ea5deeb34e8b5d5cf01bc200bbafd10f3f, 8MiB) is reproducible.
- GOOGLE_PEACH_PIT (d89261f687c21f1319ab2bdc6bd5f9cb4020af4ddae12ee8d8a0c26df52bc870, 4MiB) is reproducible.
- GOOGLE_PICO (7734e0a1817e009fb6ad2aecaaa5004e667c41df9d7e09352602a7bfcc817d20, 8MiB) is reproducible.
- GOOGLE_POMPOM (4655c508026556da5c093dfaa164f7932fad59d3dcb893410632696b1f92364d, 8MiB) is reproducible.
- GOOGLE_PONYTA (a5f486a57230f8b83c10f834f795ae8fbb83c12002886021854e29143efb6dcb, 8MiB) is reproducible.
- GOOGLE_QUACKINGSTICK (47d4fe2362375d652dd4ee7cbd624e10b5abb8e8c40c108e96bd94290a417326, 8MiB) is reproducible.
- GOOGLE_RAINIER (d588f0c5f1885616be57a7ef33783d90c01b08d747aa59122f047caf85e9c180, 8MiB) is reproducible.
- GOOGLE_REX0 (b644555429ebbbf9f816fc610eca7d6b158d110cdb3c37c47e4b4865ebad25b8, 32MiB) is reproducible.
- GOOGLE_REX4ES (270e068c389b0bd67fbbd2bd691093be1090e5bd68b39668f205432eacccceb9, 32MiB) is reproducible.
- GOOGLE_REX4ES_EC_ISH (312c22a23084bd06b3f8e431ba6981361c336ddf070e2b3c55a6abc492ae4a5d, 32MiB) is reproducible.
- GOOGLE_REX_EC_ISH (c929cbb63a518c671e1f043a9bf0d97ad1b725312cf08e64c6a7d087e98d2b19, 32MiB) is reproducible.
- GOOGLE_SCARLET (64314b1e3ffbe1cc431f6d308f087048a3c6fcae706465be1d6c59f52c5cbb7e, 8MiB) is reproducible.
- GOOGLE_SCREEBO (abfa634c4d79f342ce86c23bd0f792b83bf37411d603e8e256874b7eba7e7700, 32MiB) is reproducible.
- GOOGLE_SCREEBO4ES (f442e396e290719276aec8b93810066785ee450aa54d52babb57b0a4597c9a72, 32MiB) is reproducible.
- GOOGLE_SMAUG (163c33d7e169d069de51ac3b3185605a9263cc85dfd5f286c798c6c9fa154d2f, 16MiB) is reproducible.
- GOOGLE_SPHERION (51ff0f4b2c90f1751c5f927d6d61f786b1b6a7da57b3c6be8204b9bab2bc3382, 8MiB) is reproducible.
- GOOGLE_STARMIE (7a2203be3497af9fa12d848b2030e2331fa26cd0efa4d4554157992229842a29, 8MiB) is reproducible.
- GOOGLE_STEELIX (bdb3f9a2362a7ef26ddfcabc2913b11d23fbaa1b6042607db474f533eca414a5, 8MiB) is reproducible.
- GOOGLE_STERN (f12196926335c6514bbc24cc03a4e9cdc2a6f1a6162a91345ac2a314d663c756, 8MiB) is reproducible.
- GOOGLE_STORM (84b069093d1d6164bcb47d107aad42bd05f01eedea7328bf42293590fe3c0594, 8MiB) is reproducible.
- GOOGLE_TENTACRUEL (7f79616b5c6114fa3bcaed929af4afab9e317e39ff6199e99aa7805970068286, 8MiB) is reproducible.
- GOOGLE_TOMATO (8b7e9cf05b748393c70c0b4f70a80ac5e170b2bae066ec74ad9f9e3d2c18e038, 8MiB) is reproducible.
- GOOGLE_TROGDOR (abea4e37c1510d40cea4ac33d8e2270784cb575a02961ce371a4b692561d473f, 8MiB) is reproducible.
- GOOGLE_VEYRON_JAQ (d4df8265bd887857dbc8f70bd4a9f6b642aaf4494993aaa847084ccd648a78e1, 4MiB) is reproducible.
- GOOGLE_VEYRON_JERRY (66239bcbad50db68f3520ec0ca4a5267c895ef51b0007ccf4b7e60e5baa1897c, 4MiB) is reproducible.
- GOOGLE_VEYRON_MICKEY (e634d73ab59fb004cdb31defdf470e3c66f78b6e7cbb91498cb6a9575df6c4a7, 4MiB) is reproducible.
- GOOGLE_VEYRON_MIGHTY (18b202b838214bc5566d06204a3bf21d22d8e87dcaef038c54de77e6e4819466, 4MiB) is reproducible.
- GOOGLE_VEYRON_MINNIE (846e0736f849355004591b4a60c0cdcd4d4195470dba4aca05fa45d800a35357, 4MiB) is reproducible.
- GOOGLE_VEYRON_RIALTO (5584d48dc014a5145714bbc141f1db967276b0c69f1e5d3d0442206ed1bfad7b, 4MiB) is reproducible.
- GOOGLE_VEYRON_SPEEDY (9b7f59a94486ed0bc6d62771e111789e46f96eba4dec9a68edb0997b9166550d, 4MiB) is reproducible.
- GOOGLE_VOLTORB (a5868e19abde0d27dbc66e46b0311950c66a5a014d41888ab0769dbd2c9a763d, 8MiB) is reproducible.
- GOOGLE_WILLOW (ed1968f5ae13186daebb991f0e20828d7775ae07420e3f33d3a06ac9a14f1a9a, 8MiB) is reproducible.
- GOOGLE_WORMDINGLER (0ad345a0d81169bf87c67d99c3142a349613fbd56c2172847068427fd32c3588, 8MiB) is reproducible.
- IBM_SBP1 (7354f78a0113f367ce40f8fa632bbf7ac1419bcc2844bb9cf655e6cbca68a140, 64MiB) is reproducible.
- INTEL_ARCHERCITY_CRB (bca71b1452f4e67bcc5eb3755e1956270cab37c90fb54a422d443a17002b4352, 64MiB) is reproducible.
- INTEL_MTLRVP4ES_P_EXT_EC (0a6373ba0bc1ef6ba7aa05aa27fa846db1176950c6839866f0cc605cb52db1c9, 32MiB) is reproducible.
- INTEL_MTLRVP_P (49516cf4a583f0c4462389da1794fde42cac40cf266fe68ffd2bfb53cf61e71a, 32MiB) is reproducible.
- INTEL_MTLRVP_P_EXT_EC (0e4984f965cdf44f89c77b9559cb6deeca9d5667ce998744db14df6fe150a6d2, 32MiB) is reproducible.
- INTEL_MTLRVP_P_MCHP (61b0b58df0a36747087c0efca2306febbd58f3e39c3e9430d9b36a255ae22671, 32MiB) is reproducible.
- INVENTEC_TRANSFORMERS (5ef36095705974c87d093818a16f2bbedbe9142d52e78efa829c9c48c9324365, 64MiB) is reproducible.
- OPENCELLULAR_ELGON (befd5fed0e028dcf31d1358399097fedf127b3287ddf873633283da584726c89, 16MiB) is reproducible.
- PCENGINES_APU2 (7535a19762b700194348b934e8b1703975db724fb82acc162c8de3af241f131e, 8MiB) is reproducible.
- PCENGINES_APU2_ (221c5228ab97119ffd11bc06ac887ffeeb83220d91587b6068e4e2d220d2db6d, 8MiB) is reproducible.
- PCENGINES_APU3 (2668277f5f3fbb1783d8255db744347c98f8cd09c21122be47a8f7898ff7e25f, 8MiB) is reproducible.
- PCENGINES_APU3_ (6f7d22743f4a34192d8ab6e56734b06b24383ec2f880558ac6744fbc8685d883, 8MiB) is reproducible.
- PCENGINES_APU4 (d4b544fad19bd9413daffb2ce3d370682d3fed5955779f960dfed6ef44a1f59e, 8MiB) is reproducible.
- PCENGINES_APU4_ (8d15fc3b494c3d3ae8ef13e7e713bd39f3f848b8772211dc83ac174c1537dfed, 8MiB) is reproducible.
- PCENGINES_APU5 (8bf44d8fa1c4c2cf70f00245133991cb966e92631934238e075c12f600c6dd53, 8MiB) is reproducible.
- PCENGINES_APU5_ (746fa67015973c5e6ddae681f9bbc1325f0e4301cc510b71ca8287b6c3d0e7e5, 8MiB) is reproducible.
- PINE64_ROCKPRO64 (f5a5edb5b05503fe7f0e1001106e5cdc45606ff18354113bc3c2fac75ee7f400, 16MiB) is reproducible.
- TI_BEAGLEBONE (70c0a4a4403a4484a65f70aef8d8252f068c1bfc2a150946c056b72237ab1524, 32MiB) is reproducible.
commit 3e4b517265a00be1b679656e1a240bb0d5db9e69 Author: Nico HuberDate: Sat Mar 16 01:00:46 2024 +0100 genbuild_h: Fix and harden major/minor version parsing Our major version is suddenly two digits long to represent the year. This can't be parsed with the current sed scripts. To make sure that no unparsed data ends up in our major/minor versions, we'll run sed with `-n' and only print the extracted numbers if anything. Also, to allow us to use the version numbers in C code, we strip leading zeros (a leading 0 identifies octal numbers, so for instance 08 for August is not a valid number). This can result in empty major/minor version strings, so we move the default `0' to the final variable expansion. As a bonus, this makes an explicit check if the numbers can be parsed unnecessary. Change-Id: Ie39381a8ef4b971556168b6996efeefe6adf2b14 Reported-by: Christoph Zechner Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/81290 Reviewed-by: Maximilian Brune Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins)
cross toolchain source | sha256sum |
---|---|
R06_28_23.tar.gz | 2248799b7ca08a7711ac87d31924354ed49047507607d033bd327ba861ec4d31 |
binutils-2.42.tar.xz | f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800 |
gcc-13.2.0.tar.xz | e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da |
gmp-6.3.0.tar.xz | a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898 |
mpc-1.3.1.tar.gz | ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8 |
mpfr-4.2.1.tar.xz | 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2 |
Debian 12.5 package on amd64 | installed version |
---|---|
gcc | 4:12.2.0-3 |
g++ | 4:12.2.0-3 |
make | 4.3-4.1 |
cmake | 3.25.1-1 |
flex | 2.6.4-8.2 |
bison | 2:3.8.2+dfsg-1+b1 |
pkg-config | 1.8.1-1 |