From patchwork Thu Nov 7 21:30:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 289484 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7D3DC2C0082 for ; Fri, 8 Nov 2013 08:30:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8A87D8BDA8; Thu, 7 Nov 2013 21:30:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3kMaBl_VLnli; Thu, 7 Nov 2013 21:30:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 031C88BDA9; Thu, 7 Nov 2013 21:30:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9FAE61C2920 for ; Thu, 7 Nov 2013 21:30:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9D5658ED15 for ; Thu, 7 Nov 2013 21:30:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZTkmLAVSiH8C for ; Thu, 7 Nov 2013 21:30:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id AC6448EC99 for ; Thu, 7 Nov 2013 21:30:47 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id q58so1156595wes.14 for ; Thu, 07 Nov 2013 13:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=vb913qQSDjKFj0Xgzr5b1uSihtbQzGF9xbRWKFKPix4=; b=Uw3IOllKROkJdRflFn3T8bCG9fCFyC/OKkoALUQ0MMvSurNiZFCpBf6Nx/24d8tLAc B/JGreTRqZe1JYWBJMsuPRmerPt6fb80hmekHdW/R5kO4XE7nNOzhKzJ9BtMdu29LKWW 6X3K0VHsJD54ySGAoVZuuxxT0MsafBks170ndzKpCBBrxYMljleUkZlqLRScI4e3flZR sgZhADGPmG9tS58MNeMlKG1qhOfqE+m3JY222EgEBkF15X0LQfCExgSnuj/0Da04RqxA 9o53EAjiGXhAGdO55Zy+b3v/aO3sZRzzUeoDQ1yvXHo1/HG54pjoFQJzOhUzSc9xdujD Jmrw== X-Received: by 10.180.83.40 with SMTP id n8mr4759303wiy.0.1383859846006; Thu, 07 Nov 2013 13:30:46 -0800 (PST) Received: from percy.lan (host-92-24-119-175.ppp.as43234.net. [92.24.119.175]) by mx.google.com with ESMTPSA id mw9sm368965wib.0.2013.11.07.13.30.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Nov 2013 13:30:45 -0800 (PST) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 7 Nov 2013 21:30:43 +0000 Message-Id: <1383859843-3549-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.8.3.2 Subject: [Buildroot] [PATCH] avr32: disable kernel headers X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson Using kernel headers newer than 3.6.x, uclibc fails to build: In file included from output/host/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/rtnetlink.h:6, from libc/inet/netlinkaccess.h:34, from libc/inet/if_index.c:36: output/host/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/if_link.h:314: error: expected specifier-qualifier-list before '__be16' make[1]: *** [libc/inet/if_index.os] Error 1 make[1]: Leaving directory `output/build/uclibc-0.9.31.1' make: *** [output/build/uclibc-0.9.31.1/.stamp_built] Error 2 Disable kernel headers newer than 3.6.x on avr32, and update atngw100 and atstk100x defconfigs to use kernel headers that avoid the uclibc build problem. Signed-off-by: Simon Dawson --- configs/atngw100_defconfig | 5 ++--- configs/atstk100x_defconfig | 4 ++-- package/linux-headers/Config.in.host | 9 ++++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configs/atngw100_defconfig b/configs/atngw100_defconfig index 5490241..bcb0073 100644 --- a/configs/atngw100_defconfig +++ b/configs/atngw100_defconfig @@ -1,10 +1,9 @@ # Architecture BR2_avr32=y -# Lock down kernel headers version, to match the kernel version used -# below. +# Lock down kernel headers to a version for which uclibc will build. BR2_KERNEL_HEADERS_VERSION=y -BR2_DEFAULT_KERNEL_VERSION="3.9.11" +BR2_DEFAULT_KERNEL_VERSION="3.4.68" # Filesystems BR2_TARGET_ROOTFS_JFFS2=y diff --git a/configs/atstk100x_defconfig b/configs/atstk100x_defconfig index f73497c..b35c9f4 100644 --- a/configs/atstk100x_defconfig +++ b/configs/atstk100x_defconfig @@ -1,9 +1,9 @@ # Architecture BR2_avr32=y -# Lock to same version as kernel +# Lock down kernel headers to a version for which uclibc will build. BR2_KERNEL_HEADERS_VERSION=y -BR2_DEFAULT_KERNEL_VERSION="3.9.11" +BR2_DEFAULT_KERNEL_VERSION="3.4.68" # U-Boot BR2_TARGET_UBOOT=y diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host index 2bd8b02..e9690de 100644 --- a/package/linux-headers/Config.in.host +++ b/package/linux-headers/Config.in.host @@ -44,24 +44,27 @@ choice config BR2_KERNEL_HEADERS_3_7 bool "Linux 3.7.x kernel headers" - depends on BR2_DEPRECATED && !BR2_arc + depends on BR2_DEPRECATED && !BR2_arc && !BR2_avr32 config BR2_KERNEL_HEADERS_3_8 bool "Linux 3.8.x kernel headers" - depends on BR2_DEPRECATED && !BR2_arc + depends on BR2_DEPRECATED && !BR2_arc && !BR2_avr32 config BR2_KERNEL_HEADERS_3_9 bool "Linux 3.9.x kernel headers" - depends on BR2_DEPRECATED + depends on BR2_DEPRECATED && !BR2_avr32 config BR2_KERNEL_HEADERS_3_10 bool "Linux 3.10.x kernel headers" + depends on !BR2_avr32 config BR2_KERNEL_HEADERS_3_11 bool "Linux 3.11.x kernel headers" + depends on !BR2_avr32 config BR2_KERNEL_HEADERS_3_12 bool "Linux 3.12.x kernel headers" + depends on !BR2_avr32 config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version"