Skip to content

Commit

Permalink
config: fix missing name in network cards
Browse files Browse the repository at this point in the history
Fixes #706
  • Loading branch information
osy committed Dec 1, 2020
1 parent 3dc86ef commit 0c8a30a
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 95 deletions.
186 changes: 93 additions & 93 deletions Configuration/UTMConfiguration+ConstantsGenerated.m
Original file line number Diff line number Diff line change
Expand Up @@ -304,54 +304,54 @@ @implementation UTMConfiguration (ConstantsGenerated)
@"i386":
@[
@"isapc",
@"pc-q35-4.0.1",
@"pc-q35-3.1",
@"pc-q35-2.8",
@"pc-q35-5.0",
@"pc-q35-4.0",
@"pc-q35-4.2",
@"pc-q35-2.10",
@"pc-q35-4.1",
@"pc-q35-5.2",
@"pc-q35-2.12",
@"pc-q35-2.9",
@"pc-q35-2.11",
@"pc-q35-2.4",
@"pc-q35-2.5",
@"pc-q35-4.2",
@"pc-q35-4.0",
@"pc-q35-2.12",
@"pc-q35-4.0.1",
@"pc-q35-3.0",
@"pc-q35-5.1",
@"pc-q35-2.4",
@"pc-q35-2.6",
@"pc-q35-5.1",
@"pc-q35-2.7",
@"pc-q35-2.8",
@"pc-q35-3.1",
@"pc-q35-5.0",
@"pc-q35-2.10",
@"pc-q35-5.2",
@"pc-q35-4.1",
@"q35",
@"pc-i440fx-4.2",
@"pc-i440fx-4.1",
@"pc-i440fx-2.7",
@"pc-i440fx-2.4",
@"pc-i440fx-2.3",
@"pc-i440fx-2.1",
@"pc-i440fx-2.6",
@"pc-i440fx-1.5",
@"pc-i440fx-1.6",
@"pc-i440fx-2.10",
@"pc-i440fx-3.1",
@"pc-i440fx-2.11",
@"pc-i440fx-1.7",
@"pc-i440fx-3.0",
@"pc-i440fx-2.5",
@"pc-i440fx-2.4",
@"pc-i440fx-2.12",
@"pc-i440fx-1.7",
@"pc-i440fx-2.9",
@"pc-i440fx-4.0",
@"pc-i440fx-1.4",
@"pc-i440fx-3.0",
@"pc-i440fx-2.3",
@"pc-i440fx-1.5",
@"pc-i440fx-1.6",
@"pc-i440fx-2.8",
@"pc-i440fx-2.6",
@"pc-i440fx-2.0",
@"pc-i440fx-5.0",
@"pc-i440fx-2.1",
@"pc-i440fx-2.2",
@"pc-i440fx-1.4",
@"pc-i440fx-2.11",
@"pc-i440fx-2.7",
@"pc-i440fx-5.1",
@"pc-i440fx-2.9",
@"pc-i440fx-4.2",
@"pc-i440fx-2.2",
@"pc-i440fx-5.0",
@"pc-i440fx-3.1",
@"pc-i440fx-4.1",
@"pc-i440fx-2.8",
@"pc",
@"pc-i440fx-5.2",
@"pc-1.1",
@"pc-1.3",
@"pc-1.2",
@"pc-1.1",
@"pc-1.0",
@"none",
@"microvm",
Expand Down Expand Up @@ -454,26 +454,26 @@ @implementation UTMConfiguration (ConstantsGenerated)
@"none",
@"ppce500",
@"mpc8544ds",
@"pseries-2.3",
@"pseries-2.2",
@"pseries-2.12-sxxm",
@"pseries-4.1",
@"pseries-3.0",
@"pseries-5.1",
@"pseries-2.5",
@"pseries-2.12",
@"pseries-2.9",
@"pseries-2.10",
@"pseries-4.2",
@"pseries-2.8",
@"pseries-2.6",
@"pseries-4.2",
@"pseries-2.1",
@"pseries-4.0",
@"pseries-2.11",
@"pseries-5.0",
@"pseries-2.10",
@"pseries-2.7",
@"pseries-2.12",
@"pseries-4.1",
@"pseries-5.1",
@"pseries-2.4",
@"pseries-2.2",
@"pseries-3.0",
@"pseries-2.9",
@"pseries-3.1",
@"pseries-5.0",
@"pseries-2.6",
@"pseries-2.3",
@"pseries-2.12-sxxm",
@"pseries-2.5",
@"pseries-2.11",
@"pseries-4.0",
@"pseries",
@"pseries-5.2",
@"ref405ep",
Expand Down Expand Up @@ -566,54 +566,54 @@ @implementation UTMConfiguration (ConstantsGenerated)
@"x86_64":
@[
@"isapc",
@"pc-q35-4.0.1",
@"pc-q35-3.1",
@"pc-q35-2.8",
@"pc-q35-5.0",
@"pc-q35-4.0",
@"pc-q35-4.2",
@"pc-q35-2.10",
@"pc-q35-4.1",
@"pc-q35-5.2",
@"pc-q35-2.12",
@"pc-q35-2.9",
@"pc-q35-2.11",
@"pc-q35-2.4",
@"pc-q35-2.5",
@"pc-q35-4.2",
@"pc-q35-4.0",
@"pc-q35-2.12",
@"pc-q35-4.0.1",
@"pc-q35-3.0",
@"pc-q35-5.1",
@"pc-q35-2.4",
@"pc-q35-2.6",
@"pc-q35-5.1",
@"pc-q35-2.7",
@"pc-q35-2.8",
@"pc-q35-3.1",
@"pc-q35-5.0",
@"pc-q35-2.10",
@"pc-q35-5.2",
@"pc-q35-4.1",
@"q35",
@"pc-i440fx-4.2",
@"pc-i440fx-4.1",
@"pc-i440fx-2.7",
@"pc-i440fx-2.4",
@"pc-i440fx-2.3",
@"pc-i440fx-2.1",
@"pc-i440fx-2.6",
@"pc-i440fx-1.5",
@"pc-i440fx-1.6",
@"pc-i440fx-2.10",
@"pc-i440fx-3.1",
@"pc-i440fx-2.11",
@"pc-i440fx-1.7",
@"pc-i440fx-3.0",
@"pc-i440fx-2.5",
@"pc-i440fx-2.4",
@"pc-i440fx-2.12",
@"pc-i440fx-1.7",
@"pc-i440fx-2.9",
@"pc-i440fx-4.0",
@"pc-i440fx-1.4",
@"pc-i440fx-3.0",
@"pc-i440fx-2.3",
@"pc-i440fx-1.5",
@"pc-i440fx-1.6",
@"pc-i440fx-2.8",
@"pc-i440fx-2.6",
@"pc-i440fx-2.0",
@"pc-i440fx-5.0",
@"pc-i440fx-2.1",
@"pc-i440fx-2.2",
@"pc-i440fx-1.4",
@"pc-i440fx-2.11",
@"pc-i440fx-2.7",
@"pc-i440fx-5.1",
@"pc-i440fx-2.9",
@"pc-i440fx-4.2",
@"pc-i440fx-2.2",
@"pc-i440fx-5.0",
@"pc-i440fx-3.1",
@"pc-i440fx-4.1",
@"pc-i440fx-2.8",
@"pc",
@"pc-i440fx-5.2",
@"pc-1.1",
@"pc-1.3",
@"pc-1.2",
@"pc-1.1",
@"pc-1.0",
@"none",
@"microvm",
Expand Down Expand Up @@ -1245,9 +1245,9 @@ + (NSInteger)defaultTargetIndexForArchitecture:(NSString *)architecture {
+ (NSArray<NSString *>*)supportedNetworkCards {
return @[
@"e1000e",
@"e1000",
@"e1000-82545em",
@"e1000-82544gc",
@"e1000",
@"i82550",
@"i82551",
@"i82557a",
Expand Down Expand Up @@ -1304,21 +1304,21 @@ + (NSInteger)defaultTargetIndexForArchitecture:(NSString *)architecture {
@"MC97",
@"Rocker Switch",
@"VMWare Paravirtualized Ethernet v3",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"None",
@"ne2k_isa",
@"ne2k_pci",
@"pcnet",
@"rtl8139",
@"spapr-vlan",
@"sungem",
@"sunhme",
@"tulip",
@"usb-net",
@"virtio-net-ccw",
@"virtio-net-device",
@"virtio-net-pci",
@"virtio-net-pci",
@"virtio-net-pci-non-transitional",
@"virtio-net-pci-transitional",
];
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/const-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def generate(targets, machines, networkCards, soundCards):
output += generateMap('supportedTargetsForArchitecturePretty', 'architecture', targetKeys, {machine.name: [item.desc for item in machine.items] for machine in machines})
output += generateIndexMap('defaultTargetIndexForArchitecture', 'architecture', targetKeys, {machine.name: machine.default for machine in machines})
output += generateArray('supportedNetworkCards', [item.name for item in networkCards])
output += generateArray('supportedNetworkCardsPretty', [item.desc for item in networkCards])
output += generateArray('supportedNetworkCardsPretty', [item.desc if item.desc else item.name for item in networkCards])
output += generateArray('supportedSoundCardDevices', [item.name for item in soundCards])
output += generateArray('supportedSoundCardDevicesPretty', [item.desc for item in soundCards])
output += generateArray('supportedSoundCardDevicesPretty', [item.desc if item.desc else item.name for item in soundCards])
output += '@end\n'
return output

Expand Down

0 comments on commit 0c8a30a

Please sign in to comment.