Skip to content

Commit

Permalink
checkout correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Mar 21, 2024
1 parent 674e761 commit 2f83cef
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 28 deletions.
38 changes: 19 additions & 19 deletions build_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,23 +255,23 @@ if [[ "${PLATFORM}" == "pi" ]]; then
build_pi_kernel
echo "Copy kernel7"
pushd ${LINUX_DIR}
sudo mkdir -p /usr/src/6.1.73-common
sudo mkdir -p /usr/src/6.1.73-rpi
sudo mkdir -p ${PACKAGE_DIR}/lib/modules/6.1.73-v7+/
sudo ln -s /usr/src/6.1.73-common/ ${PACKAGE_DIR}/lib/modules/6.1.73-v7+/source
sudo ln -s /usr/src/6.1.73-rpi ${PACKAGE_DIR}/lib/modules/6.1.73-v7+/build
sudo mkdir -p ${PACKAGE_DIR}/usr/src/6.1.73-rpi/include
sudo mkdir -p ${PACKAGE_DIR}/usr/src/6.1.73-rpi/arch/arm
sudo mkdir -p /usr/src/6.1.29-common
sudo mkdir -p /usr/src/6.1.29-rpi
sudo mkdir -p ${PACKAGE_DIR}/lib/modules/6.1.29-v7+/
sudo ln -s /usr/src/6.1.29-common/ ${PACKAGE_DIR}/lib/modules/6.1.29-v7+/source
sudo ln -s /usr/src/6.1.29-rpi ${PACKAGE_DIR}/lib/modules/6.1.29-v7+/build
sudo mkdir -p ${PACKAGE_DIR}/usr/src/6.1.29-rpi/include
sudo mkdir -p ${PACKAGE_DIR}/usr/src/6.1.29-rpi/arch/arm
echo "$pwd"
sudo cp -r include/generated ${PACKAGE_DIR}/usr/src/6.1.73-rpi/include
sudo cp -r include/config ${PACKAGE_DIR}/usr/src/6.1.73-rpi/include
sudo cp -r arch/arm ${PACKAGE_DIR}/usr/src/6.1.73-rpi/arch/
sudo cp -r tools ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r scripts ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r Module.symvers ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r Makefile ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r .kernelvariables ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r .config ${PACKAGE_DIR}/usr/src/6.1.73-rpi/
sudo cp -r include/generated ${PACKAGE_DIR}/usr/src/6.1.29-rpi/include
sudo cp -r include/config ${PACKAGE_DIR}/usr/src/6.1.29-rpi/include
sudo cp -r arch/arm ${PACKAGE_DIR}/usr/src/6.1.29-rpi/arch/
sudo cp -r tools ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo cp -r scripts ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo cp -r Module.symvers ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo cp -r Makefile ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo cp -r .kernelvariables ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo cp -r .config ${PACKAGE_DIR}/usr/src/6.1.29-rpi/
sudo rm -Rf ${PACKAGE_DIR}/etc
sudo rm -Rf ${PACKAGE_DIR}/boot
sudo rm -Rf ${PACKAGE_DIR}/lib/firmware
Expand All @@ -284,9 +284,9 @@ if [[ "${PLATFORM}" == "pi" ]]; then
build_pi_kernel
echo "Copy kernel7l"
pushd ${LINUX_DIR}
sudo mkdir -p ${PACKAGE_DIR}/lib/modules/6.1.73-v7l+/
sudo ln -s /usr/src/6.1.73-common/ ${PACKAGE_DIR}/lib/modules/6.1.73-v7l+/source
sudo ln -s /usr/src/6.1.73-rpi ${PACKAGE_DIR}/lib/modules/6.1.73-v7l+/build
sudo mkdir -p ${PACKAGE_DIR}/lib/modules/6.1.29-v7l+/
sudo ln -s /usr/src/6.1.29-common/ ${PACKAGE_DIR}/lib/modules/6.1.29-v7l+/source
sudo ln -s /usr/src/6.1.29-rpi ${PACKAGE_DIR}/lib/modules/6.1.29-v7l+/build
sudo ls -a

fi
Expand Down
4 changes: 2 additions & 2 deletions kernels/pi-bullseye-v6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL=kernel
KERNEL_BRANCH="rpi-6.1.y"
KERNEL_VERSION="6.1.73+"
KERNEL_BRANCH="rpi-6.1-stable"
KERNEL_VERSION="6.1.29+"
KERNEL_COMMIT="20cb6d7b533b5e6d7df8a2cb7a83bd4555834bde"
ISA=v6
2 changes: 1 addition & 1 deletion kernels/pi-bullseye-v7
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL=kernel7
KERNEL_BRANCH="rpi-6.1.y"
KERNEL_VERSION="6.1.73-v7+"
KERNEL_VERSION="6.1.29-v7+"
KERNEL_COMMIT="20cb6d7b533b5e6d7df8a2cb7a83bd4555834bde"
ISA=v7
2 changes: 1 addition & 1 deletion kernels/pi-bullseye-v7l
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KERNEL=kernel7l
KERNEL_BRANCH="rpi-6.1.y"
KERNEL_VERSION="6.1.73-v7l+"
KERNEL_VERSION="6.1.29-v7l+"
KERNEL_COMMIT="20cb6d7b533b5e6d7df8a2cb7a83bd4555834bde"
ISA=v7l
8 changes: 4 additions & 4 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ function package() {
rm ${PACKAGE_NAME}_${VERSION}_${PACKAGE_ARCH}.deb >/dev/null 2>&1
if [[ "${PLATFORM}" == "pi" ]]; then
cd ${SRC_DIR}
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.73-v7+/source
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.73-v7+/build
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.73-v7l+/source
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.73-v7l+/build
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.29-v7+/source
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.29-v7+/build
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.29-v7l+/source
rm -Rf ${PACKAGE_DIR}/lib/modules/6.1.29-v7l+/build
fpm -a ${PACKAGE_ARCH} -s dir -t deb -n ${PACKAGE_NAME} -v ${VERSION} -C ${PACKAGE_DIR} \
--after-install after-install.sh \
--before-install before-install.sh \
Expand Down
5 changes: 4 additions & 1 deletion scripts/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ function fetch_SBC_source() {
echo "Download the kernel source"
echo "------------------------------"
# Use --depth 1 to save some space on unneccessary huge git log
git clone ${KERNEL_REPO} ${LINUX_DIR} -b ${KERNEL_BRANCH} --depth 1 || exit 1
git clone ${KERNEL_REPO} ${LINUX_DIR} -b ${KERNEL_BRANCH} --depth=1 || exit 1
echo "_________________GIT_____________________________"
git status
echo "__________________GIT_END____________________"
popd
fi

Expand Down

0 comments on commit 2f83cef

Please sign in to comment.