diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-20 10:27:24 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-20 10:27:24 +0200 |
commit | f9adc9a8a7ac6cb7f3405899e92ba3c91d13b6ff (patch) | |
tree | 1e7f0aae80705116c7eba231060dbcc815b253f9 /descriptor-bios.pl | |
parent | 88d3f39fa39d3f643d5186cdb4e7f33a693a06b5 (diff) | |
download | seabios-f9adc9a8a7ac6cb7f3405899e92ba3c91d13b6ff.tar.gz |
add firmware descriptor files
Diffstat (limited to 'descriptor-bios.pl')
-rwxr-xr-x | descriptor-bios.pl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/descriptor-bios.pl b/descriptor-bios.pl new file mode 100755 index 0000000..ffb8845 --- /dev/null +++ b/descriptor-bios.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl +use strict; +use warnings; +use JSON; + +my $desc = shift; +my $file = shift; +die "arguments missing" unless defined($desc) and defined($file); + +my $json = JSON->new->allow_nonref; +my $info; +my $x86; +my $x64; + +$x86->{'architecture'} = 'i386'; +$x86->{'machines'} = [ 'pc-i440fx-*', 'pc-q35-*' ]; +$x64->{'architecture'} = 'x86_64'; +$x64->{'machines'} = [ 'pc-i440fx-*', 'pc-q35-*' ]; + +$info->{'description'} = $desc; +$info->{'interface-types'} = [ 'bios' ]; +$info->{'mapping'}->{'device'} = 'memory'; +$info->{'mapping'}->{'filename'} = $file; +$info->{'targets'} = [ $x86, $x64 ]; +$info->{'features'} = [ 'acpi-s3', 'acpi-s4' ]; +$info->{'tags'} = [ 'git master autobuild' ]; + +print $json->pretty->encode($info); |