Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Porridge:linux-mainline
linux-mainline
PKGBUILD
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PKGBUILD of Package linux-mainline
# Maintainer: None # Used for testing # # Based on AUR package by # Maintainer: Mikael Eriksson <mikael_eriksson[@]miffe.org> # # Based on the linux package by: # Maintainer: Jan Alexander Steffens (heftig) <heftig[@]archlinux.org> pkgbase=linux-mainline # Build stock -ARCH kernel #pkgbase=linux-custom # Build kernel with a different name pkgname=( "$pkgbase" # "$pkgbase-headers" # "$pkgbase-docs" ) # build w/o headers & docs to make build faster _tag=v6.10-rc1 pkgver=6.10rc1 _srcname=linux-6.10-rc1 pkgrel=1 pkgdesc="Linux Mainline" arch=(x86_64) url="https://kernel.org/" license=(GPL-2.0-only) makedepends=( bc cpio gettext git libelf pahole perl python tar xz ) options=( !strip !debug ) #_srcname=linux-mainline source=( "https://codeload.github.com/torvalds/linux/tar.gz/refs/tags/$_tag" #"https://raw.githubusercontent.com/archlinux/aur/linux-mainline/config" # the main kernel config file "https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config" ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman 'A2FF3A36AAA56654109064AB19802F8B0D70FC30' # Jan Alexander Steffens (heftig) ) sha256sums=('SKIP' 'SKIP') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" _make() { test -s version make KERNELRELEASE="$(<version)" "$@" } prepare() { cd $_srcname echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname make defconfig make -s kernelrelease > version make mrproper local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config _make olddefconfig diff -u ../config .config || : echo "Prepared $pkgbase version $(<version)" } build() { cd $_srcname __nthreads=$(($(nproc) + 1)) make -j${__nthreads} all # _make all # _make htmldocs } _package() { pkgdesc="The $pkgdesc kernel and modules" depends=( coreutils initramfs kmod ) optdepends=( 'wireless-regdb: to set the correct wireless channels of your country' 'linux-firmware: firmware images needed for some devices' ) provides=( KSMBD-MODULE VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE ) cd $_srcname local modulesdir="$pkgdir/usr/lib/modules/$(<version)" 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" # Used by mkinitcpio to name the kernel echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" echo "Installing modules..." ZSTD_CLEVEL=19 _make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \ DEPMOD=/doesnt/exist modules_install # Suppress depmod # remove build and source links rm -f "$modulesdir"/{source,build} } for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") _package${_p#$pkgbase} }" done # vim:set ts=8 sts=2 sw=2 et:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor