openwrtv4/package/firmware/layerscape/ls-rcw/Makefile
Yangbo Lu 89c4ed57b7 layerscape: update ls-rcw to LSDK-18.06
The rcw source code had been migrated to codeaurora
for LSDK-18.06 release and the future release. The
source code had also involved ls1012ardb/ls1012afrdm/
ls1088ardb/ls2088ardb rcw, so we updated ls-rcw to
LSDK-18.06, reworked the makefile and dropped ls-rcw-bin
package in this patch. Also reworked ls-rcw patch to
adapt to the latest source code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2018-09-22 21:20:56 +02:00

81 lines
2.1 KiB
Makefile

#
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ls-rcw
PKG_VERSION:=lsdk-1806
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
PKG_SOURCE_VERSION:=1f43bef4b4475d8e81c9b3b8c5bdd6c1ce8cfa6c
PKG_MIRROR_HASH:=a3b455bcc1f070c8e51f520e32b62cec5b05d772d7ae4a876d88fd5f278a7b1c
include $(INCLUDE_DIR)/package.mk
define Package/layerscape-rcw/Config
define Package/layerscape-rcw-$(1)
SECTION:=firmware
CATEGORY:=Firmware
TITLE:=$(2)
DEPENDS:=@TARGET_layerscape
CONFIG:=$(3)
endef
endef
define Package/layerscape-rcw/ls1012ardb
TITLE:=NXP LS1012ARDB RCW binary
CONFIG:=ls1012ardb/R_SPNH_3508/rcw_1000_default.bin.swapped
endef
define Package/layerscape-rcw/ls1012afrdm
TITLE:=NXP LS1012AFRDM RCW binary
CONFIG:=ls1012afrdm/N_SSNP_3305/rcw_800.bin.swapped
endef
define Package/layerscape-rcw/ls1043ardb
TITLE:=NXP LS1043ARDB RCW binary
CONFIG:=ls1043ardb/RR_FQPP_1455/rcw_1600.bin
endef
define Package/layerscape-rcw/ls1046ardb
TITLE:=NXP LS1046ARDB RCW binary
CONFIG:=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin.swapped
endef
define Package/layerscape-rcw/ls1088ardb
TITLE:=NXP LS1088ARDB RCW binary
CONFIG:=ls1088ardb/FCQQQQQQQQ_PPP_H_0x1d_0x0d/rcw_1600_qspi.bin
endef
define Package/layerscape-rcw/ls2088ardb
TITLE:=NXP LS2088ARDB RCW binary
CONFIG:=ls2088ardb/FFFFFFFF_PP_HH_0x2a_0x41/rcw_1800.bin
endef
define Package/layerscape-rcw/Install
define Package/layerscape-rcw-$(1)/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/$(1)-rcw.bin
endef
endef
RCWS := \
ls1012ardb \
ls1012afrdm \
ls1043ardb \
ls1046ardb \
ls1088ardb \
ls2088ardb
$(foreach rcw,$(RCWS), \
$(eval $(Package/layerscape-rcw/$(rcw))) \
$(eval $(call Package/layerscape-rcw/Config,$(rcw),$(TITLE),$(CONFIG))) \
$(eval $(call Package/layerscape-rcw/Install,$(rcw))) \
$(eval $(call BuildPackage,layerscape-rcw-$(rcw))) \
)