summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/tizen-modprobe-fhub.conf0
-rw-r--r--conf/tizen-modules-fhub.conf1
-rw-r--r--packaging/linux-tizen-modules.spec194
3 files changed, 23 insertions, 172 deletions
diff --git a/conf/tizen-modprobe-fhub.conf b/conf/tizen-modprobe-fhub.conf
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/conf/tizen-modprobe-fhub.conf
diff --git a/conf/tizen-modules-fhub.conf b/conf/tizen-modules-fhub.conf
new file mode 100644
index 0000000..e6e4c1a
--- /dev/null
+++ b/conf/tizen-modules-fhub.conf
@@ -0,0 +1 @@
+zlogger
diff --git a/packaging/linux-tizen-modules.spec b/packaging/linux-tizen-modules.spec
index 1ead91f..02d55bb 100644
--- a/packaging/linux-tizen-modules.spec
+++ b/packaging/linux-tizen-modules.spec
@@ -18,69 +18,23 @@ Group: System/Kernel
ExclusiveArch: %{arm} aarch64
BuildRequires: kmod
BuildRequires: linux-tizen-modules-source
-BuildRequires: %{buildarch}-rpi3-linux-kernel-devel
-BuildRequires: %{buildarch}-rpi4-linux-kernel-devel
-BuildRequires: %{buildarch}-rpi4-rt-linux-kernel-devel
-%ifarch aarch64
-BuildRequires: kernel-devel-exynos9110-tw3
-%endif
-%ifnarch aarch64
-BuildRequires: kernel-devel-3.10-sc7730
-%endif
+BuildRequires: kernel-devel-tizen
+BuildRequires: binutils
+BuildRequires: binutils-gold
%description
-%package rpi3
-Summary: Tizen modules for RaspberryPI 3
+%package fhub
+Summary: Tizen modules for fhub
AutoReqProv: no
-Requires: %{buildarch}-rpi3-linux-kernel-modules
+Requires: %{buildarch}-fhub-linux-kernel-modules
Requires(post): bash
Requires(post): coreutils
Requires(post): findutils
Requires(post): kmod-compat
Provides: stability-monitor-kernel-module
-%description rpi3
+%description fhub
-%package rpi4
-Summary: Tizen modules for RaspberryPI 4
-AutoReqProv: no
-Requires: %{buildarch}-rpi4-linux-kernel-modules
-Requires(post): bash
-Requires(post): coreutils
-Requires(post): findutils
-Requires(post): kmod-compat
-Provides: stability-monitor-kernel-module
-%description rpi4
-%package rpi4-rt
-Summary: Tizen modules for RaspberryPI 4 RT (real-time)
-AutoReqProv: no
-Requires: %{buildarch}-rpi4-rt-linux-kernel-modules
-Requires(post): bash
-Requires(post): coreutils
-Requires(post): findutils
-Requires(post): kmod-compat
-Provides: stability-monitor-kernel-module
-%description rpi4-rt
-
-%ifarch aarch64
-%package tw3
-Summary: Tizen modules for TW3
-AutoReqProv: no
-Provides: stability-monitor-kernel-module
-%description tw3
-%endif
-
-%ifnarch aarch64
-%package tm1
-Summary: Tizen modules for TM1
-Requires: linux-3.10-sc7730_tizen_tm1
-AutoReqProv: no
-Requires(post): bash
-Requires(post): coreutils
-Requires(post): findutils
-Requires(post): kmod-compat
-%description tm1
-%endif
%prep
%setup -q
@@ -99,37 +53,18 @@ export LOGGER_EVENTS_BUFFER_SIZE=256
export LOGGER_RADIO_BUFFER_SIZE=256
export LOGGER_SYSTEM_BUFFER_SIZE=256
-export BUILD_proc_tsm=m
-export BUILD_kdbus=m
+export BUILD_proc_tsm=n
export BUILD_zlogger=m
-
-make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4
-make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4
-make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4 INSTALL_MOD_STRIP=1
-
-make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4-rt
-make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4-rt
-make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi4-rt INSTALL_MOD_STRIP=1
-
export BUILD_kdbus=n
+export BUILD_logger=n
-make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi3
-make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi3/
-make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-%{buildarch}-rpi3 INSTALL_MOD_STRIP=1
+# needed on DA, but set to empty string because we aren't actually cross-compiling
+export CROSS_COMPILE=""
-%ifarch aarch64
-make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-tw3
-make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-tw3
-make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-tw3 INSTALL_MOD_STRIP=1
-%endif
-
-export BUILD_proc_tsm=n
-
-%ifnarch aarch64
-make -C kernel clean KERNELDIR=/boot/kernel/devel/kernel-devel-tizen_tm1
-make -C kernel KERNELDIR=/boot/kernel/devel/kernel-devel-tizen_tm1
-make -C kernel modules_install KERNELDIR=/boot/kernel/devel/kernel-devel-tizen_tm1 INSTALL_MOD_STRIP=1
-%endif
+make -C kernel clean KERNELDIR=/boot/kernel/devel/tizen-devel
+make -C kernel KERNELDIR=/boot/kernel/devel/tizen-devel
+make -C kernel modules_install KERNELDIR=/boot/kernel/devel/tizen-devel INSTALL_MOD_STRIP=1
+#/boot/kernel_header/debug/linux
%install
mkdir -p %{buildroot}/%{KMOD_PATH}
@@ -140,113 +75,28 @@ popd
# module load config
mkdir -p %{buildroot}/%{KMOD_PATH}/modprobe.d
-install -m 644 conf/tizen-modprobe-rpi3.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
-install -m 644 conf/tizen-modprobe-rpi4.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
+install -m 644 conf/tizen-modprobe-fhub.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
-install -m 644 conf/tizen-modules-rpi3.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
-install -m 644 conf/tizen-modules-rpi4.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-fhub.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
%ifarch aarch64
mkdir -p %{buildroot}/aarch64/modules
mv %{buildroot}/%{KMOD_PATH}/4.9.59 %{buildroot}/aarch64/modules/
-
-mkdir -p %{buildroot}/aarch64/modules/modprobe.d
-install -m 644 conf/tizen-modprobe-tw3.conf %{buildroot}/aarch64/modules/modprobe.d
-
-mkdir -p %{buildroot}/aarch64/modules/modules-load.d
-install -m 644 conf/tizen-modules-tw3.conf %{buildroot}/aarch64/modules/modules-load.d
-%endif
-
-%ifnarch aarch64
-mkdir -p %{buildroot}/%{KMOD_PATH_TM1}/modules-load.d
-install -m 644 conf/tizen-modules-tm1.conf %{buildroot}/%{KMOD_PATH_TM1}/modules-load.d
-mv -v %{buildroot}/%{KMOD_PATH}/*3.10* %{buildroot}/%{KMOD_PATH_TM1}
%endif
%clean
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
+%post fhub
RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
/sbin/depmod -a $RELEASEVERSION
-%post rpi4-rt
-RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
-/sbin/depmod -a $RELEASEVERSION
-
-%ifnarch aarch64
-%post tm1
-KMOD_PATH_TM1=%{KMOD_PATH_TM1}
-KMOD_BASEPATH=${KMOD_PATH_TM1%%%{KMOD_PATH}}
-RELEASEVERSION=$(basename $(dirname `find $KMOD_PATH_TM1 -name extra | head -1`))
-/sbin/depmod -b ${KMOD_BASEPATH} -a $RELEASEVERSION
-%endif
-
-%files rpi3
-%manifest %{name}.manifest
-%license COPYING
-%{KMOD_PATH}/*rpi3*/extra/proc-tsm.ko
-%{KMOD_PATH}/*rpi3*/extra/logger.ko
-%{KMOD_PATH}/*rpi3*/extra/zlogger/zlogger.ko
-%{KMOD_PATH}/modprobe.d/tizen-modprobe-rpi3.conf
-%{KMOD_PATH}/modules-load.d/tizen-modules-rpi3.conf
-
-%files rpi4
+%files fhub
%manifest %{name}.manifest
%license COPYING
-%ifarch aarch64
-%{KMOD_PATH}/*rpi4-v8/extra/proc-tsm.ko
-%{KMOD_PATH}/*rpi4-v8/extra/kdbus/kdbus.ko
-%{KMOD_PATH}/*rpi4-v8/extra/logger.ko
-%{KMOD_PATH}/*rpi4-v8/extra/zlogger/zlogger.ko
-%else
-%{KMOD_PATH}/*rpi4-v7l/extra/proc-tsm.ko
-%{KMOD_PATH}/*rpi4-v7l/extra/kdbus/kdbus.ko
-%{KMOD_PATH}/*rpi4-v7l/extra/logger.ko
-%{KMOD_PATH}/*rpi4-v7l/extra/zlogger/zlogger.ko
-%endif
-%{KMOD_PATH}/modprobe.d/tizen-modprobe-rpi4.conf
-%{KMOD_PATH}/modules-load.d/tizen-modules-rpi4.conf
-
-%files rpi4-rt
-%manifest %{name}.manifest
-%license COPYING
-%ifarch aarch64
-%{KMOD_PATH}/*rpi4-rt-v8/extra/proc-tsm.ko
-%{KMOD_PATH}/*rpi4-rt-v8/extra/kdbus/kdbus.ko
-%{KMOD_PATH}/*rpi4-rt-v8/extra/logger.ko
-%{KMOD_PATH}/*rpi4-rt-v8/extra/zlogger/zlogger.ko
-%else
-%{KMOD_PATH}/*rpi4-rt-v7l/extra/proc-tsm.ko
-%{KMOD_PATH}/*rpi4-rt-v7l/extra/kdbus/kdbus.ko
-%{KMOD_PATH}/*rpi4-rt-v7l/extra/logger.ko
-%{KMOD_PATH}/*rpi4-rt-v7l/extra/zlogger/zlogger.ko
-%endif
-%{KMOD_PATH}/modprobe.d/tizen-modprobe-rpi4.conf
-%{KMOD_PATH}/modules-load.d/tizen-modules-rpi4.conf
+%{KMOD_PATH}/4.1.10/extra/zlogger/zlogger.ko
+%{KMOD_PATH}/modprobe.d/tizen-modprobe-fhub.conf
+%{KMOD_PATH}/modules-load.d/tizen-modules-fhub.conf
-%ifarch aarch64
-%files tw3
-%manifest %{name}.manifest
-%license COPYING
-/aarch64/modules/4.9.59/extra/proc-tsm.ko
-/aarch64/modules/4.9.59/extra/logger.ko
-/aarch64/modules/4.9.59/extra/zlogger/zlogger.ko
-/aarch64/modules/modprobe.d/tizen-modprobe-tw3.conf
-/aarch64/modules/modules-load.d/tizen-modules-tw3.conf
-%endif
-
-%ifnarch aarch64
-%files tm1
-%manifest %{name}.manifest
-%license COPYING
-%{KMOD_PATH_TM1}/*3.10*/extra/logger.ko
-%{KMOD_PATH_TM1}/*3.10*/extra/zlogger/zlogger.ko
-%{KMOD_PATH_TM1}/modules-load.d/tizen-modules-tm1.conf
-%endif