Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
config BR2_PACKAGE_HOST_QORIQ_RCW
bool "host qoriq-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://github.com/nxp-qoriq/rcw
if BR2_PACKAGE_HOST_QORIQ_RCW
config BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH
string "RCW Source file paths"
help
Space-separated list of .rcw and .rcwi files, that will be
used to generate a RCW binary. The entire list of .rcwi files
used by the .rcw file must be specified. There must be a
single .rcw file in the list.
This is optional. If left empty, the rcw package will be
included for use in the SDK or with post scripts but no
RCW binary will not be generated.
config BR2_PACKAGE_HOST_QORIQ_RCW_INTREE
string "In-tree RCW name"
depends on !BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH
help
This option is used to specify the RCW binary file for board.
which is composed as platform/serdes_value/rcw_file: platform
is the platform name, serdes_value is the setting of the
Serdes, and rcw_file is the file name of RCW. For example:
"ls1028ardb/R_SQPP_0x85bb/rcw_1300_sdboot.bin"
If this option is empty, no rcw file is used.
endif

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 933333957ed6b12d2521c1ef85ff806c4bcd5c26ef473305bd58bcf5f2abaff7 qoriq-rcw-lf-6.18.20-2.0.0.tar.gz
sha256 68f4b15ecc085729419bc60ca6eeadca5af0237bbfec791e8a79da9c943d42e9 LICENSE

View File

@@ -0,0 +1,81 @@
################################################################################
#
# qoriq-rcw
#
################################################################################
QORIQ_RCW_VERSION = lf-6.18.20-2.0.0
QORIQ_RCW_SITE = $(call github,nxp-qoriq,rcw,$(QORIQ_RCW_VERSION))
QORIQ_RCW_LICENSE = BSD-3-Clause
QORIQ_RCW_LICENSE_FILES = LICENSE
HOST_QORIQ_RCW_DEPENDENCIES = $(BR2_PYTHON3_HOST_DEPENDENCY)
QORIQ_RCW_FILES = $(call qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH))
QORIQ_RCW_INTREE = $(call qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_INTREE))
ifneq ($(QORIQ_RCW_FILES),)
QORIQ_RCW_INCLUDES = $(filter-out %.rcw,$(QORIQ_RCW_FILES))
# Get the name of the custom rcw file from the custom list
QORIQ_RCW_PROJECT = $(notdir $(filter %.rcw,$(QORIQ_RCW_FILES)))
# Error if there are no or more than one .rcw file
ifeq ($(BR_BUILDING),y)
ifneq ($(words $(QORIQ_RCW_PROJECT)),1)
$(error BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH must have exactly one .rcw file)
endif
endif
ifneq ($(QORIQ_RCW_INCLUDES),)
define HOST_QORIQ_RCW_ADD_CUSTOM_RCW_INCLUDES
mkdir -p $(@D)/custom_board
cp -f $(QORIQ_RCW_INCLUDES) $(@D)/custom_board
endef
HOST_QORIQ_RCW_POST_PATCH_HOOKS += HOST_QORIQ_RCW_ADD_CUSTOM_RCW_INCLUDES
endif
define HOST_QORIQ_RCW_ADD_CUSTOM_RCW_FILES
mkdir -p $(@D)/custom_board/rcw
cp -f $(filter %.rcw,$(QORIQ_RCW_FILES)) $(@D)/custom_board/rcw
endef
HOST_QORIQ_RCW_POST_PATCH_HOOKS += HOST_QORIQ_RCW_ADD_CUSTOM_RCW_FILES
# rcw.py is a python3-only script, and we can be using either the
# system-provided python3, or our own built with host-python3.
# Fortunately, rcw.py uses #!/usr/bin/env python3, so it will
# easily find it from PATH.
define HOST_QORIQ_RCW_BUILD_CMDS
PATH=$(BR_PATH) \
$(@D)/rcw.py \
-i $(@D)/custom_board/rcw/$(QORIQ_RCW_PROJECT) \
-I $(@D)/custom_board -o $(@D)/PBL.bin
endef
define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE
$(INSTALL) -D -m 0644 $(@D)/PBL.bin $(BINARIES_DIR)/PBL.bin
endef
else ifneq ($(QORIQ_RCW_INTREE),)
QORIQ_RCW_PLATFORM = $(firstword $(subst /, ,$(QORIQ_RCW_INTREE)))
define HOST_QORIQ_RCW_BUILD_CMDS
$(MAKE) -C $(@D)/$(QORIQ_RCW_PLATFORM)
endef
define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE
$(INSTALL) -D -m 0644 $(@D)/$(patsubst %.rcw,%.bin,$(QORIQ_RCW_INTREE)) \
$(BINARIES_DIR)/PBL.bin
endef
endif
# 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_QORIQ_RCW_INSTALL_CMDS
mkdir -p $(HOST_DIR)/share/rcw
cp -a $(@D)/* $(HOST_DIR)/share/rcw
$(HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE)
endef
$(eval $(host-generic-package))