package/qoriq-cadence-dp-firmware: new package

This package provides the firmware for LS1028ARDB DP (display port).

Signed-off-by: Jerry Huang <jerry.huang@nxp.com>
[Arnout:
 - move out of nxp directory;
 - add extraction helper;
 - set REDISTRIBUTE to NO.
]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Jerry Huang 2020-02-07 16:38:54 +08:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent d167f7006e
commit d164df0aef
5 changed files with 60 additions and 0 deletions

View File

@ -500,6 +500,9 @@ F: package/znc/
N: Charles Hardin <ckhardin@gmail.com>
F: package/alsa-plugins/
N: Changming Huang <jerry.huang@nxp.com>
F: package/qoriq-cadence-dp-firmware/
N: Chris Packham <judge.packham@gmail.com>
F: package/coremark/
F: package/coremark-pro/

View File

@ -544,6 +544,7 @@ endmenu
source "package/pps-tools/Config.in"
source "package/pru-software-support/Config.in"
source "package/pulseview/Config.in"
source "package/qoriq-cadence-dp-firmware/Config.in"
source "package/raspi-gpio/Config.in"
source "package/read-edid/Config.in"
source "package/rng-tools/Config.in"

View File

@ -0,0 +1,4 @@
config BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE
bool "qoriq-cadence-dp-firmware"
help
NXP QorIQ cadence DP firmware, a resident EL3 firmware.

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 5871c5717be32f14a59624d5699d405e8ce9ae2e9c9ef86fd16e13d264a40e58 firmware-cadence-lsdk1909.bin
sha256 d55f024af2bfff714b90de596f6d0399124b999e8c18a86b13a3b507bae6f561 COPYING

View File

@ -0,0 +1,49 @@
################################################################################
#
# qoriq-cadence-dp-firmware
#
################################################################################
QORIQ_CADENCE_DP_FIRMWARE_VERSION = lsdk1909
QORIQ_CADENCE_DP_FIRMWARE_SITE = http://www.nxp.com/lgfiles/sdk/$(QORIQ_CADENCE_DP_FIRMWARE_VERSION)
QORIQ_CADENCE_DP_FIRMWARE_SOURCE = firmware-cadence-$(QORIQ_CADENCE_DP_FIRMWARE_VERSION).bin
QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP-Binary-EULA
QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING
QORIQ_CADENCE_DP_FIRMWARE_REDISTRIBUTE = NO
QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
# Helper for self-extracting binaries distributed by NXP.
#
# The --force option makes sure it doesn't fail if the source
# directory already exists. The --auto-accept skips the license check,
# as it is not needed in Buildroot because we have legal-info. Since
# there's a EULA in the binary file, we extract it in this macro, and
# it should therefore be added to the LICENSE_FILES variable of
# packages using this macro. Also, remember to set REDISTRIBUTE to
# "NO". Indeed, this is a legal minefield: the EULA specifies that the
# Board Support Package includes software and hardware (sic!) for
# which a separate license is needed...
#
# $(1): full path to the archive file
#
define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_HELPER
awk 'BEGIN { start = 0; } \
/^EOEULA/ { start = 0; } \
{ if (start) print; } \
/<<EOEULA/ { start = 1; }' \
$(1) > $(@D)/EULA
cd $(@D) && sh $(1) --force --auto-accept
find $(@D)/$(basename $(notdir $(1))) -mindepth 1 -maxdepth 1 -exec mv {} $(@D) \;
rmdir $(@D)/$(basename $(notdir $(1)))
endef
define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS
$(call QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_HELPER,$(QORIQ_CADENCE_DP_FIRMWARE_DL_DIR)/$(QORIQ_CADENCE_DP_FIRMWARE_SOURCE))
endef
define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES_CMDS
$(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin $(BINARIES_DIR)/ls1028a-dp-fw.bin
endef
$(eval $(generic-package))