###############################################################################
name = kernel
-version = 3.14.2
+version = 4.1.3
release = 1
thisapp = linux-%{version}
localversion = %{release}.%{DISTRO_DISTTAG}.%{DISTRO_ARCH}
fullver = %{version}-%{localversion}
-source_dl = http://www.kernel.org/pub/linux/kernel/v3.x/
+source_dl = http://www.kernel.org/pub/linux/kernel/v4.x/
sources = %{thisapp}.tar.xz
build
- # icecream cannot be used to compile the kernel.
- # Because the PaX patch does use GCC plugins to harden the kernel which
- # are not available on the remote compilers, we need to disable it here.
- export ICECC=no
-
kernel_logo = /usr/share/pixmaps/kernel-logo.ppm
requires
bison
elfutils-devel
flex
+ gcc >= 4.9
gcc-plugin-devel
gettext
libunwind-devel
python-devel
slang-devel
xmlto
+ xz
/sbin/depmod
%{kernel_logo}
kernel_arch = x86
end
+ if "%{DISTRO_ARCH}" == "aarch64"
+ # Disable for now because it won't compile
+ build_kernel_default = 0
+
+ kernel_arch = arm64
+ kernel_target = Image.gz
+ end
+
if "%{DISTRO_ARCH}" == "armv5tel"
# Build a kernel for Marvell Kirkwood-based devices.
build_kernel_default = 1
# Compile Flattened Device Tree database
case "${DISTRO_ARCH}" in
- arm*)
+ aarch64|arm*)
make ARCH=%{kernel_arch} dtbs
mkdir -pv %{BUILDROOT}/boot/dtb-${fullversion}
%{BUILDROOT}/usr/lib/modules/${fullversion}/build/include/config/auto.conf
find %{BUILDROOT}/usr/lib/modules/${fullversion} -name "*.ko" -type f | \
- xargs chmod u+x
+ xargs --no-run-if-empty chmod u+x
# Move all development files to /usr/src.
mkdir -p %{BUILDROOT}/usr/src/kernels