mock-core-configs/mock-riscv64-configs.patch
David Abdurachmanov 2b27bae043
Add fake mock configs for riscv64
Otherwise mock doesn't want to work.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-11-23 16:09:33 +02:00

43 lines
1.3 KiB
Diff

diff --git a/etc/mock/fedora-37-riscv64.cfg b/etc/mock/fedora-37-riscv64.cfg
new file mode 100644
index 0000000..7374dec
--- /dev/null
+++ b/etc/mock/fedora-37-riscv64.cfg
@@ -0,0 +1,5 @@
+config_opts['releasever'] = '37'
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-branched.tpl')
diff --git a/etc/mock/fedora-38-riscv64.cfg b/etc/mock/fedora-38-riscv64.cfg
new file mode 100644
index 0000000..65beeab
--- /dev/null
+++ b/etc/mock/fedora-38-riscv64.cfg
@@ -0,0 +1,4 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-rawhide.tpl')
diff --git a/etc/mock/fedora-eln-riscv64.cfg b/etc/mock/fedora-eln-riscv64.cfg
new file mode 100644
index 0000000..3cf209c
--- /dev/null
+++ b/etc/mock/fedora-eln-riscv64.cfg
@@ -0,0 +1,5 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-eln.tpl')
+config_opts['description'] = 'Fedora ELN'
diff --git a/etc/mock/fedora-rawhide-riscv64.cfg b/etc/mock/fedora-rawhide-riscv64.cfg
new file mode 100644
index 0000000..65beeab
--- /dev/null
+++ b/etc/mock/fedora-rawhide-riscv64.cfg
@@ -0,0 +1,4 @@
+config_opts['target_arch'] = 'riscv64'
+config_opts['legal_host_arches'] = ('riscv64',)
+
+include('templates/fedora-rawhide.tpl')