fwupd/libfwupdplugin/tests/quirks.d/tests.quirk
Richard Hughes 6894f67dc5 Do not use GKeyFile to parse quirk files
There are two reasons for this. First is that GKeyFile is quite inefficient,
using a large amount of heap memory when loading. Given we don't actually use
the merge and replace functionality of GKeyFile and we only need line-by-line
access we can parse this ourselves and reduce the peak RSS considerably.

This also accidentally fixes another bug. Moving from multiple quirk files to
a single builtin.quirk meant that multiple subsystem plugins were deduped --
which isn't really what we wanted. For example, this now works:

    [MEI]
    Plugin = one
    [MEI]
    Plugin = two
2022-10-12 15:12:56 +01:00

33 lines
516 B
Plaintext

[USB\VID_0A5C&PID_6412]
Flags = ignore-runtime
[ACME Inc.=True]
Name = awesome
[CORP*]
Name = town
[USB\VID_0BDA&PID_1100]
Flags = clever
Name = Hub
Children = FuDevice|USB\VID_0763&PID_2806&I2C_01
[USB\VID_0763&PID_2806&I2C_01]
Name = HDMI
Flags = updatable,internal
[CFI\FLASHID_3730]
Name = A25Lxxx
CfiDeviceCmdChipErase = 0xc7
CfiDeviceCmdSectorErase = 0x20
CfiDevicePageSize = 0x200
CfiDeviceSectorSize = 0x2000
CfiDeviceBlockSize = 0x8000
FirmwareSizeMax = 0x10000
[MEI]
Plugin = one
[MEI]
Plugin = two