Received: from host4.kei.pl ([195.149.226.213] helo=smtp.host4.kei.pl) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1O1FsD-0002qc-51 for openembedded-devel@lists.openembedded.org; Mon, 12 Apr 2010 11:24:09 +0200 Received: (qmail 11032 invoked by uid 813007); 12 Apr 2010 09:20:41 -0000 X-clamdmail: clamdmail 0.18a Received: from 195.149.226.213 (HELO localhost.localdomain) (marcin@juszkiewicz.com.pl@195.149.226.213) by 195.149.226.213 with ESMTPA; 12 Apr 2010 09:20:40 -0000 From: Marcin Juszkiewicz To: openembedded-devel@lists.openembedded.org Date: Mon, 12 Apr 2010 11:20:53 +0200 Message-Id: <1271064053-4404-1-git-send-email-marcin@juszkiewicz.com.pl> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1271063545-1753-1-git-send-email-marcin@juszkiewicz.com.pl> References: <1271063545-1753-1-git-send-email-marcin@juszkiewicz.com.pl> X-SA-Exim-Connect-IP: 195.149.226.213 X-SA-Exim-Mail-From: marcin@juszkiewicz.com.pl X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: [STABLE][PATCH v2] linux-libc-headers 2.6.23: backport arm/asm/hwcap.h from recent kernels X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 09:24:11 -0000 From: Marcin Juszkiewicz Signed-off-by: Marcin Juszkiewicz --- .../arm-hwcap-add-new-entries.patch | 21 ++++++++++++++++++ .../linux-libc-headers_2.6.23.bb | 23 ++----------------- 2 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 recipes/linux-libc-headers/linux-libc-headers-2.6.23/arm-hwcap-add-new-entries.patch diff --git a/recipes/linux-libc-headers/linux-libc-headers-2.6.23/arm-hwcap-add-new-entries.patch b/recipes/linux-libc-headers/linux-libc-headers-2.6.23/arm-hwcap-add-new-entries.patch new file mode 100644 index 0000000..934db51 --- /dev/null +++ b/recipes/linux-libc-headers/linux-libc-headers-2.6.23/arm-hwcap-add-new-entries.patch @@ -0,0 +1,21 @@ +--- + include/asm-arm/hwcap.h | 4 ++++ + 1 file changed, 4 insertions(+) + +--- linux-2.6.23.orig/include/asm-arm/hwcap.h ++++ linux-2.6.23/include/asm-arm/hwcap.h +@@ -13,10 +13,14 @@ + #define HWCAP_VFP 64 + #define HWCAP_EDSP 128 + #define HWCAP_JAVA 256 + #define HWCAP_IWMMXT 512 + #define HWCAP_CRUNCH 1024 ++#define HWCAP_THUMBEE 2048 ++#define HWCAP_NEON 4096 ++#define HWCAP_VFPv3 8192 ++#define HWCAP_VFPv3D16 16384 + + #if defined(__KERNEL__) && !defined(__ASSEMBLY__) + /* + * This yields a mask that user programs can use to figure out what + * instruction set this cpu supports. diff --git a/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb b/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb index 95152f1..61ef961 100644 --- a/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb +++ b/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb @@ -2,11 +2,12 @@ require linux-libc-headers.inc INHIBIT_DEFAULT_DEPS = "1" DEPENDS += "unifdef-native" -PR = "r4" +PR = "r6" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ file://procinfo.h \ - file://unifdef.patch;patch=1" + file://unifdef.patch;patch=1 \ + file://arm-hwcap-add-new-entries.patch;patch=1" S = "${WORKDIR}/linux-${PV}" @@ -47,21 +48,3 @@ do_install() { do_install_append_arm() { cp ${WORKDIR}/procinfo.h ${D}${includedir}/asm/ } - -STAGE_TEMP="${WORKDIR}/temp-staging" - -do_stage () { - set_arch - echo $ARCH - rm -rf ${STAGE_TEMP} - mkdir -p ${STAGE_TEMP} - oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH - if [ "$ARCH" = "arm" ]; then - cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/ - fi - install -d ${STAGING_INCDIR} - rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm ${STAGING_INCDIR}/asm-generic - cp -pfLR ${STAGE_TEMP}${includedir}/linux ${STAGING_INCDIR}/ - cp -pfLR ${STAGE_TEMP}${includedir}/asm ${STAGING_INCDIR}/ - cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${STAGING_INCDIR}/ -} -- 1.7.0.4