diff --git a/DEVELOPERS b/DEVELOPERS index 9cfdbcc662..9496feaaf1 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3388,6 +3388,7 @@ F: configs/ts5500_defconfig N: Vladimir Oltean F: package/qoriq-ddr-phy-binary/ +F: package/qoriq-mc-binary/ N: Volkov Viacheslav F: package/v4l2grab/ diff --git a/package/Config.in b/package/Config.in index 413d30174f..6b4011a2b5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -451,6 +451,7 @@ menu "Firmware" source "package/qcom-db410c-firmware/Config.in" source "package/qoriq-ddr-phy-binary/Config.in" source "package/qoriq-fm-ucode/Config.in" + source "package/qoriq-mc-binary/Config.in" source "package/rcw-smarc-sal28/Config.in" source "package/rpi-firmware/Config.in" source "package/sunxi-boards/Config.in" diff --git a/package/qoriq-mc-binary/Config.in b/package/qoriq-mc-binary/Config.in new file mode 100644 index 0000000000..6008b6c456 --- /dev/null +++ b/package/qoriq-mc-binary/Config.in @@ -0,0 +1,55 @@ +config BR2_PACKAGE_QORIQ_MC_BINARY + bool "qoriq-mc-binary" + 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 coprocessor runs a closed-source, NXP-supplied + firmware image that simplifies and abstracts the allocation + and configuration of the networking hardware primitives into + DPAA2 "objects". + + https://github.com/nxp-qoriq/qoriq-mc-binary + +if BR2_PACKAGE_QORIQ_MC_BINARY +choice + prompt "QorIQ MC firmware target" + help + Select the target SoC for the QorIQ MC firmware. + +config BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS1088A + bool "ls1088a" + +config BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS2080A + bool "ls2080a" + +config BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS2088A + bool "ls2088a" + +config BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LX2160A + bool "lx2160a" + +endchoice + +config BR2_QORIQ_MC_BINARY_PLATFORM + string + default "ls1088a" if BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS1088A + default "ls2080a" if BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS2080A + default "ls2088a" if BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LS2088A + default "lx2160a" if BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LX2160A + +config BR2_QORIQ_MC_BINARY_SUBDIR + string + default "lx216xa" if BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_LX2160A + default BR2_QORIQ_MC_BINARY_PLATFORM + +config BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_INSTALL_PATH + string "Path on target to install MC firmware" + help + The MC firmware can optionally be deployed to the target + filesystem at the path specified here. This is useful if + the mcinitcmd U-Boot environment variable is configured + to load the MC firmware from the filesystem. + +endif diff --git a/package/qoriq-mc-binary/qoriq-mc-binary.hash b/package/qoriq-mc-binary/qoriq-mc-binary.hash new file mode 100644 index 0000000000..ccddff28cd --- /dev/null +++ b/package/qoriq-mc-binary/qoriq-mc-binary.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 912ad8effd5c7b08eb277719b1e021b8b1fe4022dc3d961b419562e1d2d7a860 qoriq-mc-binary-10.39.0.tar.gz +sha256 7733839334c6c820f01f76bff7ee9b60411effdcee8b6017e1d5bcacbdb432f6 LICENSE diff --git a/package/qoriq-mc-binary/qoriq-mc-binary.mk b/package/qoriq-mc-binary/qoriq-mc-binary.mk new file mode 100644 index 0000000000..68f00eda20 --- /dev/null +++ b/package/qoriq-mc-binary/qoriq-mc-binary.mk @@ -0,0 +1,30 @@ +################################################################################ +# +# qoriq-mc-binary +# +################################################################################ + +QORIQ_MC_BINARY_VERSION = 10.39.0 +QORIQ_MC_BINARY_SITE = $(call github,nxp-qoriq,qoriq-mc-binary,mc_release_$(QORIQ_MC_BINARY_VERSION)) +QORIQ_MC_BINARY_LICENSE = NXP Binary EULA +QORIQ_MC_BINARY_LICENSE_FILES = LICENSE +QORIQ_MC_BINARY_INSTALL_IMAGES = YES + +QORIQ_MC_BINARY_PLATFORM = $(call qstrip,$(BR2_QORIQ_MC_BINARY_PLATFORM)) +QORIQ_MC_BINARY_SUBDIR = $(call qstrip,$(BR2_QORIQ_MC_BINARY_SUBDIR)) +QORIQ_MC_BINARY_BIN = mc_$(QORIQ_MC_BINARY_PLATFORM)_$(QORIQ_MC_BINARY_VERSION).itb +QORIQ_MC_BINARY_INSTALL_PATH = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_BINARY_TARGET_INSTALL_PATH)) + +ifeq ($(QORIQ_MC_BINARY_TARGET_INSTALL_PATH),) +QORIQ_MC_BINARY_INSTALL_TARGET = NO +endif + +define QORIQ_MC_BINARY_INSTALL_IMAGES_CMDS + $(INSTALL) -D $(@D)/$(QORIQ_MC_BINARY_SUBDIR)/$(QORIQ_MC_BINARY_BIN) $(BINARIES_DIR)/mc.itb +endef + +define QORIQ_MC_BINARY_INSTALL_TARGET_CMDS + $(INSTALL) -D $(@D)/$(QORIQ_MC_BINARY_SUBDIR)/$(QORIQ_MC_BINARY_BIN) $(TARGET_DIR)/$(QORIQ_MC_BINARY_INSTALL_PATH)/mc.itb +endef + +$(eval $(generic-package))