forked from rockchip-linux/kernel
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add building of rockpis-dtbo package
Signed-off-by: Stephen <[email protected]>
- Loading branch information
1 parent
a020566
commit 568953b
Showing
3 changed files
with
32 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,26 @@ | ||
#!/bin/bash -e | ||
|
||
LOCALPATH=$(pwd) | ||
OVERLAYS_ROCKPIS="${LOCALPATH}/arch/arm64/boot/dts/rockchip/overlays-rockpis" | ||
|
||
while getopts "p:h" flag; do | ||
case $flag in | ||
p) | ||
PACKAGE_NAME="$OPTARG" | ||
;; | ||
esac | ||
done | ||
|
||
if [[ "$PACKAGE_NAME" == "rockpis-dtbo" ]]; then | ||
cd ${LOCALPATH}/ | ||
mkdir -p ${LOCALPATH}/rockpis-dtbo/boot/overlays | ||
cp ${OVERLAYS_ROCKPIS}/hw_intfc.conf ${LOCALPATH}/rockpis-dtbo/boot | ||
cp ${OVERLAYS_ROCKPIS}/README ${LOCALPATH}/rockpis-dtbo/boot/overlays | ||
cp ${OVERLAYS_ROCKPIS}/*.dtbo ${LOCALPATH}/rockpis-dtbo/boot/overlays | ||
|
||
tar zcvf ${LOCALPATH}/rockpis-dtbo.tar.gz ${LOCALPATH}/rockpis-dtbo | ||
mv ${LOCALPATH}/rockpis-dtbo.tar.gz .. | ||
rm -rf ${LOCALPATH}/rockpis-dtbo | ||
cd - | ||
fi | ||
|
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