From patchwork Sat Oct 20 19:44:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 987228 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rockwellcollins.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42ctXV5N8Cz9sC2 for ; Sun, 21 Oct 2018 06:44:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 486DF854E7; Sat, 20 Oct 2018 19:44:41 +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 Syz1_s8zrv9o; Sat, 20 Oct 2018 19:44:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A05CC85522; Sat, 20 Oct 2018 19:44:40 +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 BF9B71BF39D for ; Sat, 20 Oct 2018 19:44:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BD73785522 for ; Sat, 20 Oct 2018 19:44:39 +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 tnNTYcnHTuUJ for ; Sat, 20 Oct 2018 19:44:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs01.rockwellcollins.com (ch3vs01.rockwellcollins.com [205.175.226.27]) by fraxinus.osuosl.org (Postfix) with ESMTPS id D3398854E7 for ; Sat, 20 Oct 2018 19:44:38 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO ciulimr02.rockwellcollins.com) ([205.175.226.14]) by ch3vs01.rockwellcollins.com with ESMTP; 20 Oct 2018 14:44:36 -0500 X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by ciulimr02.rockwellcollins.com (Postfix) with ESMTP id F3A3120075; Sat, 20 Oct 2018 14:44:37 -0500 (CDT) From: Matt Weber To: buildroot@buildroot.org Date: Sat, 20 Oct 2018 14:44:38 -0500 Message-Id: <1540064678-55174-1-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH v3] package/rcw: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paresh Chaudhary MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Paresh Chaudhary This package adds NXP Layerscape and QoriQ reset config word (RCW) / pre-bootloader (PBL) generation support. The RCW is used to setup clocking and IO allocaitons and then launches the next stage of boot (usually u-boot). Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber --- Changes v2 -> v3 - Fixed bad patch sent v1 -> v2 [Thomas / Yann - Split out the basic package from the one providing the ability to do a custom board --- DEVELOPERS | 1 + package/Config.in.host | 1 + package/rcw/Config.in.host | 11 +++++++++++ package/rcw/rcw.hash | 3 +++ package/rcw/rcw.mk | 19 +++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 package/rcw/Config.in.host create mode 100644 package/rcw/rcw.hash create mode 100644 package/rcw/rcw.mk diff --git a/DEVELOPERS b/DEVELOPERS index 17db96a..9d5f3f2 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1434,6 +1434,7 @@ F: package/python-posix-ipc/ F: package/python-pypcap/ F: package/python-pyrex/ F: package/raptor/ +F: package/rcw/ F: package/rng-tools/ F: package/rsyslog/ F: package/setools/ diff --git a/package/Config.in.host b/package/Config.in.host index 3a3578c..b51563e 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -52,6 +52,7 @@ menu "Host utilities" source "package/qemu/Config.in.host" source "package/raspberrypi-usbboot/Config.in.host" source "package/rauc/Config.in.host" + source "package/rcw/Config.in.host" source "package/rustc/Config.in.host" source "package/s6-rc/Config.in.host" source "package/sam-ba/Config.in.host" diff --git a/package/rcw/Config.in.host b/package/rcw/Config.in.host new file mode 100644 index 0000000..74b1e97 --- /dev/null +++ b/package/rcw/Config.in.host @@ -0,0 +1,11 @@ +config BR2_PACKAGE_HOST_RCW + bool "host rcw" + help + This package provides an reset configuration word(RCW) + compiler to build NXP QoriQ/LS PBL/RCW binary(s). + + The package installs example configurations and scripts + for each devkit supported in the current release see + $(HOST_DIR)/share/rcw. + + https://github.com/qoriq-open-source/rcw diff --git a/package/rcw/rcw.hash b/package/rcw/rcw.hash new file mode 100644 index 0000000..c6b6865 --- /dev/null +++ b/package/rcw/rcw.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 78df534bb8fa0ebb9edd6791932b55f696abcb1b4120c8eacbd86a8b64f30318 rcw-LSDK-1703.tar.gz +sha256 5d588eb3b157d52112afea935c88a7ff9efddc1e2d95a42c25d3b96ad9055008 COPYING diff --git a/package/rcw/rcw.mk b/package/rcw/rcw.mk new file mode 100644 index 0000000..0a69c10 --- /dev/null +++ b/package/rcw/rcw.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# rcw +# +################################################################################ + +RCW_VERSION = LSDK-1703 +RCW_SITE = $(call github,qoriq-open-source,rcw,$(RCW_VERSION)) +RCW_LICENSE = BSD-3-Clause +RCW_LICENSE_FILES = COPYING + +# Copy source files and script into $(HOST_DIR)/share/rcw/ so a developer +# could use a post image or SDK to build/install PBL files. +define HOST_RCW_INSTALL_CMDS + mkdir -p $(HOST_DIR)/share/rcw + cp -a $(@D)/* $(HOST_DIR)/share/rcw +endef + +$(eval $(host-generic-package))