Skip to content

Commit dba6018

Browse files
Update BuildRock5ForOpenHD.yaml
1 parent a487cc8 commit dba6018

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/BuildRock5ForOpenHD.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ jobs:
2727
run: |
2828
echo "Branch: ${{ github.ref_name }}"
2929
BRANCH=${{ github.ref_name }}
30-
git clone https://github.com/radxa-repo/bsp --recursive
30+
git clone --recurse-submodules https://github.com/radxa-repo/bsp.git
3131
cd bsp
3232
chmod +x bsp
33-
sed -i '/local kernelversion="\$(bsp_version)"/a \ local DATE=$(date +'%Y-%m-%d-%H-%M')' lib/linux.sh
34-
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
35-
sed -i 's/BSP_GIT="https:\/\/github.com\/radxa\/kernel.git"/BSP_GIT="https:\/\/github.com\/openhd\/linux-rock.git"/' linux/rockchip/fork.conf
36-
sed -i 's#BSP_BRANCH="[^"]*"#BSP_BRANCH="'"$BRANCH"'"#' linux/rockchip/fork.conf
37-
COMMITHASH=$(curl -s https://api.github.com/repos/OpenHD/overlays/commits/main | grep '"sha"' | head -n 1 | cut -d '"' -f 4)
38-
echo 'custom_source_action() {
39-
git_source https://github.com/openhd/overlays.git '"$COMMITHASH"'
40-
cp -r $SCRIPT_DIR/.src/overlays/arch $TARGET_DIR
41-
}' > linux/.common/overlays.sh
42-
patch -p1 -i ../scripts/patches/openhd_utils.patch
43-
echo "__________________________________________________________222_"
44-
cat linux/rockchip/fork.conf
33+
# sed -i '/local kernelversion="\$(bsp_version)"/a \ local DATE=$(date +'%Y-%m-%d-%H-%M')' lib/linux.sh
34+
# 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
35+
# sed -i 's/BSP_GIT="https:\/\/github.com\/radxa\/kernel.git"/BSP_GIT="https:\/\/github.com\/openhd\/linux-rock.git"/' linux/rockchip/fork.conf
36+
# sed -i 's#BSP_BRANCH="[^"]*"#BSP_BRANCH="'"$BRANCH"'"#' linux/rockchip/fork.conf
37+
# COMMITHASH=$(curl -s https://api.github.com/repos/OpenHD/overlays/commits/main | grep '"sha"' | head -n 1 | cut -d '"' -f 4)
38+
# echo 'custom_source_action() {
39+
# git_source https://github.com/openhd/overlays.git '"$COMMITHASH"'
40+
# cp -r $SCRIPT_DIR/.src/overlays/arch $TARGET_DIR
41+
# }' > linux/.common/overlays.sh
42+
# patch -p1 -i ../scripts/patches/openhd_utils.patch
43+
# echo "__________________________________________________________222_"
44+
# cat linux/rockchip/fork.conf
4545
4646
- name: build kernel
4747
run: |

0 commit comments

Comments
 (0)