Skip to content

How to compile with -march=znver2 ? #269

Closed

Description

@mabod

I saw that the zen-kernel already includes more-uarches-for-kernel-5.15+.patch
But I do not succeed in setting CONFIG_MZEN2. If I add

scripts/config --enable CONFIG_MZEN2

to the PKGBUILD (I am on Arch Linux) it does not make a difference.

What is the proper way to compile the zen-kernel for a different architecture?

Activity

  1. mabod commented on Dec 17, 2021

    @mabod
    Author

    I got it. I had to disable CONFIG_GENERIC_CPU as well. So these two lines do the job:

      scripts/config --disable CONFIG_GENERIC_CPU
      scripts/config --enable CONFIG_MZEN2
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions