#!/bin/bash # Native aarch64 build of bes2600 driver on ohm. # # Requires linux-pinetab2-headers package installed: # sudo pacman -S --noconfirm linux-pinetab2-headers # # Source tree expected at /home/mfritsche/bes2600-build/ — populate via: # tar -C ~/src/besser/linux-pinetab2/drivers/staging/bes2600 -cf - . | \ # ssh mfritsche@ohm.vpn 'mkdir -p ~/bes2600-build && tar -C ~/bes2600-build -xf -' # # (Mobian DKMS layout works too if you point at the bes2600/ subdir.) set -e cd /home/mfritsche/bes2600-build || { echo "no source tree at /home/mfritsche/bes2600-build"; exit 1; } [ -f Makefile ] || { echo "no Makefile in source tree"; exit 1; } # Clean stale root-owned files (in case sudo-make left some) sudo -n chown -R mfritsche:mfritsche . 2>/dev/null || true make clean # Native parallel build (4 cores on ohm) make -j4 # Strip to manageable size + report strip --strip-debug bes2600.ko -o bes2600.stripped.ko ls -lh *.ko modinfo bes2600.stripped.ko | grep -E 'srcversion|vermagic'