Skip to content

Commit

Permalink
CI: add building of rockpis-dtbo package
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen <[email protected]>
  • Loading branch information
StephenInVamrs committed Jul 16, 2019
1 parent a020566 commit 568953b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ node {
make distclean
./dev-make kernel-package
./dev-make rockpis-dtbo-package
'''
}

Expand Down Expand Up @@ -73,6 +74,7 @@ node {
--description "${DESCRIPTION}"
rm ../*$(./dev-make info)*.deb
rm ../rockpis-dtbo.tar.gz
'''
}
}
Expand Down
26 changes: 26 additions & 0 deletions dev-packages
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

4 changes: 4 additions & 0 deletions dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ info: .config .scmversion
.PHONY: kernel-package
kernel-package: .config .scmversion
LOCALVERSION=$(shell cat .scmversion) KDEB_PKGVERSION=$(KDEB_PKGVERSION) $(KERNEL_MAKE) bindeb-pkg -j$$(nproc)

.PHONY: rockpis-dtbo-package
rockpis-dtbo-package:
./dev-packages -p rockpis-dtbo

0 comments on commit 568953b

Please sign in to comment.