summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/tizen-modules-visionfive2.conf1
-rw-r--r--packaging/linux-tizen-modules.spec12
2 files changed, 13 insertions, 0 deletions
diff --git a/conf/tizen-modules-visionfive2.conf b/conf/tizen-modules-visionfive2.conf
new file mode 100644
index 0000000..7c82fcf
--- /dev/null
+++ b/conf/tizen-modules-visionfive2.conf
@@ -0,0 +1 @@
+logger
diff --git a/packaging/linux-tizen-modules.spec b/packaging/linux-tizen-modules.spec
index d370b97..853d7c2 100644
--- a/packaging/linux-tizen-modules.spec
+++ b/packaging/linux-tizen-modules.spec
@@ -141,6 +141,11 @@ mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
install -m 644 conf/tizen-modules-rpi4.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
%endif
+%ifarch riscv64
+mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-visionfive2.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
+%endif
+
%clean
rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-%{version}/lib
@@ -155,6 +160,12 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
/sbin/depmod -a $RELEASEVERSION
%endif
+%ifarch riscv64
+%post visionfive2
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
+%endif
+
%ifarch %{arm} aarch64
%files rpi4
%manifest %{name}.manifest
@@ -203,4 +214,5 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
%license COPYING
%{KMOD_PATH}/*-riscv-visionfive2/extra/logger.ko
%{KMOD_PATH}/*-riscv-visionfive2/extra/zlogger/zlogger.ko
+%{KMOD_PATH}/modules-load.d/tizen-modules-visionfive2.conf
%endif