Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Add kernel 6.6 v2
  • Loading branch information
sebanc committed Jan 25, 2024
1 parent a966c75 commit 5aa0744
Show file tree
Hide file tree
Showing 1,445 changed files with 235,648 additions and 427,209 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
yes | DEBIAN_FRONTEND=noninteractive sudo apt install gcc-12 g++-12 git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison sbsigntool
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 110 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
- name: Checkout Brunch source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download kernels and apply patches
run: ./prepare_kernels.sh
- name: Define kernels matrix
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
yes | DEBIAN_FRONTEND=noninteractive sudo apt install gcc-12 g++-12 git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison sbsigntool
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 110 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
- name: Checkout Brunch source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download kernels source
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo apt clean
- name: Checkout Brunch source code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download built kernels
uses: actions/download-artifact@v3
with:
Expand Down
58 changes: 18 additions & 40 deletions build_brunch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ kernel_version="$(file ./out/arch/x86/boot/bzImage | cut -d' ' -f9)"
[ ! "$kernel_version" == "" ] || { echo "Failed to read version for kernel $kernel"; exit 1; }
cp ./out/arch/x86/boot/bzImage ../../home/chronos/rootc/kernel-"$kernel" || { echo "Failed to copy the kernel $kernel"; exit 1; }
make -j"$NTHREADS" O=out INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=../../../home/chronos/kernel modules_install || { echo "Failed to install modules for kernel $kernel"; exit 1; }
rm ../../home/chronos/kernel/lib/modules/"$kernel_version"/build || { echo "Failed to remove the build directory for kernel $kernel"; exit 1; }
rm ../../home/chronos/kernel/lib/modules/"$kernel_version"/source || { echo "Failed to remove the source directory for kernel $kernel"; exit 1; }
rm -f ../../home/chronos/kernel/lib/modules/"$kernel_version"/build || { echo "Failed to remove the build directory for kernel $kernel"; exit 1; }
rm -f ../../home/chronos/kernel/lib/modules/"$kernel_version"/source || { echo "Failed to remove the source directory for kernel $kernel"; exit 1; }
cp -r ./headers ../../home/chronos/kernel/lib/modules/"$kernel_version"/build || { echo "Failed to replace the build directory for kernel $kernel"; exit 1; }
mkdir -p ../../home/chronos/kernel/usr/src || { echo "Failed to create the linux-headers directory for kernel $kernel"; exit 1; }
ln -s /lib/modules/"$kernel_version"/build ../../home/chronos/kernel/usr/src/linux-headers-"$kernel_version" || { echo "Failed to symlink the linux-headers directory for kernel $kernel"; exit 1; }
cd ../../..

