@agamemnon failure occurred in prepare? What happened?
With yay, you can try to export as global variable, for instance "export _microarchitecture=42"
Git Clone URL: | https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy) |
---|---|
Package Base: | linux-xanmod |
Description: | The Linux kernel and modules with Xanmod patches |
Upstream URL: | http://www.xanmod.org/ |
Licenses: | GPL2 |
Provides: | KSMBD-MODULE, NTFS3-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE |
Replaces: | virtualbox-guest-modules-arch, wireguard-arch |
Submitter: | Yoshi2889 |
Maintainer: | figue (figuepluto, jfigueras) |
Last Packager: | figue |
Votes: | 132 |
Popularity: | 1.46 |
First Submitted: | 2017-02-14 09:40 (UTC) |
Last Updated: | 2025-01-17 20:12 (UTC) |
« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 .. 52 Next › Last »
@agamemnon failure occurred in prepare? What happened?
With yay, you can try to export as global variable, for instance "export _microarchitecture=42"
@figue
I tried running
, however I am unable to edit the pkgbuild prior to installation. If I download the pkgbuild and manually change the architecture, it reverts back to 0 or doesn't run the pkgbuild.yay --editmenu -S linux-xanmod
I always get the error if I run
env _microarchitecture=42 makepkg -sic
where the pkgbuild is locate.
==> ERROR: A failure occurred in prepare().
@agamemnon just define in the terminal the variable _microarchitecture to your desired value, for example:
env _microarchitecture=42 makepkg -sic
That will build for native.
how I can i edit the results from gcc-optimization? It defaults to the generic cpu, but I know my cpu microarchitecture, and I can't manually edit it.
@figue with the snapshot and makepkg I installed it but with pikaur and git clone
I still have the error
fatal: branch name not valid: init.defaultBranch =
@Teddo IDK about pikaur... Use regular git clone and makepkg to build the package and we see where is the issue.
@figue I don't know. I'm using pikaur and I can install other packages
@Singularity great! If nobody has any objection, I'll implement it in all xanmod packages I maintain. Thank you!
Answering your question, "myconfig" idea was born here, in XanMod's AUR package as far as I know and implemented only here by myself... But I don't know if others have taken this idea for their packages too.
@figue Good idea, and it works. I adjusted it a bit farther:
- if echo "$_linec" | grep "scripts/config" ; then
- set -- $_linec
- "$@"
+ if echo "$_linec" | grep -e "scripts/config" -e "^#" ; then
+ bash -c '$_linec'
Example config (but nothing special here):
scripts/config --enable CONFIG_SATA_AHCI
scripts/config --module CONFIG_ASHMEM
scripts/config --enable "CONFIG_ANDROID_BINDER_IPC"
# Btw, scripts/config will use by default CONFIG_ as prefix
scripts/config --enable ANDROID_BINDERFS
scripts/config --set-str CONFIG_ANDROID_BINDER_DEVICES ''
# leading / trailing whitespaces are trimmed by bash due to the IFS, so that line is matched by grep ^# too
Btw, are there other packages which also allow for a "myconfig"?
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: