@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.
Git Clone URL: | https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy) |
---|---|
Submitter: | Yoshi2889 |
Maintainer: | figue (figuepluto, jfigueras) |
Last Packager: | figue |
Votes: | 128 |
Popularity: | 2.29 |
First Submitted: | 2017-02-14 09:40 (UTC) |
Last Updated: | 2024-04-22 06:42 (UTC) |
« First ‹ Previous 1 .. 20 21 22 23 24 25 26 27 28 29 30 .. 51 Next › Last »
@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"?
@Teddo ??? maybe some odd issue with AUR? This package is working fine.
I can't download the package. fatal: branch name not valid: init.defaultBranch =
Pinned Comments
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: