Skip to content
Closed
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
21 changes: 20 additions & 1 deletion pkgbuilds/linux-omarchy/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Maintainer: The Omarchy Authors
# Adopted from the Arch Linux linux package.

Expand All @@ -8,6 +8,7 @@
url='https://omarchy.org'
arch=(
x86_64
aarch64
)
license=(GPL-2.0-only)
makedepends=(
Expand Down Expand Up @@ -186,6 +187,7 @@
8213-xe-hibernation-writeback-gated.patch{,.sig}
)
source_x86_64=(config.x86_64)
source_aarch64=(config.aarch64)
validpgpkeys=(
ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds
647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman
Expand Down Expand Up @@ -480,6 +482,7 @@
'ae93d961d0eef41ed39c473fe9478b62fab13ba395333b3c11b34b7787904a3d2684520ec76dbe2603dd96a146a68bcbe98da1b7e4cc1e659246127384bce22c'
'SKIP')
b2sums_x86_64=('92ba00a8ce0ff16806ca125e22434eb687ac8b74d9daf4fffe0cc8de54b13affc75b48792c7c32f3427387c2e147046d169da2d6353f4b9e2abe04addbf5369b')
b2sums_aarch64=('8a2458896149811113722e1bc3f54c03c95cd83b64d139d7353a6e1ff8f7f207156f54117e7911e6c73580a64c86fbd825724525a6e7e555f61b48be77652e2b')

# https://www.kernel.org/pub/linux/kernel/v7.x/sha256sums.asc
sha256sums=('12e8d5a973d1ad7c5a5c69882e4022b131ed715db7003fdcd760ddf8c3e51941'
Expand Down Expand Up @@ -809,6 +812,10 @@
build() {
cd $_srcname
MAKEFLAGS="-j$(nproc) $MAKEFLAGS"
# Build arm64 device trees with symbols so overlays can be applied to them,
# like Arch Linux ARM does. Set in the environment, not on the make command
# line, so the kernel's own dtc flags still apply.
[[ $CARCH == aarch64 ]] && export DTC_FLAGS=-@
make all
env -u CFLAGS -u CXXFLAGS -u LDFLAGS \
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1
Expand Down Expand Up @@ -841,7 +848,11 @@
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
# arm64 image_name is the gzip Image.gz, which neither UEFI nor systemd-stub
# can start; ship the raw EFI-stub Image like Arch Linux ARM does.
local image; image="$(make -s image_name)"
[[ $CARCH == aarch64 ]] && image=arch/arm64/boot/Image
install -Dm644 "$image" "$modulesdir/vmlinuz"

# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
Expand All @@ -850,6 +861,13 @@
ZSTD_CLEVEL=19 make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod

if [[ $CARCH == aarch64 ]]; then
echo "Installing device trees..."
# Next to the modules, like linux-aurora: they match this kernel, stay off
# the ESP and do not collide with another installed kernel's.
make INSTALL_DTBS_PATH="$modulesdir/dtbs" dtbs_install
fi

# remove build link
rm "$modulesdir"/build
}
Expand All @@ -875,6 +893,7 @@
local karch
case $CARCH in
x86_64) karch=x86 ;;
aarch64) karch=arm64 ;;
*) echo "Unknown CARCH $CARCH"; exit 1 ;;
esac

Expand Down
Loading
Loading