# Setup build config.
# 0 - disable
# 1 - enable
-%define BUILD_PACKAGE_TM1 1
-%define BUILD_PACKAGE_TW3 1
%define BUILD_PACKAGE_EMULATOR32 1
%ifnarch %ix86
%define BUILD_PACKAGE_EMULATOR32 0
%endif
-%ifnarch %arm
- %define BUILD_PACKAGE_TM1 0
-%endif
-%ifnarch aarch64
- %define BUILD_PACKAGE_TW3 0
-%endif
%if ! %{with emulator}
%define BUILD_PACKAGE_EMULATOR32 0
%endif
%build
cd modules
-%if %{BUILD_PACKAGE_TM1}
- ./build.sh --kernel /boot/kernel/devel/kernel-devel-tizen_tm1 --arch arm clean
- ./build.sh --kernel /boot/kernel/devel/kernel-devel-tizen_tm1 --arch arm compile
- ./pack.sh /tmp/modules/tm1
-%endif
-
-%if %{BUILD_PACKAGE_TW3}
- ./build.sh --kernel /boot/kernel/devel/kernel-devel-tw3 --arch arm64 clean
- ./build.sh --kernel /boot/kernel/devel/kernel-devel-tw3 --arch arm64 compile
- ./pack.sh /tmp/modules/tw3
-%endif
-
%if %{BUILD_PACKAGE_EMULATOR32}
./build.sh --kernel /usr/src/linux-headers --arch i386 clean
./build.sh --kernel /usr/src/linux-headers --arch i386 compile
%install
mkdir -p %{buildroot}/opt/swap/modules/
-%if %{BUILD_PACKAGE_TM1}
- mv /tmp/modules/tm1 %{buildroot}/opt/swap/modules/
-%endif
-
-%if %{BUILD_PACKAGE_TW3}
- mv /tmp/modules/tw3 %{buildroot}/opt/swap/modules/
-%endif
-
%if %{BUILD_PACKAGE_EMULATOR32}
mv /tmp/modules/emulator32 %{buildroot}/opt/swap/modules/
%endif
-
-%if %{BUILD_PACKAGE_TM1}
-%package tm1
-Summary: SWAP modules for TM1
-Provides: swap-modules
-Provides: swap-modules = %{version}-%{release}
-BuildRequires: kernel-devel-3.10-sc7730
-
-%description tm1
-This package provides SWAP modules for TM1
-
-%post tm1
-ln -s /opt/swap/modules/tm1 /opt/swap/sdk
-
-%preun tm1
-rm /opt/swap/sdk
-
-%files tm1
-%license LICENSE.GPL-2.0+
-/opt/swap/modules/tm1/
-%endif # BUILD_PACKAGE_TM1
-
-%if %{BUILD_PACKAGE_TW3}
-%package tw3
-Summary: SWAP modules for TW3
-Provides: swap-modules
-Provides: swap-modules = %{version}-%{release}
-BuildRequires: kernel-devel-exynos9110-tw3
-
-%description tw3
-This package provides SWAP modules for TW3
-
-%post tw3
-ln -s /opt/swap/modules/tw3 /opt/swap/sdk
-
-%preun tw3
-rm /opt/swap/sdk
-
-%files tw3
-%license LICENSE.GPL-2.0+
-/opt/swap/modules/tw3/
-%endif # BUILD_PACKAGE_TW3
-
%if %{BUILD_PACKAGE_EMULATOR32}
%package emulator32
Summary: SWAP modules for Emulator x86