@yurikoles
Here is a fork of this package which updates on a regular basis - https://aur.archlinux.org/packages/linux-mainline-git
Git Clone URL: | https://aur.archlinux.org/linux-git.git (read-only, click to copy) |
---|---|
Package Base: | linux-git |
Description: | Headers and scripts for building modules for the Linux (Git) kernel |
Upstream URL: | https://www.kernel.org |
Keywords: | git kernel linux |
Licenses: | GPL2 |
Submitter: | jonathanio |
Maintainer: | sickcodes (jonathanio, osimarr) |
Last Packager: | jonathanio |
Votes: | 9 |
Popularity: | 0.64 |
First Submitted: | 2019-12-22 10:10 (UTC) |
Last Updated: | 2020-11-04 21:11 (UTC) |
@yurikoles
Here is a fork of this package which updates on a regular basis - https://aur.archlinux.org/packages/linux-mainline-git
Doesn't build.
==> Starting prepare()...
Setting version...
Usage: scripts/setlocalversion [srctree]
==> ERROR: A failure occurred in prepare().
Aborting...
we now have flags for the repo cloning which saves quite some bandwith, e.g.:
GITFLAGS="--depth=1" makepkg
GITFLAGS="--depth=1" paru -S linux-mainline
in case the repo supports partial clones, --filter=tree:0
would be an option as well. this then even updates the repo correctly as soon as this is merged:
https://gitlab.archlinux.org/pacman/pacman/-/merge_requests/53
i'd be glad if you could try out your use case and maybe put a comment into the merge request?
https://github.com/archlinux/svntogit-packages/blob/41e9b62450ed0e7f520fa49be7117399da2d53f8/trunk/PKGBUILD#L112 needs to be added or dkms can fail spectacularly.
I personally use this a lot to build arbitrary kernels but it needs a cleanup;
Tons of Steam Deck users are gonna be playing around so wanna add 'any', and GKH is maintaining 5.10.y and a whole bunch of other kernels due to popular demand.
@osimarr should I delete this or convert it into just a generic x.x.y PKGBUILD?
5.15 Greg Kroah-Hartman & Sasha Levin 2021-10-31 Oct, 2023
5.10 Greg Kroah-Hartman & Sasha Levin 2020-12-13 Dec, 2026
5.4 Greg Kroah-Hartman & Sasha Levin 2019-11-24 Dec, 2025
4.19 Greg Kroah-Hartman & Sasha Levin 2018-10-22 Dec, 2024
4.14 Greg Kroah-Hartman & Sasha Levin 2017-11-12 Jan, 2024
4.9 Greg Kroah-Hartman & Sasha Levin 2016-12-11 Jan, 2023
via kernel.org
Ok created a public working copy here with history: https://github.com/sickcodes/linux-git
Just submitting a PR, with the way I use it; would love to see how everyone else uses this
@osimarr, see https://github.com/sickcodes/linux-git/invitations
Perhaps merge and you take charge?
I changed it to 'any' and used zcat config.gz
@osimarr sure gimme sec, I will create a repo for PRs if that helps, Ill show you what I use and you can show me what you use and we can come up with something cool
If possible, I'd like to co-maintain too. I created linux-mainline-git as I'm using it regularly. I'm basing the config on official Arch's config + extra configs I may notice important.
Just adopted unless anyone else wants to co-maintain, I'll make it update to latest release kernel, based off what /proc/config.gz you're using.
I got this error when compiling second time to bisect a bug.
make[4]: *** No rule to make target 'libbpf_legacy.h', needed by '/mnt/d/code/linux-git/src/linux/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o'. Stop.
make[3]: *** [Makefile:158: /mnt/d/code/linux-git/src/linux/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
make[2]: *** [Makefile:44: /mnt/d/code/linux-git/src/linux/tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
I fixed it by changing
make all
to make clean all
.
Pinned Comments
sickcodes commented on 2022-03-19 21:50 (UTC) (edited on 2022-03-19 22:02 (UTC) by sickcodes)
Ok created a public working copy here with history: https://github.com/sickcodes/linux-git
Just submitting a PR, with the way I use it; would love to see how everyone else uses this
@osimarr, see https://github.com/sickcodes/linux-git/invitations
Perhaps merge and you take charge?
I changed it to 'any' and used zcat config.gz
jonathanio commented on 2019-12-22 10:14 (UTC) (edited on 2020-09-28 10:15 (UTC) by jonathanio)
The last version of the linux-git package was disowned and deleted. I've restored it taken ownership, as I do make use of this package.
This package will automatically update it's version
Note: This is a -git package and the version will automatically update to the latest mainline commit when it is run, having pulled down the branch from the repository. It will normally only be updated between major versions in order to include any updated configuration for new modules and features or settings changes.