summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2021-06-18 15:49:20 +0900
committerINSUN PYO <insun.pyo@samsung.com>2021-06-24 12:37:34 +0900
commitfdc0a225cab2d75756e355a141ebeae2ee0da0b6 (patch)
treed7fc4aee1e9107e96e92cd07b3fc15e2ef52518d
parent420a22a4c1179c0c2e5225a98a85204603848a45 (diff)
downloadlinux-tizen-modules-fdc0a225cab2d75756e355a141ebeae2ee0da0b6.tar.gz
linux-tizen-modules-fdc0a225cab2d75756e355a141ebeae2ee0da0b6.tar.bz2
linux-tizen-modules-fdc0a225cab2d75756e355a141ebeae2ee0da0b6.zip
To use modprobe, module name is requires on /lib/modules/version/modules.dep. Change-Id: I4ac1e90424f2707675f9fce37544c193de6afaf4 Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rw-r--r--packaging/baselibs.conf6
-rw-r--r--packaging/linux-tizen-modules.spec64
2 files changed, 47 insertions, 23 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
index 879d5d6..79011f6 100644
--- a/packaging/baselibs.conf
+++ b/packaging/baselibs.conf
@@ -2,5 +2,11 @@ arch aarch64 targets armv7l:aarch64
linux-tizen-modules-tw3
+/
+ requires "bash"
+ requires "coreutils"
+ requires "findutils"
+ requires "kmod-compat"
post "/bin/cp -r /aarch64/modules/* /lib/modules/"
post "/bin/rm -rf /aarch64"
+ post "RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))"
+ post "/sbin/depmod -a $RELEASEVERSION"
diff --git a/packaging/linux-tizen-modules.spec b/packaging/linux-tizen-modules.spec
index bb1c8b1..e92c198 100644
--- a/packaging/linux-tizen-modules.spec
+++ b/packaging/linux-tizen-modules.spec
@@ -6,35 +6,45 @@
%define buildarch arm
%endif
-Name: linux-tizen-modules
-Version: 6.5.0
-Release: 0
-License: GPL-2.0+
-Source0: %{name}-%{version}.tar.xz
-Source1: %{name}.manifest
-Summary: Tizen-specific kernel modules
-Group: System/Kernel
-ExclusiveArch: armv7l aarch64
-BuildRequires: kmod
-BuildRequires: %{buildarch}-rpi3-linux-kernel-devel
-BuildRequires: %{buildarch}-rpi4-linux-kernel-devel
+Name: linux-tizen-modules
+Version: 6.5.0
+Release: 0
+License: GPL-2.0+
+Source0: %{name}-%{version}.tar.xz
+Source1: %{name}.manifest
+Summary: Tizen-specific kernel modules
+Group: System/Kernel
+ExclusiveArch: armv7l aarch64
+BuildRequires: kmod
+BuildRequires: %{buildarch}-rpi3-linux-kernel-devel
+BuildRequires: %{buildarch}-rpi4-linux-kernel-devel
%ifarch aarch64
-BuildRequires: kernel-devel-exynos9110-tw3
+BuildRequires: kernel-devel-exynos9110-tw3
%endif
%description
-%package rpi3
-Summary: Tizen modules for RaspberryPI 3
-%description rpi3
-
-%package rpi4
-Summary: Tizen modules for RaspberryPI 4
-%description rpi4
+%package rpi3
+Summary: Tizen modules for RaspberryPI 3
+Requires: %{buildarch}-rpi3-linux-kernel-modules
+Requires(post): bash
+Requires(post): coreutils
+Requires(post): findutils
+Requires(post): kmod-compat
+%description rpi3
+
+%package rpi4
+Summary: Tizen modules for RaspberryPI 4
+Requires: %{buildarch}-rpi4-linux-kernel-modules
+Requires(post): bash
+Requires(post): coreutils
+Requires(post): findutils
+Requires(post): kmod-compat
+%description rpi4
%ifarch aarch64
-%package tw3
-Summary: Tizen modules for TW3
-%description tw3
+%package tw3
+Summary: Tizen modules for TW3
+%description tw3
%endif
%prep
@@ -72,6 +82,14 @@ mv %{buildroot}/%{KMOD_PATH}/4.9.59 %{buildroot}/aarch64/modules/
rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-%{version}/lib
+%post rpi3
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
+
+%post rpi4
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
+
%files rpi3
%manifest %{name}.manifest
%license COPYING