From patchwork Wed Sep 23 13:39:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 521693 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 0CB4C1401AD for ; Wed, 23 Sep 2015 23:39:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 17DB89525A; Wed, 23 Sep 2015 13:39:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Pyl2CmjUSsW; Wed, 23 Sep 2015 13:39:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 11C0195254; Wed, 23 Sep 2015 13:39:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 85DFA1C1064 for ; Wed, 23 Sep 2015 13:39:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 81BDA91CA7 for ; Wed, 23 Sep 2015 13:39:37 +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 rcP1bQSTnn9T for ; Wed, 23 Sep 2015 13:39:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6EFB991CC1 for ; Wed, 23 Sep 2015 13:39:36 +0000 (UTC) Received: by wiclk2 with SMTP id lk2so69777481wic.1 for ; Wed, 23 Sep 2015 06:39:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZVsaQUwb+iACriJUtXv06licnSXSdf93otqnhsTJBMU=; b=E0DWVI5iH5mSQiAFfOaXYvQp1UhNGgFazT+EDEyETi02Bopq2lLnbaNq08Cn1BWDn5 LpZSQWALgOpn36NrdfVzdPRPuLfM7e6b256B6+2/guXdhE28AGMB832LWWCINMr4UGUY SXIhNPOoIHOpS4l/b4ip92RpB57Q/TcIw8a0IECs+zyhEIvD4yMco+vaPf97cjDmGBqv GPe9KCsKH+RuFlvylPx4QsfkaUyX3Yq9Bf+LcR6roHkpNZXSnBeFgIyi6wBqAOPd1QmV qUkr466odw+7kALiNyMG04v4rP6Ne6j1XXBzjzqU9hiFrHCXMExqG4IGXMu3S6G68DKj YpfA== X-Gm-Message-State: ALoCoQmLs4H2QibP3Iy/3PdNplP8Mk7jv5fRAGDzEPdDkR0ieu/cIE6nCz8nOIjeyTAtMVa/5kcb X-Received: by 10.180.86.100 with SMTP id o4mr4018796wiz.59.1443015574770; Wed, 23 Sep 2015 06:39:34 -0700 (PDT) Received: from t450s.lan (89-92-157-132.hfc.dyn.abo.bbox.fr. [89.92.157.132]) by smtp.googlemail.com with ESMTPSA id pg5sm7340260wjb.21.2015.09.23.06.39.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Sep 2015 06:39:34 -0700 (PDT) From: Gary Bisson To: buildroot@busybox.net Date: Wed, 23 Sep 2015 15:39:26 +0200 Message-Id: <1443015567-4040-2-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1443015567-4040-1-git-send-email-gary.bisson@boundarydevices.com> References: <1443015567-4040-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH v2 1/2] imx-kobs: add new package 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" Based on the Yocto 3.14.28-1.0.0_ga update: https://github.com/Freescale/meta-fsl-arm/commit/6c44744 Signed-off-by: Gary Bisson --- package/freescale-imx/Config.in | 1 + .../imx-kobs/0001-Fix-musl-build.patch | 39 ++++++++++++++++++++++ package/freescale-imx/imx-kobs/Config.in | 10 ++++++ package/freescale-imx/imx-kobs/imx-kobs.hash | 2 ++ package/freescale-imx/imx-kobs/imx-kobs.mk | 12 +++++++ 5 files changed, 64 insertions(+) create mode 100644 package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch create mode 100644 package/freescale-imx/imx-kobs/Config.in create mode 100644 package/freescale-imx/imx-kobs/imx-kobs.hash create mode 100644 package/freescale-imx/imx-kobs/imx-kobs.mk diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index dffe76f..a958dbd 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -42,6 +42,7 @@ config BR2_PACKAGE_FREESCALE_IMX_PLATFORM default "IMX53" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 default "IMX6Q" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q +source "package/freescale-imx/imx-kobs/Config.in" source "package/freescale-imx/imx-lib/Config.in" source "package/freescale-imx/imx-vpu/Config.in" source "package/freescale-imx/firmware-imx/Config.in" diff --git a/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch b/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch new file mode 100644 index 0000000..ce123de --- /dev/null +++ b/package/freescale-imx/imx-kobs/0001-Fix-musl-build.patch @@ -0,0 +1,39 @@ +[PATCH] Fix musl build + +Signed-off-by: Gary Bisson +--- + src/mtd.c | 1 + + src/mtd.h | 5 +++++ + 2 files changed, 6 insertions(+) + +diff --git a/src/mtd.c b/src/mtd.c +index 1edc441..6d2264c 100644 +--- a/src/mtd.c ++++ b/src/mtd.c +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + #include + #include + +diff --git a/src/mtd.h b/src/mtd.h +index bd21add..debfc84 100644 +--- a/src/mtd.h ++++ b/src/mtd.h +@@ -31,6 +31,11 @@ + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" + ++// musl library doesn't define loff_t ++#if !defined(__GLIBC__) && !defined(__UCLIBC__) ++#define loff_t off_t ++#endif ++ + //------------------------------------------------------------------------------ + // Re-definitions of true and false, because the standard ones aren't good + // enough? +-- +2.5.1 + diff --git a/package/freescale-imx/imx-kobs/Config.in b/package/freescale-imx/imx-kobs/Config.in new file mode 100644 index 0000000..fc2344e --- /dev/null +++ b/package/freescale-imx/imx-kobs/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_IMX_KOBS + bool "imx-kobs" + depends on BR2_arm # Only relevant for i.MX + help + The imx-kobs tool is used for writing images to NAND on i.MX + platforms. + + This library is provided by Freescale as-is and doesn't have + an upstream. + diff --git a/package/freescale-imx/imx-kobs/imx-kobs.hash b/package/freescale-imx/imx-kobs/imx-kobs.hash new file mode 100644 index 0000000..13373ea --- /dev/null +++ b/package/freescale-imx/imx-kobs/imx-kobs.hash @@ -0,0 +1,2 @@ +# locally computed +sha256 cfac042f5c96731205c397a4a6b3ed966f804569ae4d0e2685d22fdf6bdc9eb7 imx-kobs-3.14.28-1.0.0.tar.gz diff --git a/package/freescale-imx/imx-kobs/imx-kobs.mk b/package/freescale-imx/imx-kobs/imx-kobs.mk new file mode 100644 index 0000000..02c5cad --- /dev/null +++ b/package/freescale-imx/imx-kobs/imx-kobs.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# imx-kobs +# +################################################################################ + +IMX_KOBS_VERSION = $(FREESCALE_IMX_VERSION) +IMX_KOBS_SITE = $(FREESCALE_IMX_SITE) +IMX_KOBS_LICENSE = GPLv2+ +IMX_KOBS_LICENSE_FILES = COPYING + +$(eval $(autotools-package))