if [ "$1" != "skip" ] && [ "$2" != "skip" ]; then

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtbth ./chroot/tmp/ || { echo "Failed to build external rtbth module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtbth || { echo "Failed to build external rtbth module for kernel $kernel"; exit 1; }
Expand All @@ -104,7 +104,7 @@ rm -r ./chroot/tmp/rtbth || { echo "Failed to build external rtbth module for ke

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8188eu ./chroot/tmp/ || { echo "Failed to build external rtl8188eu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8188eu || { echo "Failed to build external rtl8188eu module for kernel $kernel"; exit 1; }
Expand All @@ -115,18 +115,7 @@ rm -r ./chroot/tmp/rtl8188eu || { echo "Failed to build external rtl8188eu modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ]; then

cp -r ./external-drivers/rtl8188fu ./chroot/tmp/ || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8188fu || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }
make -j"$NTHREADS" modules || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }
cp ./rtl8188fu.ko ../../../chroot/home/chronos/kernel/lib/modules/"$kernel_version"/rtl8188fu.ko || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }
cd ../../.. || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }
rm -r ./chroot/tmp/rtl8188fu || { echo "Failed to build external rtl8188fu module for kernel $kernel"; exit 1; }

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8192eu ./chroot/tmp/ || { echo "Failed to build external rtl8192eu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8192eu || { echo "Failed to build external rtl8192eu module for kernel $kernel"; exit 1; }
Expand All @@ -137,7 +126,7 @@ rm -r ./chroot/tmp/rtl8192eu || { echo "Failed to build external rtl8192eu modul

fi

if [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8723bs ./chroot/tmp/ || { echo "Failed to build external rtl8723bs module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8723bs || { echo "Failed to build external rtl8723bs module for kernel $kernel"; exit 1; }
Expand All @@ -148,7 +137,7 @@ rm -r ./chroot/tmp/rtl8723bs || { echo "Failed to build external rtl8723bs modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8723bu ./chroot/tmp/ || { echo "Failed to build external rtl8723bu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8723bu || { echo "Failed to build external rtl8723bu module for kernel $kernel"; exit 1; }
Expand All @@ -159,18 +148,7 @@ rm -r ./chroot/tmp/rtl8723bu || { echo "Failed to build external rtl8723bu modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ]; then

cp -r ./external-drivers/rtl8723de ./chroot/tmp/ || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8723de || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }
make -j"$NTHREADS" || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }
cp ./rtl8723de.ko ../../../chroot/home/chronos/kernel/lib/modules/"$kernel_version"/rtl8723de.ko || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }
cd ../../.. || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }
rm -r ./chroot/tmp/rtl8723de || { echo "Failed to build external rtl8723de module for kernel $kernel"; exit 1; }

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8723du ./chroot/tmp/ || { echo "Failed to build external rtl8723du module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8723du || { echo "Failed to build external rtl8723du module for kernel $kernel"; exit 1; }
Expand All @@ -181,7 +159,7 @@ rm -r ./chroot/tmp/rtl8723du || { echo "Failed to build external rtl8723du modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8812au ./chroot/tmp/ || { echo "Failed to build external rtl8812au module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8812au || { echo "Failed to build external rtl8812au module for kernel $kernel"; exit 1; }
Expand All @@ -192,7 +170,7 @@ rm -r ./chroot/tmp/rtl8812au || { echo "Failed to build external rtl8812au modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8814au ./chroot/tmp/ || { echo "Failed to build external rtl8814au module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8814au || { echo "Failed to build external rtl8814au module for kernel $kernel"; exit 1; }
Expand All @@ -203,7 +181,7 @@ rm -r ./chroot/tmp/rtl8814au || { echo "Failed to build external rtl8814au modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8821ce ./chroot/tmp/ || { echo "Failed to build external rtl8821ce module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8821ce || { echo "Failed to build external rtl8821ce module for kernel $kernel"; exit 1; }
Expand All @@ -214,7 +192,7 @@ rm -r ./chroot/tmp/rtl8821ce || { echo "Failed to build external rtl8821ce modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl8821cu ./chroot/tmp/ || { echo "Failed to build external rtl8821cu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl8821cu || { echo "Failed to build external rtl8821cu module for kernel $kernel"; exit 1; }
Expand All @@ -225,7 +203,7 @@ rm -r ./chroot/tmp/rtl8821cu || { echo "Failed to build external rtl8821cu modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl88x2bu ./chroot/tmp/ || { echo "Failed to build external rtl88x2bu module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl88x2bu || { echo "Failed to build external rtl88x2bu module for kernel $kernel"; exit 1; }
Expand All @@ -236,7 +214,7 @@ rm -r ./chroot/tmp/rtl88x2bu || { echo "Failed to build external rtl88x2bu modul

fi

if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/rtl885xxx ./chroot/tmp/ || { echo "Failed to build external rtl8852ae module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/rtl885xxx || { echo "Failed to build external rtl8852ae module for kernel $kernel"; exit 1; }
Expand All @@ -255,7 +233,7 @@ rm -r ./chroot/tmp/rtl885xxx || { echo "Failed to build external rtl8852ae modul

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/broadcom-wl ./chroot/tmp/ || { echo "Failed to build external broadcom-wl module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/broadcom-wl || { echo "Failed to build external broadcom-wl module for kernel $kernel"; exit 1; }
Expand All @@ -266,7 +244,7 @@ rm -r ./chroot/tmp/broadcom-wl || { echo "Failed to build external broadcom-wl m

fi

if [ "$kernel" == "4.19" ] || [ "$kernel" == "5.4" ] || [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/acpi_call ./chroot/tmp/ || { echo "Failed to build external acpi_call module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/acpi_call || { echo "Failed to build external acpi_call module for kernel $kernel"; exit 1; }
Expand All @@ -277,7 +255,7 @@ rm -r ./chroot/tmp/acpi_call || { echo "Failed to build external acpi_call modul

fi

if [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/ipts ./chroot/tmp/ || { echo "Failed to build external ipts module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/ipts || { echo "Failed to build external ipts module for kernel $kernel"; exit 1; }
Expand All @@ -288,7 +266,7 @@ rm -r ./chroot/tmp/ipts || { echo "Failed to build external ipts module for kern

fi

if [ "$kernel" == "5.10" ] || [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ]; then
if [ "$kernel" == "5.15" ] || [ "$kernel" == "6.1" ] || [ "$kernel" == "6.6" ]; then

cp -r ./external-drivers/ithc ./chroot/tmp/ || { echo "Failed to build external ithc module for kernel $kernel"; exit 1; }
cd ./chroot/tmp/ithc || { echo "Failed to build external ithc module for kernel $kernel"; exit 1; }
Expand Down
18 changes: 0 additions & 18 deletions external-drivers/broadcom-wl/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions external-drivers/ipts/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion external-drivers/ithc/.gitignore

This file was deleted.

96 changes: 0 additions & 96 deletions external-drivers/rtl8188eu/.gitignore

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions external-drivers/rtl8188eu/hostapd-2.9/src/drivers/.gitignore

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion external-drivers/rtl8188eu/hostapd-2.9/src/tls/.gitignore

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions external-drivers/rtl8188fu/Kconfig

This file was deleted.

Loading

0 comments on commit 5aa0744

Please sign in to comment.