Reproduce a previous release
In this example, we will recreate linux-rockchip 5.10.110-5 release.
-
Follow Build artifacts section, We now have the following essential commit information at the release build time:
radxa/kernel:1932709cf
bsp:3a557f6 -
However,
fork.confonly takes full commit hash. So click theradxa/kernellink above, and clickBrowse filesbutton on GitHub page, that will get you the full commit hash in the URL bar:radxa/kernel:1932709cf7d98d0d92952bba38d990d938fabc58 -
We can also check the content of
overlay.shto find the commit used forradxa/overlays:
radxa/overlays:4940ae33e4def0fb9133faf68adf0c3421b61f06 -
We can now recreate the package:
git clone --recurse-submodules https://github.com/radxa-repo/bsp.git
cd bsp
# switch to bsp commit found above
git switch --detach 3a557f6
# replace BSP_BRANCH with radxa/kernel commit found above
sed -i "s/BSP_BRANCH.*/BSP_COMMIT='1932709cf7d98d0d92952bba38d990d938fabc58'/" linux/rockchip/fork.conf
./bsp linux rockchip
# the prepared kernel tree will be available under .src/linux