This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if BSP files need to be updated
Run update-targets.sh to make sure that all of the BSP files are up-to-date and reproducible. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
- Loading branch information
1 parent
cf0d06b
commit 25683cc
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
set -x | ||
|
||
pushd $(dirname "$0")/../bsp && ./update-targets.sh && popd | ||
|
||
DIFF=$(git diff) | ||
|
||
if [ "${DIFF}" != "" ] ; then | ||
>&2 echo "BSP files change if bsp/update-targets.sh is run." | ||
>&2 echo "Please re-run update-targets.sh to keep BSP files up-to-date." | ||
exit 1 | ||
fi |