diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2023-07-19 12:23:52 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2023-07-19 12:34:02 +0900 |
commit | 344961268abbb77b2313b879c954445306b2e483 (patch) | |
tree | cd1ebee0da01dff28e6c71cee5bb72d25b8d4411 | |
parent | 1dbcd038b2af9f214ff571d9d9bf978496a2d4d4 (diff) | |
download | linux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.tar.gz linux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.tar.bz2 linux-tizen-modules-344961268abbb77b2313b879c954445306b2e483.zip |
Add tizen-module-visionfive2.conf file for loading moduletizen_8.0_m2_releaseaccepted/tizen/unified/riscv/20230720.071116accepted/tizen/unified/20230919.091738accepted/tizen/unified/20230720.164631accepted/tizen/8.0/unified/20231005.094546tizen_8.0accepted/tizen_unified_riscvaccepted/tizen_8.0_unified
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.conf | 1 | ||||
-rw-r--r-- | packaging/linux-tizen-modules.spec | 12 |
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 |