Commit 96941a9f authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni
Browse files

defconfigs: add the _AT_LEAST_X_Y headers options



Since commit 2a5cf5e7 (check kernel headers version), we also need to
specify the series of the custom kernel headers version.

The defconfigs file that define such a custom kernel headers version
now fail to build.

Add the required _AT_LEAST_X_Y options to those config files. Done with
this (convoluted but very fast, uch faster ythan manual editing!) rule:

    for f in $( git grep -l BR2_DEFAULT_KERNEL_VERSION=\"3 ); do
        grep -E '^BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_' "${f}" >/dev/null && continue
        sed -r -e '/^(BR2_DEFAULT_KERNEL_VERSION="3\.([[:digit:]]+).*")$/s//\1\nBR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_\2=y/' "${f}"
    done

Only kernels >= 3.0 need those options in the defconfig, since the
default for 2.6.x kernels is correct (selects _AT_LEAST_2_6), and
the default is not saved in a defconfig.

Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent b92099df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ BR2_arm926t=y
# Lock down headers to avoid breaking with new defaults
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.13.2"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_13=y

# System
BR2_TARGET_GENERIC_HOSTNAME="apf27"
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ BR2_arm926t=y
# Lock down headers to avoid breaking with new defaults
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.12.7"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12=y

# System
BR2_TARGET_GENERIC_HOSTNAME="apf28"
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ BR2_cortex_a8=y
# Lock down headers to avoid breaking with new defaults
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.12.6"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12=y

# System
BR2_TARGET_GENERIC_HOSTNAME="apf51"
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
# Lock down headers to avoid breaking with new defaults
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.1.1"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1=y

# System
BR2_TARGET_GENERIC_HOSTNAME="apf9328"
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ BR2_arm926t=y
# Toolchain
BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.9.1"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9=y

# System
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
Loading