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

bump kernel and m1n1 #41

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2e01087
bump kernel and m1n1
joske Nov 25, 2023
820f304
bump again
joske Nov 29, 2023
111d30e
bump to 6.6-4
joske Nov 30, 2023
1e51489
put all -edge config in base too
joske Dec 1, 2023
e8398ef
bump to 6.6-6
joske Dec 4, 2023
12be136
bump to 6.6-9
joske Dec 12, 2023
98e9807
bump to 6.6-10 and m1n1 to 1.4.9
joske Dec 14, 2023
c9622a8
bump to 6.6-11
joske Dec 14, 2023
1e0630f
bump to 6.6-13
joske Dec 17, 2023
57a74f9
bump kernel to 6.6-14 and m1n1 to 1.4.11
joske Dec 25, 2023
31950b1
remove -edge kernel
joske Jan 24, 2024
d20f48b
bump m1n1 dep
joske Jan 24, 2024
a2399b2
bump kernel to 6.6-15
joske Feb 15, 2024
92c74aa
bump kernel to 6.6-16
joske Apr 12, 2024
318d117
bump kernel to 6.8.9 and m1n1 to 1.4.12
joske May 5, 2024
e85991a
bump u-boot
joske May 5, 2024
f32fafd
update config built with GCC
joske May 13, 2024
a8a5ac5
bump to 6.8.9-5
joske May 13, 2024
7594906
Enable speakers
mkurz May 15, 2024
f186b03
Merge pull request #4 from mkurz/kernel-with-speakers-enabled
joske May 15, 2024
da2f666
bump pkgrel after adding the audio patches
joske May 15, 2024
592f2e0
Enable UCLAMP to safe battery with speakers
mkurz May 17, 2024
d2e97ef
Update config according to wiki and Fedora config
mkurz May 17, 2024
2318283
enable CONFIG_RUST_PHYLIB_ABSTRACTIONS, like Fedora and Ubuntu
mkurz May 17, 2024
ec3213d
Update b2sum and sha256sum for config file
mkurz May 17, 2024
9c340e0
Merge pull request #5 from mkurz/updated-kernel-configs
joske May 17, 2024
e866eb7
bump kernel to 6.8.9-6
joske May 17, 2024
a710373
bump m1n1 to 1.4.13
joske May 17, 2024
42daea1
bump m1n1 to 1.4.14
joske May 18, 2024
e46fc8b
fix checksums
joske May 21, 2024
23af94b
add rust toolchain file
joske May 22, 2024
3b9e391
bump to 6.8.9-7
joske May 22, 2024
b69532a
bump to 6.8.10-4
joske May 28, 2024
b3f78f6
bump to 6.9.6-1
joske Jun 22, 2024
ef98345
remove unneeded patches
joske Jun 22, 2024
42afae8
add back patch section
joske Jun 22, 2024
14913f3
bump to 6.9.7-1
joske Jul 2, 2024
8022547
bump to 6.9.11-1
mkurz Jul 26, 2024
935b221
Bump to 6.9.12-1
mkurz Jul 28, 2024
19002cd
Merge pull request #8 from mkurz/kernel
joske Jul 29, 2024
2808ca0
bump to 6.9.12-2
mkurz Aug 6, 2024
4553f84
Merge pull request #9 from mkurz/kernel
joske Oct 6, 2024
241e4f7
bump m1n1 to 1.4.16
joske Oct 21, 2024
bbd2e58
bump kernel to 6.11.2 and add CONFIG_SECURITY_LANDLOCK=y
joske Oct 21, 2024
afd8e27
bump m1n1 to 1.4.17
joske Nov 3, 2024
c4729ce
bump u-boot to 2024-10
joske Nov 3, 2024
6f65e13
bump kernel to 6.11.4
joske Nov 3, 2024
5232ea9
depend on mesa-asahi
joske Nov 3, 2024
2866e7f
Add landlock to CONFIG_LSM to enable it
mkurz Nov 2, 2024
ccc3f08
bump kernel to 6.11.6-2
mkurz Nov 2, 2024
a042128
Merge pull request #11 from mkurz/kernel-mkurz
joske Nov 4, 2024
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
54 changes: 12 additions & 42 deletions linux-asahi/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

buildarch=8

_rcver=6.5
_rcver=6.11.6
#_rcrel=3
_asahirel=15
_asahirel=2
pkgrel=1

_m1n1_version=1.4.0
_m1n1_version=1.4.17

