From patchwork Wed Nov 16 19:24:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ash Charles X-Patchwork-Id: 695764 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]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tJvMv1m9Pz9t0v for ; Thu, 17 Nov 2016 06:24:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mTbw4n0K"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D47B486B32; Wed, 16 Nov 2016 19:24:40 +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 g_yq806YjTuu; Wed, 16 Nov 2016 19:24:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id F2F8886B1E; Wed, 16 Nov 2016 19:24:39 +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 6205B1C04E9 for ; Wed, 16 Nov 2016 19:24:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5D26B86B1E for ; Wed, 16 Nov 2016 19:24:38 +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 AdGjWuD9pqdD for ; Wed, 16 Nov 2016 19:24:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 5A40686B1B for ; Wed, 16 Nov 2016 19:24:37 +0000 (UTC) Received: by mail-qt0-f196.google.com with SMTP id n34so12290810qtb.3 for ; Wed, 16 Nov 2016 11:24:37 -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=9Rc3qhKyjZPjxXEGhBelN9SX+naF/Upp3t6g2uFY07Y=; b=mTbw4n0KWZy0KiopkPlLy5Z8hA9QplvpehIlEDpYlEJsCsvFxASunlcGE98TiBqdT1 PktW8QPdOpQSIu691wqfjYrURESWtABbZcgze7xZtkL/lSymE5YqyJePhSQLJI2lESTO kfsYhuDZ10xKxAA/Rzz3JJvzOH48nEeb6JmamJwAQ7MmCKVF8Z2j+A/EKZDN9mYRDLOI agV52A708M1IEqVS8yAROcdZER6lEuVYtkmelT1n4UzREZkoo0sOMqjV1v1ZiGRmkV2q b3qF+Gl0Ozo5uqrHSLykd8ebZ95tIbQAaHZZtVLvNXgasnLiqzTpzlwRWboo/u13nptr 4zDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=9Rc3qhKyjZPjxXEGhBelN9SX+naF/Upp3t6g2uFY07Y=; b=jw4E6Tet/vG0qKO6+pEC3yME4mUfJrHrvWnOATgxr47E535bjrPGOuhaMokKH3U6xD XxfLFhcNxTaEX+m80ntsNCVJ4o4WvoHugtP2P+npLQFX8dw7bsCpDS5vCA5OokZJHbE2 rmzCLu34kpxZddjnhL8DTSvYSPLtDSSZXRb5roKKezBH7nSTMGZ/hGGthTwaBcnbtzE9 V8XI3MOuaQasrZ/oB2Ujrtjnxu7Vmep1mrPX72DsFN/yc10tZmR5RJBYqtIhu7Rd5V6a Sgun+yZFwj9PZHGfsuMnCZIzVdyZcvmVBORb4bxAA29H7hTwq4RJzXW+OlDLq75Hkntg yb9A== X-Gm-Message-State: AKaTC03vyMvfYM+nEp7u6WXRi1ujq0FwBR3dTwF4I52QZAp1bThhDMXB0td2QxC04gA5xw== X-Received: by 10.237.39.37 with SMTP id n34mr3055318qtd.128.1479324276296; Wed, 16 Nov 2016 11:24:36 -0800 (PST) Received: from pc-acharles.mtl.sfl ([2607:fad8:4:6:c8a6:17d:5ad6:1157]) by smtp.gmail.com with ESMTPSA id j64sm10088910qkc.24.2016.11.16.11.24.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Nov 2016 11:24:35 -0800 (PST) From: Ash Charles X-Google-Original-From: Ash Charles To: buildroot@buildroot.org Date: Wed, 16 Nov 2016 14:24:32 -0500 Message-Id: <1479324273-13589-1-git-send-email-ash.charles@savoirfairelinux.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/2] ti-cgt-pru: add package for PRU Host toolchain 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" TI provides a binary code generation toolchain to develop firmware for the programmable real-time unit/co-processor found in some SOCs such as some models in the AM335x line. This toolchain includes C/C++ support (clpru) rather than just assembler (pasm) supported by the pre-existing am335x-pru-package [1]. Following the lead of the Yocto meta-ti layer [2], this package provides a host toolchain suitable for an x86 (or x86_64) Linux targeting an ARM-based PRU core. [1] http://processors.wiki.ti.com/index.php/PRU_Assembly_Instructions#pasm_vs._clpru [2] http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-ti/devtools/ti-cgt-pru_2.1.1.bb Signed-off-by: Ash Charles --- package/Config.in.host | 1 + package/ti-cgt-pru/Config.in.host | 11 +++++++++++ package/ti-cgt-pru/ti-cgt-pru.hash | 2 ++ package/ti-cgt-pru/ti-cgt-pru.mk | 29 +++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 package/ti-cgt-pru/Config.in.host create mode 100644 package/ti-cgt-pru/ti-cgt-pru.hash create mode 100644 package/ti-cgt-pru/ti-cgt-pru.mk diff --git a/package/Config.in.host b/package/Config.in.host index 3b115c5..e244694 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -39,6 +39,7 @@ menu "Host utilities" source "package/squashfs/Config.in.host" source "package/sunxi-tools/Config.in.host" source "package/tegrarcm/Config.in.host" + source "package/ti-cgt-pru/Config.in.host" source "package/uboot-tools/Config.in.host" source "package/util-linux/Config.in.host" source "package/vboot-utils/Config.in.host" diff --git a/package/ti-cgt-pru/Config.in.host b/package/ti-cgt-pru/Config.in.host new file mode 100644 index 0000000..440f774 --- /dev/null +++ b/package/ti-cgt-pru/Config.in.host @@ -0,0 +1,11 @@ +config BR2_PACKAGE_HOST_TI_CGT_PRU + bool "host ti-cgt-pru" + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" + help + This package provides the Code Generation Tools for the PRU + unit found on some TI processors e.g. AM3358. + + Note: this is a binary cross toolchain that runs on x86 hosts + targeting ARM PRU cores. + + https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm#PRU diff --git a/package/ti-cgt-pru/ti-cgt-pru.hash b/package/ti-cgt-pru/ti-cgt-pru.hash new file mode 100644 index 0000000..1c19b33 --- /dev/null +++ b/package/ti-cgt-pru/ti-cgt-pru.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 df85cd1ed3aea12d577854ece11bf5f2af6ace8c39959eea4cf2fa5973924e0e ti_cgt_pru_2.1.3_linux_installer_x86.bin diff --git a/package/ti-cgt-pru/ti-cgt-pru.mk b/package/ti-cgt-pru/ti-cgt-pru.mk new file mode 100644 index 0000000..a4c8566 --- /dev/null +++ b/package/ti-cgt-pru/ti-cgt-pru.mk @@ -0,0 +1,29 @@ +################################################################################ +# +# ti-cgt-pru +# +################################################################################ + +TI_CGT_PRU_VERSION = 2.1.3 +TI_CGT_PRU_SOURCE = ti_cgt_pru_$(TI_CGT_PRU_VERSION)_linux_installer_x86.bin +TI_CGT_PRU_SITE = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/$(TI_CGT_PRU_VERSION)/" +TI_CGT_PRU_LICENSE = BSD-3c, MIT, TI-TSPA +TI_CGT_PRU_LICENSE_FILES = PRU_Code_Generation_Tools_2.1.x_manifest.html + +define HOST_TI_CGT_PRU_EXTRACT_CMDS + chmod +x $(DL_DIR)/$(TI_CGT_PRU_SOURCE) + $(DL_DIR)/$(TI_CGT_PRU_SOURCE) --prefix $(@D) --mode unattended +endef + +# Since this is largely prebuilt toolchain and likes to live in its own +# directory, put is in $(HOST_DIR)/ti-cgt-pru_$(CGT_PRU_VERION) +# Packages wanting to use this toolchain need to use this path as TI's +# standard PRU_CGT path. + +PRU_CGT = $(HOST_DIR)/ti-cgt-pru_$(TI_CGT_PRU_VERSION) +define HOST_TI_CGT_PRU_INSTALL_CMDS + $(INSTALL) -d $(PRU_CGT) + cp -af $(@D)/$(notdir $(PRU_CGT)) $(HOST_DIR) +endef + +$(eval $(host-generic-package))