mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-17 05:13:32 +00:00

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
33 lines
516 B
Plaintext
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
|