diff --git a/util/newconfig/config.g b/util/newconfig/config.g index a28506024b..0fd87111df 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -1189,7 +1189,13 @@ parser Config: rule superio<>: SUPERIO PATH {{ if (C): part('superio', PATH, 'Config.lb') }} partend<> - rule cpu<>: CPU ID {{ if (C): part('cpu', ID, 'Config.lb') }} + # This is needed because the legacy cpu command could not distinguish + # between cpu vendors. It should just be PATH, but getting this change + # into the source tree will be tricky... + rule cpuid: ID {{ return ID }} + | PATH {{ return PATH }} + + rule cpu<>: CPU cpuid {{ if (C): part('cpu', cpuid, 'Config.lb') }} partend<> rule pmc<>: PMC PATH {{ if (C): part('pmc', PATH, 'Config.lb') }}