aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Paresh Chaudhary <paresh.chaudhary@rockwellcollins.com>2019-01-16 06:39:52 -0600
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-02-06 12:56:26 +0100
commit89c03d045175b238b68ce5dd617a40a2ced35cd7 (patch)
tree6652f85ed5c445562cdfa9aa0bd00f75f63037b7
parenteada187e77022f0da30884a826dc1767ba99abe8 (diff)
downloadbuildroot-89c03d045175b238b68ce5dd617a40a2ced35cd7.tar.gz
buildroot-89c03d045175b238b68ce5dd617a40a2ced35cd7.tar.bz2
package/rcw: new package
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 allocations and then launches the next stage of boot (usually u-boot). Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--DEVELOPERS1
-rw-r--r--package/Config.in.host1
-rw-r--r--package/rcw/Config.in.host12
-rw-r--r--package/rcw/rcw.hash3
-rw-r--r--package/rcw/rcw.mk20
5 files changed, 37 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index 1f3cc6a888..834b6ed62d 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1461,6 +1461,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 3b75f23dd7..b4c501a33b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -53,6 +53,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 0000000000..ba40f76de9
--- /dev/null
+++ b/package/rcw/Config.in.host
@@ -0,0 +1,12 @@
+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. Either a SDK or post scripts can
+ then use this toolset and examples.
+
+ https://source.codeaurora.org/external/qoriq/qoriq-components/rcw/
diff --git a/package/rcw/rcw.hash b/package/rcw/rcw.hash
new file mode 100644
index 0000000000..7de1ec659a
--- /dev/null
+++ b/package/rcw/rcw.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 1421ada9fec10b12ff21cd9ad82f0a835b191cb2dde80f03547764574b1346c3 rcw-LSDK-18.12.tar.gz
+sha256 a531b3146425e592db17a51ff39c4801cb01fb4055ffdaada0572decc0655bcd LICENSE
diff --git a/package/rcw/rcw.mk b/package/rcw/rcw.mk
new file mode 100644
index 0000000000..f4570b9bde
--- /dev/null
+++ b/package/rcw/rcw.mk
@@ -0,0 +1,20 @@
+################################################################################
+#
+# rcw
+#
+################################################################################
+
+RCW_VERSION = LSDK-18.12
+RCW_SITE = https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
+RCW_SITE_METHOD = git
+RCW_LICENSE = BSD-3-Clause
+RCW_LICENSE_FILES = LICENSE
+
+# 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))