From patchwork Fri Oct 25 18:56:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 286191 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 5EA9B2C00A2 for ; Sat, 26 Oct 2013 05:56:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6502D32F26; Fri, 25 Oct 2013 18:56:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gYga6mQppJnI; Fri, 25 Oct 2013 18:56:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 426C232F01; Fri, 25 Oct 2013 18:56:49 +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 73A821BFA7E for ; Fri, 25 Oct 2013 18:56:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6EC3F8D0BE for ; Fri, 25 Oct 2013 18:56: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 q9cfLxQWAF7l for ; Fri, 25 Oct 2013 18:56:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by whitealder.osuosl.org (Postfix) with ESMTPS id 338648D08A for ; Fri, 25 Oct 2013 18:56:47 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp01.rockwellcollins.com) ([131.198.63.132]) by mail-virt.rockwellcollins.com with ESMTP; 25 Oct 2013 13:56:44 -0500 Received: from ares ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013102513564434-7843281 ; Fri, 25 Oct 2013 13:56:44 -0500 From: Ryan Barnett To: buildroot@busybox.net Date: Fri, 25 Oct 2013 13:56:34 -0500 Message-Id: <1382727395-23441-1-git-send-email-rjbarnet@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 10/25/2013 01:56:44 PM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 10/25/2013 01:56:44 PM, Serialize complete at 10/25/2013 01:56:44 PM X-TNEFEvaluated: 1 Cc: dwayne.fontenot@att.net Subject: [Buildroot] [PATCH 1/2] fm-ucode-firmware: new package 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 Signed-off-by: Ryan Barnett --- package/Config.in | 1 + package/fm-ucode-firmware/Config.in | 19 +++++++++++++ package/fm-ucode-firmware/fm-ucode-firmware.mk | 34 ++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 0 deletions(-) create mode 100644 package/fm-ucode-firmware/Config.in create mode 100644 package/fm-ucode-firmware/fm-ucode-firmware.mk diff --git a/package/Config.in b/package/Config.in index 0e6f86c..fa62781 100644 --- a/package/Config.in +++ b/package/Config.in @@ -252,6 +252,7 @@ menu "Hardware handling" menu "Misc devices firmwares" source "package/am33x-cm3/Config.in" source "package/b43-firmware/Config.in" +source "package/fm-ucode-firmware/Config.in" source "package/linux-firmware/Config.in" source "package/rpi-firmware/Config.in" source "package/sunxi-boards/Config.in" diff --git a/package/fm-ucode-firmware/Config.in b/package/fm-ucode-firmware/Config.in new file mode 100644 index 0000000..85a92a8 --- /dev/null +++ b/package/fm-ucode-firmware/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_FM_UCODE_FIRMWARE + bool "fm-ucode-firmware" + depends on BR2_powerpc_e500mc # Only relevant for PowerPC e500mc + help + Firmware binaries for the Frame Manager hardware block in the + QorIQ products. + + http://git.freescale.com/git/cgit.cgi/ppc/sdk/fm-ucode.git/ + +comment "fm-ucode-firmware depends on PowerPC e500mc architecture" + depends on !BR2_powerpc_e500mc + +config BR2_PACKAGE_FM_UCODE_FIRMWARE_FILE + string "FMan UCode Firmware Filename" + depends on BR2_PACKAGE_FM_UCODE_FIRMWARE + help + Specify the FMan UCode firmware binary file that should + be placed in the BINARIES_DIR as fm-ucode.bin + diff --git a/package/fm-ucode-firmware/fm-ucode-firmware.mk b/package/fm-ucode-firmware/fm-ucode-firmware.mk new file mode 100644 index 0000000..da8e286 --- /dev/null +++ b/package/fm-ucode-firmware/fm-ucode-firmware.mk @@ -0,0 +1,34 @@ +################################################################################ +# +# fm-ucode-firmware +# +################################################################################ + +FM_UCODE_FIRMWARE_VERSION = fsl-sdk-v1.4 +FM_UCODE_FIRMWARE_SITE = git://git.freescale.com/ppc/sdk/fm-ucode.git +FM_UCODE_FIRMWARE_SITE_METHOD = git + +FM_UCODE_FIRMWARE_LICENSE = Freescale Semiconductor Software License Agreement +FM_UCODE_FIRMWARE_LICENSE_FILES = EULA + +# This is a legal minefield: the EULA specifies that +# the Board Support Package includes software and hardware (sic!) +# for which a separate license is needed... +FM_UCODE_FIRMWARE_REDISTRIBUTE = NO + +FM_UCODE_BINARY_FILE = $(call qstrip,$(BR2_PACKAGE_FM_UCODE_FIRMWARE_FILE)) +# The name of the file to be deliveried in the BINARIES_DIR +FM_UCODE_DELIVERY_FILE = fm-ucode.bin + +# we NEED binary file +ifeq ($(filter source,$(MAKECMDGOALS)),) +ifeq ($(FM_UCODE_BINARY_FILE),) +$(error No FMan UCode binary file. Check your BR2_PACKAGE_FM_UCODE_FIRMWARE_FILE setting) +endif +endif + +define FM_UCODE_FIRMWARE_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0644 $(@D)/$(FM_UCODE_BINARY_FILE) $(BINARIES_DIR)/$(FM_UCODE_DELIVERY_FILE) +endef + +$(eval $(generic-package))