From ccf7fb79899e7f6a4b62d620517e112df39b5ab8 Mon Sep 17 00:00:00 2001 From: Jaechul Lee Date: Thu, 16 Feb 2017 11:13:37 +0900 Subject: [PATCH] packaging: removed '%post' script and unnecessary code There are two rpms as a result such as aarch64 and armv7l. In case of aarh64, It works well but %post script in armv7l arch won't run because of baselibs. Therefore, I located dzImage in /boot/kernel/dzImage directly. Change-Id: Ibeb43d6db22f597b9ffad07d16b925516ea1950d Signed-off-by: Jaechul Lee --- packaging/linux-3.18-exynos7270.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packaging/linux-3.18-exynos7270.spec b/packaging/linux-3.18-exynos7270.spec index 93c390b..6d57990 100644 --- a/packaging/linux-3.18-exynos7270.spec +++ b/packaging/linux-3.18-exynos7270.spec @@ -30,10 +30,7 @@ Group: System/Kernel Requires(post): coreutils %files -n linux-%{CHIPSET}-%{MODEL} -/boot/kernel/kernel-%{MODEL}/dzImage - -%post -n linux-%{CHIPSET}-%{MODEL} -mv /boot/kernel/kernel-%{MODEL}/dzImage /boot/kernel/. +/boot/kernel/dzImage %description -n linux-%{CHIPSET}-%{MODEL} This package provides the %{CHIPSET}_eur linux kernel image. @@ -133,9 +130,9 @@ mkdir -p %{buildroot}/boot/kernel/devel mkdir -p %{buildroot}/boot/kernel/kernel-%{MODEL} mkdir -p %{buildroot}/boot/kernel/license-%{MODEL} +mv %_builddir/dzImage.%{MODEL} %{buildroot}/boot/kernel/dzImage mv %_builddir/Image.%{MODEL} %{buildroot}/boot/kernel/kernel-%{MODEL}/Image mv %_builddir/merged-dtb.%{MODEL} %{buildroot}/boot/kernel/kernel-%{MODEL}/merged-dtb -mv %_builddir/dzImage.%{MODEL} %{buildroot}/boot/kernel/kernel-%{MODEL}/dzImage mv %_builddir/System.map.%{MODEL} %{buildroot}/boot/kernel/kernel-%{MODEL}/System.map mv %_builddir/config.%{MODEL} %{buildroot}/boot/kernel/kernel-%{MODEL}/config -- 2.7.4