diff --git a/user/linux-rm/APKBUILD b/user/linux-rm/APKBUILD index 6196160..962da1d 100644 --- a/user/linux-rm/APKBUILD +++ b/user/linux-rm/APKBUILD @@ -4,7 +4,7 @@ pkgname=linux-rm pkgver=5.4.70 _rmver=1.3.3 -pkgrel=2 +pkgrel=3 pkgdesc="Linux kernel with reMarkable patches" url=https://github.com/reMarkable/linux depends="initramfs-generator linux-firmware-brcm linux-firmware-cypress" @@ -30,7 +30,7 @@ for _i in $source; do _f=${_f#config-changes-} _flavors="$_flavors $_f" [ "linux-$_f" != "$pkgname" ] && subpackages="$subpackages linux-$_f::$CTARGET_ARCH" - subpackages="$subpackages linux-$_f-dev:_dev:$CBUILD_ARCH" + subpackages="$subpackages linux-$_f-dev:_dev:$CTARGET_ARCH" ;; esac done @@ -210,6 +210,11 @@ _dev() { # modules to believe this is the soruces rm "$dir"/Makefile "$dir"/source + # scripts aren't being crossbuilt from some reason + if cross_compiling; then + for i in $(scanelf -R "$dir" | awk '{print $2}' | sed '1d'); do rm "$i"; done + fi + # copy the needed stuff from real sources # # this is taken from ubuntu kernel build script