diff options
Diffstat (limited to 'recipes/linux/linux.inc')
-rw-r--r-- | recipes/linux/linux.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc index 39d04e19ae..0b188d44d1 100644 --- a/recipes/linux/linux.inc +++ b/recipes/linux/linux.inc @@ -57,6 +57,16 @@ python __anonymous () { } do_configure_prepend() { + + # Rename getline in ./scripts/unifdef.c + # Kernels up to 2.6.29 are currently failing to build unifdef.c, + # clashing with exposed getline() from <stdio.h> + # see https://patchwork.kernel.org/patch/11166/ + # committed in 2.6.29 (commit d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7) + + sed -i -e 's/getline/parseline/g' ${S}/scripts/unifdef.c + + echo "" > ${S}/.config # @@ -89,6 +99,12 @@ do_configure_prepend() { echo "CONFIG_ARM_THUMB=y" >> ${S}/.config fi + # Enable thumb2 fixup for specific issue in angstrom toolchains when used on A8 r1p[012] silicon + if [ "${DISTRO_NAME}" = "Angstrom" ] ; then + sed -i -e /CONFIG_ARM_ERRATA_430973/d ${WORKDIR}/defconfig + echo "CONFIG_ARM_ERRATA_430973=y" >> ${S}/.config + fi + # # endian support # @@ -184,6 +200,13 @@ do_configure_append() { fi } +do_install_append() { + oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}/src/linux-${KERNEL_VERSION} ARCH=$ARCH +} + +PACKAGES =+ "kernel-headers" +FILES_kernel-headers = "${exec_prefix}/src/linux*" + do_devicetree_image() { if test -n "${KERNEL_DEVICETREE}" ; then dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o devicetree ${KERNEL_DEVICETREE} |