Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11617

sys-kernel/debian-sources builds generic64 kernel instead of using native or subarch optimizations

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Hide
      $ ebuild /var/git/meta-repo/kits/core-kit/sys-kernel/debian-sources/debian-sources-6.4.13_p1.ebuild prepare
      $ cd /var/tmp/portage/sys-kernel/debian-sources-6.4.13_p1/work/linux-6.4.13
      $ make menuconfig
      ... go to Processor type and features -> Processor family (Generic-x86-64)
      ... there are no appropriate options in the list :(

      would be great if someone can confirm!
      Show
      $ ebuild /var/git/meta-repo/kits/core-kit/sys-kernel/debian-sources/debian-sources-6.4.13_p1.ebuild prepare $ cd /var/tmp/portage/sys-kernel/debian-sources-6.4.13_p1/work/linux-6.4.13 $ make menuconfig ... go to Processor type and features -> Processor family (Generic-x86-64) ... there are no appropriate options in the list :( would be great if someone can confirm!
    • debian-sources does not take advantage of available CPU optimizations on at least some machines --- and it could!
    • code to detect subarch in the ebuild is not sufficiently generic

       

      The relevant part of the build log:

       * Setting CONFIG_MODULE_SIG=n in kernel config.
       * Setting CONFIG_GENERIC_CPU=n in kernel config.
       * Setting =y in kernel config.
      >>> Source prepared.
      

      The absence of a key from the penultimate line indicates that the subarch wasn't found properly.  Have now tested on two machines, one with subarch intel64-sandybridge and other amd64-zen3.  With gentoo-sources [unsupported in Funtoo, but the Gentoo ebuild works with only a minor adjustment], there are many options in the list that are absent from debian-sources, including intel64-sandybridge and amd64-zen3.

       

            drobbins drobbins
            cuantar cuantar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: