]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - kernel/kernel.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / kernel / kernel.nm
index ab729736763c7ace04824f89d0ab7ac349592dcf..04e2b245442d6e5b7d0915d9457610d5018dbce1 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = kernel
-version    = 6.2
-release    = 1.1
+version    = 6.6
+release    = 1
 thisapp    = linux-%{version}
 
 maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
@@ -75,7 +75,14 @@ build
                sed -e "/^COLORIZE_PLUGIN_CFLAGS/d" \
                        -i Makefile
 
-               sed -e "s/\$(HOST_LFS_CFLAGS)/& -fPIC/g" -i Makefile
+               # Use our linker flags while building the compiler plugins.
+               sed -i '/^plugin_ldflags\s\+=/ s/$/ %{LDFLAGS}/' \
+                       scripts/gcc-plugins/Makefile
+
+               # Remove Python 2 interpreter from a few scripts
+               sed -e "s@^#!.*python@#!%{python3}@" \
+                       -i scripts/show_delta \
+                       -i scripts/tracing/draw_functrace.py
 
                # Get rid of unwanted files resulting from patch fuzz.
                find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
@@ -129,9 +136,12 @@ build
                        cat .config
 
                        # Run the build.
-                       make ARCH=%{kernel_arch} olddefconfig >/dev/null
+                       make ARCH=%{kernel_arch} HOSTCFLAGS="%{CFLAGS}" \
+                               HOSTLDFLAGS="%{LDFLAGS}" olddefconfig >/dev/null
+
                        make ARCH=%{kernel_arch} %{kernel_target} modules \
-                               KERNELRELEASE=${fullversion} %{PARALLELISMFLAGS}
+                               KERNELRELEASE=${fullversion} HOSTCFLAGS="%{CFLAGS}" \
+                               HOSTLDFLAGS="%{LDFLAGS}" %{PARALLELISMFLAGS}
 
                        # Compile Flattened Device Tree database
                        case "${DISTRO_ARCH}" in
@@ -154,8 +164,8 @@ build
                        install -m 644 .config %{BUILDROOT}/boot/config-${fullversion}
                        install -m 644 System.map %{BUILDROOT}/boot/System.map-${fullversion}
 
-                       # Create empty initramfs (20M).
-                       dd if=/dev/zero of=%{BUILDROOT}/boot/initramfs-${fullversion}.img bs=1M count=20
+                       # Create empty initramfs (70M).
+                       dd if=/dev/zero of=%{BUILDROOT}/boot/initramfs-${fullversion}.img bs=1M count=70
 
                        # Install modules.
                        make ARCH=%{kernel_arch} INSTALL_MOD_PATH=%{BUILDROOT}/usr mod-fw= V=1 \
@@ -283,14 +293,19 @@ packages
 
                provides
                        kernel = %{fullver}
+
+                       # Used to lock the running kernel from being uninstalled
+                       kernel(%{fullver})
                end
 
                requires
                        dracut
                        kernel-updater
                        linux-firmware
-                       intel-microcode
                        wireless-regdb
+
+                       # Install intel-microcode only on x86_64
+                       (intel-microcode if arch(x86_64))
                end
 
                files
@@ -331,6 +346,10 @@ packages
                        kernel-devel = %{thisver}
                end
 
+               requires
+                       kernel = %{thisver}
+               end
+
                filter_requires
                        perl>=[0-9]\:.*
                end