defconfigs: add the _AT_LEAST_X_Y headers options
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 7 Mar 2014 23:25:06 +0000 (00:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Mar 2014 08:41:15 +0000 (09:41 +0100)
commit96941a9f51b302c4bee906f06fcac100049f5874
tree106dfd7c0db56b0317c7dcdec21668a182344fac
parentb92099df62f151490dc5f7008026c5ba7fb9606b
defconfigs: add the _AT_LEAST_X_Y headers options

Since commit 2a5cf5e (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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 files changed:
configs/armadeus_apf27_defconfig
configs/armadeus_apf28_defconfig
configs/armadeus_apf51_defconfig
configs/armadeus_apf9328_defconfig
configs/at91sam9260eknf_defconfig
configs/at91sam9g20dfc_defconfig
configs/atngw100_defconfig
configs/atstk100x_defconfig
configs/beaglebone_defconfig
configs/calao_tny_a9g20_lpw_defconfig
configs/gnublin_defconfig
configs/mini2440_defconfig
configs/minnowboard_defconfig
configs/pandaboard_defconfig
configs/raspberrypi_defconfig
configs/sheevaplug_defconfig
configs/telit_evk_pro3_defconfig
configs/zedboard_defconfig