pkgbase=linux-asahi
#_commit_id=asahi-${_nextver}-${_asahirel}
Expand All @@ -28,14 +28,11 @@ options=('!strip')
source=(
https://github.com/AsahiLinux/linux/archive/${_commit_id}.tar.gz
config # the main kernel config file
config.edge # overrides for linux-asahi-edge
)
sha256sums=('633796ecdc1e210565a67b20f8fdaa748204c32275403212a30f735b8de66abd'
'46917e449d51ce37675442cd280892f6521b719bdb75a05b558d456ad7fc9193'
'5cbdda1262f989a5247f4ef70690b569f9be8212bf8f576242bf6ac69036bddf')
b2sums=('f1e8ca0919f218dce288a9f024fd211239212a17d7c19cf5f43736519fc6e7b7ef90853c3d80485ada2f2b2c0d91954c543f8f52d517317f25deed118cd8a0cd'
'8b3089d22d0b68e9b0c20a5e8f7ebe2626ef43cdc7053a94590ea3ca25417e76866e220ae98ff184e4912033d877eb89fd3c64bbe476889696220c5dd3b05e97'
'01a8b3b7e3c7bd528f6d07d2b581b8a56688305d42fdd0b1555fd26319c4369e2357bcaa8434a1a5e3123aa9fdc6f1a24de4813b819397af89ba8d0c5e896228')
sha256sums=('2f14dc3c85e5970a46967b8af9b64b7176fc0700df8a187d79cf4c5fef812c07'
'7bb7f30b8ea2dff28f9c1dcab036c65adde6d8bb7b3d0f48588b6ecf66e327a7')
b2sums=('7512b73ad8ec0ddb0eee37df46395bc800f88dda76bfdbcff4bb614d92ab1b2810248139e128d5cf98b6f7e73772a92591f5fd24c6384f7ec927c094be0f34b6'
'6b0de7ca5943a836ae2c85258cbd690ab93b46ec39539e53907802a656097f7a3271e4ce39e611eb36533b98dc5420ccd6cfe8d339189fe49caa464ad90b34d0')
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Expand All @@ -56,45 +53,31 @@ prepare() {
done

echo "Creating build directories..."
mkdir -p build/base build/edge
mkdir -p build/base

echo "Setting config (base)..."
cp ../config build/base/.config
make olddefconfig prepare O=$PWD/build/base
diff -u ../config build/base/.config || :
make -s kernelrelease O=$PWD/build/base > build/base/version

echo "Setting config (edge)..."
cat build/base/.config ../config.edge > build/edge/.config
make olddefconfig prepare O=$PWD/build/edge
make -s kernelrelease O=$PWD/build/edge > build/edge/version

echo "Prepared $pkgbase version $(<build/base/version)"
}

build() {
cd $_srcname
echo "Building base..."
make all O=$PWD/build/base
echo "Copying objects..."
cp build/edge/.config{,.save}
touch build/base/.config
cp -urT build/{base,edge}
rm build/edge/init/version.o
make O=$PWD/build/edge oldconfig prepare
cp build/edge/.config{.save,}
echo "Building edge..."
make O=$PWD/build/edge oldconfig prepare
make O=$PWD/build/edge all
}

_package_kernel() {
pkgdesc="The $pkgdesc kernel and modules"
depends=(coreutils kmod initramfs $2 "m1n1>=$_m1n1_version")
depends=(coreutils kmod initramfs $2 "m1n1>=$_m1n1_version" "mesa-asahi>=24.3.0_pre20241006-1")
optdepends=('crda: to set the correct wireless channels of your country'
'linux-firmware: firmware images needed for some devices')
provides=(WIREGUARD-MODULE linux=${pkgver})
replaces=(wireguard-arch)
conflicts=($pkgbase-edge)

local kernver="$(<$O/version)"
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
Expand All @@ -114,7 +97,7 @@ _package_kernel() {
install -Dt "$modulesdir/dtbs" "$O"/arch/arm64/boot/dts/apple/*.dtb

# remove build and source links
rm "$modulesdir"/{source,build}
rm -f "$modulesdir"/{source,build}
}

_package() {
Expand All @@ -123,12 +106,6 @@ _package() {
_package_kernel "$pkgbase"
}

_package-edge() {
cd $_srcname
export O="$PWD/build/edge"
_package_kernel "$pkgbase-edge" "$pkgbase=$pkgver"
}

_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
depends=(pahole)
Expand Down Expand Up @@ -217,16 +194,9 @@ _package-headers() {
mkdir -p "$pkgdir/usr/src"
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"

O=build/edge
local builddir2="$pkgdir/usr/lib/modules/$(<${O}/version)/build"
mkdir -p $builddir2
cp -rl $builddir/* $builddir2
cp --remove-destination $O/{.config,System.map,version,Module.symvers,vmlinux} $builddir2
rm -rf $builddir2/include/config
cp -r $O/include/config $builddir2/include/config
}

pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-edge")
pkgname=("$pkgbase" "$pkgbase-headers")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
Expand Down
Loading