From fdc0a225cab2d75756e355a141ebeae2ee0da0b6 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Fri, 18 Jun 2021 15:49:20 +0900 Subject: [PATCH] Apply depmod postscript To use modprobe, module name is requires on /lib/modules/version/modules.dep. Change-Id: I4ac1e90424f2707675f9fce37544c193de6afaf4 Signed-off-by: Hyotaek Shim --- packaging/baselibs.conf | 6 ++++ packaging/linux-tizen-modules.spec | 64 ++++++++++++++++++++++++-------------- 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 -- 2.7.4