Changeset 185ffd9 for kernel-config


Ignore:
Timestamp:
07/31/2023 01:44:36 PM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
921c13a
Parents:
4955b595
git-author:
Xi Ruoyao <xry111@…> (07/30/2023 08:47:59 AM)
git-committer:
Xi Ruoyao <xry111@…> (07/31/2023 01:44:36 PM)
Message:

kernel-config: Allow specifying non-module style forcing for tristate

instead of relying on unsound heuristic.

Location:
kernel-config
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel-config/kernel-config.py

    r4955b595 r185ffd9  
    104104                    raise Exception('unknown setting %s for %s' % (c, key))
    105105            bracket = None
    106             if klass == 'tristate':
    107                 if forced and 'M' not in val:
    108                     # render this "as-is" a forced bool
    109                     klass = 'bool'
    110                 else:
    111                     bracket = '{}' if forced else '<>'
    112 
    113             if klass == 'bool':
     106            if klass == 'tristate' and forced != '*' :
     107                bracket = '{}' if forced else '<>'
     108            else:
    114109                bracket = '--' if forced else '[]'
    115110
    116             if not bracket:
    117                 raise Exception('should not reach here')
    118111            val = bracket[0] + '/'.join(val) + bracket[1]
    119112
  • kernel-config/postlfs/filesystems/uefi-bootloaders/grub-setup.toml

    r4955b595 r185ffd9  
    66DRM_FBDEV_EMULATION="*"
    77DRM_SIMPLEDRM="*"
    8 # forced by !EXPERT
    98FB="*"
     9# forced by VT && TTY, with !EXPERT VT and TTY are always set
    1010FRAMEBUFFER_CONSOLE = { value = "*", forced = true }
    1111VFAT_FS="*M"
    1212EFIVAR_FS="*M"
    13 # forced by ACPI, it's highly unlikely people will disable ACPI...
    14 NLS = { value = "*", forced = true }
     13# forced by both ACPI and PCI on a typical x86 desktop/server system
     14NLS = { value = "*", forced = "*" }
    1515NLS_CODEPAGE_437="*M"
    1616NLS_ISO8859_1="*M"
  • kernel-config/x/installing/libevdev.toml

    r4955b595 r185ffd9  
    1 INPUT = { value = "*", forced = true }
     1# forced by VT && TTY, with !EXPERT VT and TTY are always set
     2INPUT = { value = "*", forced = "*" }
    23INPUT_EVDEV="*M"
Note: See TracChangeset for help on using the changeset viewer.