summaryrefslogtreecommitdiff
path: root/meta-phosphor/scripts
AgeCommit message (Collapse)AuthorFilesLines
2023-09-01meta-aspeed: Fix value_start issue in `rev_id` pathAndrew Jeffery1-0/+1
There's a bug in socsec that prevents the IBM's configuration from successfully building an OTP image. I have got the fix merged upstream: https://github.com/AspeedTech-BMC/socsec/pull/18 However, Aspeed do not plan on doing a release until October: > [ 17:51 ] arj: @Troy Lee any chance Neal can tag a new socsec release so we can bump it in OpenBMC and pick up some recent fixes? > [ 18:25 ] Troy Lee: Current schedule is October. https://discord.com/channels/775381525260664832/922871693008068638/1144547174286377062 For now, fix otptool using a recipe patch, in violation of the usual guidelines. I prefer we do this over switching to a "git" version for the recipe as instability with these tools really cannot be tolerated. Change-Id: I65b1992b5479ea257cfa65fd8b3cfc021b7d3dea Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-06-06meta-phosphor: run-repotest: Remove meta-google shellcheck exceptionsWilliam A. Kennington III1-25/+0
Change-Id: I7e5087f65512610b75631174dd4175f1b07f4284 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-ibm: fix some shellcheck issuesPatrick Williams1-2/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3792c2aa7f4bcd92254717c5bd00bc438f9101be
2023-06-03meta-inventec: remove stray repotest exemptionsPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie1fd5cddb2f449bd85385a5a50143b2261213ea5
2023-04-27meta-quanta: fix shellcheck issuesPatrick Williams1-24/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I189baf142cc86d44ebbf615edd3bb0ec1785be8d
2023-04-20meta-openpower: fix shellcheck issuesPatrick Williams1-4/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I35a9ffed937919467dec62a1fbff729f4a51366c
2023-04-20meta-ingrasys: fix shellcheck issuesPatrick Williams1-2/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5fd106fcc9de9895bc0d79f265e5c0ab06ee624a
2023-04-20meta-hpe: fix shellcheck issuesPatrick Williams1-3/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I30885f8c2577c3c2aa333a61210e6738fbf016c7
2023-04-19meta-yadro: fix shellcheck issuesPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I554299542d5a5c1125ab4a9a152a28937052a128
2023-04-19meta-ibm: fix some shellcheck issuesPatrick Williams1-5/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iced76041c1207dc9ab28a83fd849ba3cd0a07bb5
2023-04-19meta-phosphor: initrdscripts: fix shellcheck issuesPatrick Williams1-3/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iab07f5079bad00f3cb821f60329e5ad88e45ef4b
2023-04-18meta-phosphor: phosphor-mmc-init: fix shellcheckPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I1f668e1e40c937e016c60af13705ea60936ed739
2023-04-17meta-phosphor: run-ptest: fix shellcheck issuesPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iaefc691917edf1342854fa4ea0950283a7d175c8
2023-04-17meta-phosphor: repotest: remove exempt for passing scriptsPatrick Williams1-5/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I74d66a1a5334967c5049a8d94a736c130d4c94da
2023-04-14meta-bytedance: me-time-sync: fix shellcheck issuesPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I49f7334245394be03e77cb455d9e4d461fdb5705
2023-02-22meta-phosphor: preinit-mounts: shellcheck and prettyshPatrick Williams1-1/+0
Clean up this script a bit by formatting with prettysh and cleaning up all the shellcheck warnings. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic7e6d1ba8ab01b047efcb3ac53e16667e9ac82eb
2023-02-06Remove patches that have been upstreamedEd Tanous1-4/+0
In the while since this repotest was written, 4 patches were removed from the various meta layers. Remove them from repotest. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ide3222b5053547b0869f4cde319c736b59131c5f
2022-12-12Remove patch from repotestEd Tanous1-1/+0
This patch has been removed in lieu of the new platform. Removing from repotest. https://gerrit.openbmc.org/c/openbmc/openbmc/+/45457 Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ic428dc4e62741c3538136ce3a40908961a04b71d
2022-10-24Remove largely unmaintained MihawkMyung Bae1-1/+0
A fork of it is maintained but its upstream layer has largely been unmaintained. No future products are planned to be based on this layer. Mihawk is similar to Witherspoon. Signed-off-by: Myung Bae <myungbae@us.ibm.com> Change-Id: I82f7d777b78cd126237d51e42f1e11abdf80ae68
2022-08-16meta-bletchley: bsp: convert patch to cfg filePotin Lai1-1/+0
convert current patch to .cfg file Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I98ad0d5d69dd0c55ea40debd5b05ba4aa77be945
2022-08-03Import 80d60e7 from yoctoproject.org meta-armBrad Bishop1-0/+3
To support ARMv8 SoCs. meta-arm has several patch files. Since they are maintained by the upstream meta-arm community, add meta-arm to the ignore list in run-repotest. Change-Id: Ia87a2e947bbabd347d256eccc47a343e1c885479 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2022-08-01meta-nuvoton: add npcm8xx-igps recipeTim Lee1-0/+1
IGPS 03.06.02 - Jul 24 2022 ============== - Restore Z1 XMLs. - Bug fix ReplaceComponent.bat - Add fiu clk dividers fields to Bootblock header xml. - TIP FW: 0.3.9 L0 0.2.4 L1: - virtual flash bug fix: use memcy instead of tip_memcpy. - shared attestation hash is 512. - tip_mbx bug fixes. - tip_combo: return early if failed to find image. - init WD0RCR, 2, 3 before BMC starts. - check load and verify return status. if verify tip images fail in secure boot, restart. - Bootblock: 0.2.2 - Fix GMMAP value for 2GB and 512MB. - Add 3 FIU dividers to the the header (require IGPS 3.6.2 and above) - Bug fix: add support for ODT termination of zero (termination disabled). - Print pass\fail criteria for sweeps. Need to enable debug prints to use. Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: Ibd19031adf33d6a6ec5ada905490ba50c92e1948
2022-04-08run-repotest: Remove exempted shell scriptsCharles Boyer1-9/+0
The shell scripts that were exempted due to shellcheck errors have fixed their shellcheck errors. Therefore, the scripts can be removed from the exemption list. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Ic350f14be559f0db96684002ac440a6ee1e8179b
2022-03-26meta-facebook: meta-yosemitev2: switch u-boot to 2019.04Logananth Sundararaj1-2/+2
Switching the u-boot branch from the 2016.07-aspeed-openbmc to the 2019.04-aspeed-openbmc Added the config file to modify the defconfig file from the uboot-machine. Removing the files related to the 2016.07-aspeed branch. Tested: Tested in YosemiteV2 platform and Verified. Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com> Change-Id: I2687d92bba5dcf7602440b3ae59113093e09e379
2022-01-31run-repotest: do not allow dts files in meta layersAndrew Geissler1-1/+31
A patch came through recently that had a kernel dts file being patched in via a meta layer bbappend. Lets have repotest automatically flag these so we don't have to in reviews. The OpenBMC project carries a fork of the Linux kernel in openbmc/linux and that's where all dts files should go. This ensure the upstream process is moving forward with the changes. Tested: - Added a dts file and verified the script failed due to it Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ie82b4d104b73cc18e4c1e0fba772eb92c96ed3fa
2021-11-05meta-ampere: repotest: more removalsPatrick Williams1-4/+0
More patches and scripts have been cleaned up. Remove them from the exemption lists. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ieae41805e2787d7f63db2fd776495d79e6faa987
2021-11-05repotest: remove sh extension aliasPatrick Williams1-1/+0
The tooling in openbmc-build-scripts no longer needs the symlink alias. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib214c4f2bd5cc5854626a554adb86c9b2ceb1d2b
2021-11-05meta-ampere: repotest: reduce exempted shellcheck scriptsPatrick Williams1-14/+0
Commit dde1fede1f832f029742a1d27290cfe252ab1bc5 cleaned up a number of shellcheck errors from meta-ampere. Remove these, now fixed, scripts from the repotest exemption list. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia575d3130678d3ca2be69da64639f7354c28aea8
2021-11-04repotest: reduce patches in meta-bytedanceLei YU1-3/+0
With the previous commit and 98f38d4c8, several patches in meta-bytedance are removed. Remove such patches from repotest. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: If6226949a8063ca5e2aab56aff2b57e54cc963f8
2021-11-04meta-facebook: fix shellcheck issues in scriptsPatrick Williams1-3/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I62cf17d414795e91d673d468a196d4f0a6c0a71b
2021-11-04repotest: add json lintingPatrick Williams1-1/+10
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I99dadfac3c2d324bb5ef6a5ab399ad35825b34d5
2021-11-04repotest: refactor shellcheck slightlyPatrick Williams1-11/+43
Refactor the shellcheck implementation so that: 1. Files are checked by extension if their `file` type doesn't match a known list. Some shell scripts do not use the proper shebang and end up not being detected by `file`; attempt to revert to extension in that case. 2. Facilitate easier addition of multiple linting tools for other file types. A follow up commit will add 'json' linting with only a few changes. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5ce60432c4bd123d9d9c14466505c2d4b2477959
2021-11-04setup: fix shellcheck errorsPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4c09e61294506659500f9760993dd4b8b6f22f23
2021-11-04repotest: fix shellcheck errorsPatrick Williams1-7/+6
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4f4e7957218642dc252880a0a0ea575ebde10512
2021-11-04repotest: enable shellcheck-based lintingPatrick Williams1-1/+134
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I48ff0b633697ddd16a7119519399c6579688436d
2021-10-27meta-xilinx: remove subtreePatrick Williams1-1/+0
The meta-xilinx layer was used for a now-deleted EVB. Neither the EVB nor the meta-xilinx layer have been updated for the Yocto override syntax change and the meta-xilinx still doesn't have a hardknott or honister branch (or corresponding support). I've asked the Xilinx maintainer back in May on when a hardknott version would be supported and I was told "about a month from now". I followed up in August and was told "work is in progress". As of today there are still zero commits in meta-xilinx since January 2021. As such, I do not believe this layer is well-maintained and we have no specific use for it anymore. Remove it until someone finds a good reason to include it and the upstream shows signs of life. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id14ea55db2ac2779edf42e63cb57ad7d25172ad5
2021-10-27repotest: clean up via trapPatrick Williams1-4/+1
In the case of early exit, the script could leave tempfiles laying around. Use `trap` to ensure they're properly cleaned up. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I403dcacbd15227e445d50ccb2c2627675376fdcd
2021-10-26repotest: remove extensionPatrick Williams2-83/+84
The fact the script is current written in bash is not useful information to anyone invoking it. Remove the extension to allow future rewrite, if desired, without impacting other tooling or users. Temporarily create a symlink until `openbmc-build-scripts` can be updated for new script name. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib9cf07b587cae78c09e78184e0d35f2ed95d77ad
2021-10-19repotest: reduce patches in meta-amperePatrick Williams1-3/+0
With 8115d65b8c83099b62f303de7d5dbccacd2761b6, the number of required patches for meta-ampere's u-boot config was reduced. Remove the old patches from the repotest. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4ffa2a0134d3f630ae368e79ac34cb6f6e3a960c
2021-09-20Ignore grep failuresEd Tanous1-1/+1
When the last round of reviews added -e to the bash statement, it exposed a slight flaw, in that when there aren't failures, grep will return a code if it's not able to find any matches. This commit changes that such that grep errors are "ignored" in the context of bash. Tested: ran run-repotest.sh on a clean repository, and observed "repo test passed" Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I716220652d48b9a8489bf4dc0c3b4734b98a70e4
2021-09-18Implement a test for patch complianceEd Tanous1-0/+82
Per our documentation, patches outside of a couple specific directories aren't allowed. This commit implements a build-time check to see if any new patches have been added. Functionally, because there's several meta layers that have broken the rules already, it has to contain a check against the various patches that already exist in the tree. This list doesn't constitute a grandfather-ing in of those patches, but recognizes that we can't immediately back them out, and having the maintainers take care of them will take time. Of note, this patchset also ignores patches in any of the poky layers, as we can't define their policies, and allows patches in meta-phosphor, as a backdoor in case we need a trapdoor to this policy, and all the maintainers agree to it. This change was originally checked into openbmc-build-scripts, but was moved to support more users, and keeping this list up to date. All comments on the latest review from https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-build-scripts/+/46064/2 have been addressed. Change-Id: I1c3e062278b4856cbfda910bdbf122e4b7539f89 Signed-off-by: Ed Tanous <edtanous@google.com>
2021-09-18Add repo tests to main repositoryEd Tanous1-0/+4
This commit adds the repo test scripts to the main openbmc repository to be used for verification of meta layers. It is intended to go in hand with https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-build-scripts/+/46063 to allow testing meta layers at compile time for compliance. For the moment it is just a no-op test; In the future, more capabilities will be added. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I034c9cd60590907db73d759eb9d943e3e62e62ec