Initial Commit
- initial default booting image
This commit is contained in:
76
package/qoriq-mc-utils/Config.in
Normal file
76
package/qoriq-mc-utils/Config.in
Normal file
@@ -0,0 +1,76 @@
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS
|
||||
bool "qoriq-mc-utils"
|
||||
select BR2_PACKAGE_HOST_DTC
|
||||
help
|
||||
The Management Complex (MC) is a key component of the
|
||||
networking subsystem named DPAA2 (Data Path Acceleration
|
||||
Architecture, second version) in some NXP Layerscape SoCs.
|
||||
|
||||
The MC firmware is configured through two distinct files
|
||||
named DPL and DPC, which are customizable by the end user.
|
||||
Example configuration files for NXP reference boards are
|
||||
distributed through this package, and are frequently patched
|
||||
to produce the configuration required in other scenarios.
|
||||
|
||||
https://github.com/nxp-qoriq/mc-utils
|
||||
# sign in required
|
||||
https://www.nxp.com/webapp/Download?colCode=DPAA2UM
|
||||
|
||||
if BR2_PACKAGE_QORIQ_MC_UTILS
|
||||
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS_DPC_CUSTOM_PATH
|
||||
string "Data Path Configuration (DPC) custom file paths"
|
||||
help
|
||||
The DPC file contains the settings defining the behavior
|
||||
of the MC firmware. Its structure follows the device
|
||||
tree syntax and is compiled to a device tree blob.
|
||||
|
||||
This option defines a space-separated list of device
|
||||
tree source (DTS) file names, specified without
|
||||
the trailing .dts. It should be used when the NXP
|
||||
qoriq-mc-utils repository does not contain an adequate
|
||||
DPC for the platform, and is preferable to patching
|
||||
the package.
|
||||
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS_DPC_INTREE
|
||||
string "Data Path Configuration (DPC) in-tree files"
|
||||
help
|
||||
This option defines a space-separated list of device
|
||||
tree source (DTS) files relative to the "config/"
|
||||
folder of the qoriq-mc-utils repository, specified
|
||||
without the trailing .dts. It should be used when NXP
|
||||
provides an adequate DPC for the platform.
|
||||
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS_DPL_CUSTOM_PATH
|
||||
string "Data Path Layout (DPL) custom file paths"
|
||||
help
|
||||
The DPL file contains a description of the initial
|
||||
networking objects created by the MC firmware when it
|
||||
boots. Its structure follows the device tree syntax
|
||||
and is compiled to a device tree blob.
|
||||
|
||||
This option defines a space-separated list of device
|
||||
tree source (DTS) files, specified without the
|
||||
trailing .dts. It should be used when the NXP
|
||||
qoriq-mc-utils repository does not contain an
|
||||
adequate DPL for the platform, and is preferable to
|
||||
patching the package.
|
||||
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS_DPL_INTREE
|
||||
string "Data Path Layout (DPL) in-tree files"
|
||||
help
|
||||
This option defines a space-separated list of device
|
||||
tree source (DTS) files relative to the "config/"
|
||||
folder of the qoriq-mc-utils repository, specified
|
||||
without the trailing .dts. It should be used when NXP
|
||||
provides an adequate DPL for the platform.
|
||||
|
||||
config BR2_PACKAGE_QORIQ_MC_UTILS_TARGET_INSTALL_PATH
|
||||
string "Path on target to install DPL and DPC files"
|
||||
help
|
||||
The DPL and DPC files can optionally be deployed to
|
||||
the target at the path specified here. This is useful
|
||||
if the mcinitcmd U-Boot environment variable is
|
||||
configured to apply the DPL and DPC from the filesystem.
|
||||
|
||||
endif
|
||||
3
package/qoriq-mc-utils/qoriq-mc-utils.hash
Normal file
3
package/qoriq-mc-utils/qoriq-mc-utils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 1d3f4a6b2661cff9cfb5d4fcba3b181eb6febdd88a127fa069e306f51d778fc5 qoriq-mc-utils-10.39.0.tar.gz
|
||||
sha256 7a223031d76339df0e4e5a94d193a270fb9963d42b577aa42fe130a4657f3e17 LICENSE
|
||||
45
package/qoriq-mc-utils/qoriq-mc-utils.mk
Normal file
45
package/qoriq-mc-utils/qoriq-mc-utils.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# qoriq-mc-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
QORIQ_MC_UTILS_VERSION = 10.39.0
|
||||
QORIQ_MC_UTILS_SITE = $(call github,nxp-qoriq,mc-utils,mc_release_$(QORIQ_MC_UTILS_VERSION))
|
||||
QORIQ_MC_UTILS_LICENSE = BSD-3-Clause
|
||||
QORIQ_MC_UTILS_INSTALL_IMAGES = YES
|
||||
QORIQ_MC_UTILS_DEPENDENCIES = host-dtc
|
||||
|
||||
QORIQ_MC_UTILS_DPC_FILES = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPC_CUSTOM_PATH))
|
||||
QORIQ_MC_UTILS_DPC_INTREE = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPC_INTREE))
|
||||
QORIQ_MC_UTILS_DPL_FILES = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPL_CUSTOM_PATH))
|
||||
QORIQ_MC_UTILS_DPL_INTREE = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPL_INTREE))
|
||||
QORIQ_MC_UTILS_INSTALL_PATH = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_TARGET_INSTALL_PATH))
|
||||
|
||||
ifeq ($(QORIQ_MC_UTILS_INSTALL_PATH),)
|
||||
QORIQ_MC_UTILS_INSTALL_TARGET = NO
|
||||
endif
|
||||
|
||||
define QORIQ_MC_UTILS_INSTALL_FILES
|
||||
$(INSTALL) -d $(1)
|
||||
$(foreach file, $(QORIQ_MC_UTILS_DPC_FILES) $(QORIQ_MC_UTILS_DPL_FILES), \
|
||||
PATH=$(BR_PATH) dtc -I dts -O dtb $(file).dts -o $(1)/$(notdir $(file)).dtb
|
||||
)
|
||||
$(foreach file, $(QORIQ_MC_UTILS_DPC_INTREE) $(QORIQ_MC_UTILS_DPL_INTREE), \
|
||||
$(INSTALL) -D $(@D)/config/$(file).dtb $(1)/$(notdir $(file)).dtb
|
||||
)
|
||||
endef
|
||||
|
||||
define QORIQ_MC_UTILS_BUILD_CMDS
|
||||
PATH=$(BR_PATH) $(MAKE) -C $(@D)/config/
|
||||
endef
|
||||
|
||||
define QORIQ_MC_UTILS_INSTALL_IMAGES_CMDS
|
||||
$(call QORIQ_MC_UTILS_INSTALL_FILES,$(BINARIES_DIR))
|
||||
endef
|
||||
|
||||
define QORIQ_MC_UTILS_INSTALL_TARGET_CMDS
|
||||
$(call QORIQ_MC_UTILS_INSTALL_FILES,$(TARGET_DIR)/$(QORIQ_MC_UTILS_INSTALL_PATH))
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user