aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/devicetable-offsets.c3
-rw-r--r--scripts/mod/file2alias.c10
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c
index bb5d115ca671..f282516acc7b 100644
--- a/scripts/mod/devicetable-offsets.c
+++ b/scripts/mod/devicetable-offsets.c
@@ -174,6 +174,9 @@ int main(void)
174 DEVID_FIELD(x86_cpu_id, model); 174 DEVID_FIELD(x86_cpu_id, model);
175 DEVID_FIELD(x86_cpu_id, vendor); 175 DEVID_FIELD(x86_cpu_id, vendor);
176 176
177 DEVID(cpu_feature);
178 DEVID_FIELD(cpu_feature, feature);
179
177 DEVID(mei_cl_device_id); 180 DEVID(mei_cl_device_id);
178 DEVID_FIELD(mei_cl_device_id, name); 181 DEVID_FIELD(mei_cl_device_id, name);
179 182
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 25e5cb0aaef6..506146e5f4a8 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -1135,6 +1135,16 @@ static int do_x86cpu_entry(const char *filename, void *symval,
1135} 1135}
1136ADD_TO_DEVTABLE("x86cpu", x86_cpu_id, do_x86cpu_entry); 1136ADD_TO_DEVTABLE("x86cpu", x86_cpu_id, do_x86cpu_entry);
1137 1137
1138/* LOOKS like cpu:type:*:feature:*FEAT* */
1139static int do_cpu_entry(const char *filename, void *symval, char *alias)
1140{
1141 DEF_FIELD(symval, cpu_feature, feature);
1142
1143 sprintf(alias, "cpu:type:*:feature:*%04X*", feature);
1144 return 1;
1145}
1146ADD_TO_DEVTABLE("cpu", cpu_feature, do_cpu_entry);
1147
1138/* Looks like: mei:S */ 1148/* Looks like: mei:S */
1139static int do_mei_entry(const char *filename, void *symval, 1149static int do_mei_entry(const char *filename, void *symval,
1140 char *alias) 1150 char *alias)