Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x20 driver compilation #19

Merged
merged 7 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_for_x20.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build on x86 lunar
name: build on x20

on: [push]

Expand Down
19 changes: 17 additions & 2 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,27 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
echo "_____________________________________________"
ls -a /usr/src/
elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; then
sudo pip3 install --upgrade cloudsmith-cli
echo "building for the x20"
sudo apt update
sudo apt install -y build-essential flex bc bison dkms linux-headers-5.8.0-29-generic
sudo apt install -y build-essential flex bc bison dkms git
wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-hwe-5.8-headers-5.8.0-29_5.8.0-29.31~20.04.1_all.deb
dpkg -i *.deb
rm -Rf *.deb
wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-headers-5.8.0-29-generic_5.8.0-29.31~20.04.1_armhf.deb
dpkg -i *.deb
echo "---------------"
echo "_____________________________________________"
ls -a /usr/src/
make KSRC=/usr/src/linux-headers-5.8.0-29-generic O="" modules
mkdir -p package/lib/modules/5.8.0/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/5.8.0/kernel/drivers/net/wireless/
ls -a
fpm -a armhf -s dir -t deb -n rtl8812au-x20 -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl8812au-x20.deb --before-install before-install.sh --after-install after-install.sh
echo "push to cloudsmith"
git describe --exact-match HEAD >/dev/null 2>&1
echo "Pushing the package to OpenHD 2.5 repository"
ls -a
cloudsmith push deb --api-key "$API_KEY" openhd/release/debian/bullseye rtl8812au-x20.deb || exit 1
else

sudo apt update
Expand Down
Loading