Add tizen-module-visionfive2.conf file for loading module 55/296055/1 accepted/tizen_8.0_unified accepted/tizen_unified_riscv tizen_8.0 accepted/tizen/8.0/unified/20231005.094546 accepted/tizen/unified/20230720.164631 accepted/tizen/unified/20230919.091738 accepted/tizen/unified/riscv/20230720.071116 tizen_8.0_m2_release
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 19 Jul 2023 03:23:52 +0000 (12:23 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 19 Jul 2023 03:34:02 +0000 (12:34 +0900)
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>
conf/tizen-modules-visionfive2.conf [new file with mode: 0644]
packaging/linux-tizen-modules.spec

diff --git a/conf/tizen-modules-visionfive2.conf b/conf/tizen-modules-visionfive2.conf
new file mode 100644 (file)
index 0000000..7c82fcf
--- /dev/null
@@ -0,0 +1 @@
+logger
index d370b97..853d7c2 100644 (file)
@@ -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