summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2023-07-19 12:23:52 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2023-07-19 12:34:02 +0900
commit344961268abbb77b2313b879c954445306b2e483 (patch)
treecd1ebee0da01dff28e6c71cee5bb72d25b8d4411
parent1dbcd038b2af9f214ff571d9d9bf978496a2d4d4 (diff)
downloadlinux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.tar.gz
linux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.tar.bz2
linux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.zip
Add tizen-module-visionfive2.conf file for loading module at booting time. Because there is no config file, it doesn't load anything now. This patch is fixing its problem. Change-Id: Iab9e2a7a7694eb87dd660d3e15bfb73f204a0d54 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-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