Skip to content

Commit

Permalink
Update BuildRock5ForOpenHD.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Aug 10, 2024
1 parent 2c8e390 commit ff7f18e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/BuildRock5ForOpenHD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
sed -i 's/LOCALVERSION=-$PKG_REVISION-$FORK KERNELRELEASE=$kernelversion-$PKG_REVISION-$FORK KDEB_PKGVERSION=$kernelversion-${PKG_REVISION}${SOURCE_GITREV:+-$SOURCE_GITREV}/LOCALVERSION=-$PKG_REVISION-$FORK KERNELRELEASE=$kernelversion-$PKG_REVISION-$FORK KDEB_PKGVERSION=$kernelversion-${PKG_REVISION}-${DATE}-${SOURCE_GITREV:+-$SOURCE_GITREV}/g' lib/linux.sh
sed -i 's/BSP_GIT="https:\/\/github.com\/radxa\/kernel.git"/BSP_GIT="https:\/\/github.com\/openhd\/linux-rock.git"/' linux/rockchip/fork.conf
sed -i 's#BSP_BRANCH="[^"]*"#BSP_BRANCH="'"$BRANCH"'"#' linux/rockchip/fork.conf
# COMMITHASH=$(curl -s https://api.github.com/repos/OpenHD/overlays/commits/main | grep '"sha"' | head -n 1 | cut -d '"' -f 4)
# echo 'custom_source_action() {
# git_source https://github.com/openhd/overlays.git '"$COMMITHASH"'
# cp -r $SCRIPT_DIR/.src/overlays/arch $TARGET_DIR
# }' > linux/.common/overlays.sh
COMMITHASH=$(curl -s https://api.github.com/repos/OpenHD/overlays/commits/main | grep '"sha"' | head -n 1 | cut -d '"' -f 4)
echo $COMMITHASH
echo 'custom_source_action() {
git_source https://github.com/openhd/overlays.git '"$COMMITHASH"'
cp -r $SCRIPT_DIR/.src/overlays/arch $TARGET_DIR
}' > linux/.common/overlays.sh
cat linux/.common/overlays.sh
patch -p1 -i ../scripts/patches/openhd_utils.patch
- name: build kernel
Expand Down

0 comments on commit ff7f18e

Please sign in to comment.