From patchwork Tue Sep 1 12:39:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Heading X-Patchwork-Id: 512804 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id F228C14056B for ; Tue, 1 Sep 2015 22:39:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=M0i7r62r; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BD891A3AB9; Tue, 1 Sep 2015 12:39:08 +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 D-BnbYzeVtK6; Tue, 1 Sep 2015 12:39:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D1D87A3AA6; Tue, 1 Sep 2015 12:39:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id EC34E1BFE29 for ; Tue, 1 Sep 2015 12:39:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E86A5A3A96 for ; Tue, 1 Sep 2015 12:39:06 +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 mrerZz1lUZvG for ; Tue, 1 Sep 2015 12:39:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 2600DA3A8A for ; Tue, 1 Sep 2015 12:39:06 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so11031689wic.0 for ; Tue, 01 Sep 2015 05:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=quvUm+RTUv1nd01DRiHEkj/Ix8z1FQ50GmrPyOqzDw8=; b=M0i7r62rSIijiAxGVGzUNSlNt7pbvy13Ya4w0GV+mT07XXHYwH7G/IXzTM42Jk7DYb vBDA1SPrJ9TxKcjWGCU1NMQ8+xu59sL7wthjW9zTgrJM06Mttq/POIRz5V6RqcJAXrcz 1k3k4PQL8ba7FlFN4a9sJNFi4cWMk4/SnksPcU1rQni/1gevymUrB7EU8VosXuEA50vC PhFGJ7Dpa9lFtmBDy89BIx/oAwlp1msiASWdmZGxVSsSfqx+5qaYIOHpfXfnSRZ/MdUz dIxg1Uf3AAwiwZcUdLlaajmhOeZiliGCDsHdv+/6iktMzAqwnb1aHUDnlspCu/wTuloV pPOw== X-Received: by 10.180.102.74 with SMTP id fm10mr3303830wib.25.1441111144709; Tue, 01 Sep 2015 05:39:04 -0700 (PDT) Received: from bhfedora.localdomain ([82.15.84.251]) by smtp.gmail.com with ESMTPSA id r19sm2576233wib.7.2015.09.01.05.39.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 05:39:04 -0700 (PDT) From: Brendan Heading To: buildroot@buildroot.org Date: Tue, 1 Sep 2015 13:39:02 +0100 Message-Id: <1441111142-8561-1-git-send-email-brendanheading@gmail.com> X-Mailer: git-send-email 2.4.3 Cc: Brendan Heading Subject: [Buildroot] [PATCH 1/1] package/dhrystone: fix musl compilation issue X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Fixes: http://autobuild.buildroot.net/results/1b6cb1b40431bf484db2d99bfdc8237cbae6a9d7/ http://autobuild.buildroot.net/results/20e669d6e4bc3d872a355ef658ddad8f34676624/ Include a more appropriate header file to pick up the definition of HZ from the kernel headers. Signed-off-by: Brendan Heading --- v1 - This looks a bit hacky, but it seems to compile fine against the uclibc, glibc and musl toolchain combos without any other packages enabled. Comments welcome. --- package/dhrystone/0002-HZ.patch | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/dhrystone/0002-HZ.patch b/package/dhrystone/0002-HZ.patch index e3b8a0e..9572b59 100644 --- a/package/dhrystone/0002-HZ.patch +++ b/package/dhrystone/0002-HZ.patch @@ -2,6 +2,11 @@ Get HZ value from system rather than requiring via CPPFLAGS Patch by Robin Getz +Tweaked by Brendan Heading - musl +doesn't define HZ within sys/param.h (and strictly speaking +it's not wise to depend on the glibc def either). Changed it +here to grab the kernel version. + --- a/dhry.h +++ b/dhry.h @@ -359,6 +359,10 @@ @@ -9,7 +14,7 @@ Patch by Robin Getz #endif +#ifndef HZ -+#include ++#include +#endif + #define Mic_secs_Per_Second 1000000.0