summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2024-10-09 10:48:38 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2024-10-15 08:02:02 +0200
commit91ea6c892fd88e6ad616ce452184ba7f827f4ae1 (patch)
tree56654cc0e89f1ff6b3ed55fb5dd4c64174c9750b
parent475f33a91e90696d8bfffeb6ebe341095093cfc5 (diff)
downloadlinux-tizen-modules-accepted/tizen_unified.tar.gz
linux-tizen-modules-accepted/tizen_unified.tar.bz2
linux-tizen-modules-accepted/tizen_unified.zip
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I2ee38d42b4471fbe93c1b67732aa2d26abbb6f0b
-rw-r--r--conf/tizen-modprobe-amlogic.conf1
-rw-r--r--conf/tizen-modules-amlogic.conf2
-rw-r--r--packaging/linux-tizen-modules.spec85
3 files changed, 88 insertions, 0 deletions
diff --git a/conf/tizen-modprobe-amlogic.conf b/conf/tizen-modprobe-amlogic.conf
new file mode 100644
index 0000000..b65f476
--- /dev/null
+++ b/conf/tizen-modprobe-amlogic.conf
@@ -0,0 +1 @@
+options proc-tsm blacklist=System::TEF
diff --git a/conf/tizen-modules-amlogic.conf b/conf/tizen-modules-amlogic.conf
new file mode 100644
index 0000000..cbf404b
--- /dev/null
+++ b/conf/tizen-modules-amlogic.conf
@@ -0,0 +1,2 @@
+extcon-usb-fixed
+logger
diff --git a/packaging/linux-tizen-modules.spec b/packaging/linux-tizen-modules.spec
index c14ee39..841fae8 100644
--- a/packaging/linux-tizen-modules.spec
+++ b/packaging/linux-tizen-modules.spec
@@ -22,6 +22,10 @@ ExclusiveArch: %{arm} aarch64 riscv64
BuildRequires: kmod
BuildRequires: linux-tizen-modules-source
%ifarch aarch64
+BuildRequires: linux-kernel-devel-amlogic-kvim
+BuildRequires: linux-kernel-modules-amlogic-kvim
+BuildRequires: linux-kernel-devel-amlogic-odroid
+BuildRequires: linux-kernel-modules-amlogic-odroid
BuildRequires: %{buildarch}-rpi4-linux-kernel-devel
BuildRequires: %{buildarch}-rpi4-linux-kernel-modules
BuildRequires: %{buildarch}-rpi4-rt-linux-kernel-devel
@@ -45,6 +49,30 @@ BuildRequires: riscv-bpif3-linux-kernel-modules
%endif
%description
+%ifarch aarch64
+%package amlogic-kvim
+Summary: Tizen modules for Amlogic Khadas VIM3 boards
+AutoReqProv: no
+Requires: linux-kernel-modules-amlogic-kvim
+Requires(post): bash
+Requires(post): coreutils
+Requires(post): findutils
+Requires(post): kmod-compat
+Provides: stability-monitor-kernel-module
+%description amlogic-kvim
+
+%package amlogic-odroid
+Summary: Tizen modules for Amlogic Odroid boards
+AutoReqProv: no
+Requires: linux-kernel-modules-amlogic-odroid
+Requires(post): bash
+Requires(post): coreutils
+Requires(post): findutils
+Requires(post): kmod-compat
+Provides: stability-monitor-kernel-module
+%description amlogic-odroid
+%endif
+
%ifarch %{arm} aarch64
%package rpi4
Summary: Tizen modules for RaspberryPI 4
@@ -131,6 +159,24 @@ export LOGGER_SYSTEM_BUFFER_SIZE=256
export TIZEN_INFORM_PATH="/mnt/inform/reboot-param.bin"
+%ifarch aarch64
+export BUILD_dm_bow=n
+export BUILD_extcon_usb_fixed=m
+export BUILD_inform_reboot=n
+export BUILD_kdbus=n
+export BUILD_logger=m
+export BUILD_proc_tsm=m
+export BUILD_zlogger=n
+
+make -C kernel clean KERNELDIR=/boot/kvim/kernel/devel/
+make -C kernel KERNELDIR=/boot/kvim/kernel/devel/
+make -C kernel modules_install KERNELDIR=/boot/kvim/kernel/devel/ INSTALL_MOD_STRIP=1 INSTALL_MOD_DIR=extra
+
+make -C kernel clean KERNELDIR=/boot/odroid/kernel/devel/
+make -C kernel KERNELDIR=/boot/odroid/kernel/devel/
+make -C kernel modules_install KERNELDIR=/boot/odroid/kernel/devel/ INSTALL_MOD_STRIP=1 INSTALL_MOD_DIR=extra
+%endif
+
%ifarch %{arm} aarch64
export BUILD_dm_bow=m
export BUILD_extcon_usb_fixed=m
@@ -206,6 +252,15 @@ pushd lib/modules
find -name "*.ko" -exec cp -a --parents {} %{buildroot}/%{KMOD_PATH}/ \;
popd
+%ifarch aarch64
+# module load config
+mkdir -p %{buildroot}/%{KMOD_PATH}/modprobe.d
+install -m 644 conf/tizen-modprobe-amlogic.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
+
+mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-amlogic.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
+%endif
+
%ifarch %{arm} aarch64
# module load config
mkdir -p %{buildroot}/%{KMOD_PATH}/modprobe.d
@@ -226,6 +281,16 @@ install -m 644 conf/tizen-modules-bpif3.conf %{buildroot}/%{KMOD_PATH}/modules-l
rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-%{version}/lib
+%ifarch aarch64
+%post amlogic-kvim
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
+
+%post amlogic-odroid
+RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
+/sbin/depmod -a $RELEASEVERSION
+%endif
+
%ifarch %{arm} aarch64
%post rpi4
RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
@@ -250,6 +315,26 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
/sbin/depmod -a $RELEASEVERSION
%endif
+%ifarch aarch64
+%files amlogic-kvim
+%manifest %{name}.manifest
+%license COPYING
+%{KMOD_PATH}/*-amlogic-kvim/extra/extcon-usb-fixed.ko
+%{KMOD_PATH}/*-amlogic-kvim/extra/proc-tsm.ko
+%{KMOD_PATH}/*-amlogic-kvim/extra/logger.ko
+%{KMOD_PATH}/modprobe.d/tizen-modprobe-amlogic.conf
+%{KMOD_PATH}/modules-load.d/tizen-modules-amlogic.conf
+
+%files amlogic-odroid
+%manifest %{name}.manifest
+%license COPYING
+%{KMOD_PATH}/*-amlogic-odroid/extra/extcon-usb-fixed.ko
+%{KMOD_PATH}/*-amlogic-odroid/extra/proc-tsm.ko
+%{KMOD_PATH}/*-amlogic-odroid/extra/logger.ko
+%{KMOD_PATH}/modprobe.d/tizen-modprobe-amlogic.conf
+%{KMOD_PATH}/modules-load.d/tizen-modules-amlogic.conf
+%endif
+
%ifarch %{arm} aarch64
%files rpi4
%manifest %{name}.manifest