layerscape: define only one package for fman-ucode

We do not have to define package for each board, and
consider variant's installing.
It is easier to maintain fman-ucode with only one package
installing all two binaries as intermediate files.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
Yangbo Lu 2020-03-14 14:11:12 +08:00 committed by Petr Štetiar
parent 12bc4084bd
commit 6c9d8990a4
2 changed files with 13 additions and 25 deletions

View File

@ -18,34 +18,22 @@ PKG_MIRROR_HASH:=a630f1a86e4a67a0e390312291702560e3f64dd74fe6ccb8f3be4584d00c7f8
include $(INCLUDE_DIR)/package.mk
define Package/layerscape-fman-ls1043ardb
define Package/layerscape-fman
SECTION:=firmware
CATEGORY:=Firmware
TITLE:=NXP LS1043ARDB FMan ucode
TITLE:=NXP FMan ucode
DEPENDS:=@TARGET_layerscape
CONFIG:=fsl_fman_ucode_ls1043_r1.1_106_4_18.bin
endef
define Package/layerscape-fman-ls1046ardb
SECTION:=firmware
CATEGORY:=Firmware
TITLE:=NXP LS1046ARDB FMan ucode
DEPENDS:=@TARGET_layerscape
CONFIG:=fsl_fman_ucode_ls1046_r1.0_106_4_18.bin
endef
define Build/Compile
endef
define Package/layerscape-fman-ls1043ardb/install
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls1043ardb-fman.bin
$(CP) $(PKG_BUILD_DIR)/fsl_fman_ucode_ls1043_r1.1_106_4_18.bin \
$(STAGING_DIR_IMAGE)/ls1043ardb-fman.bin
$(CP) $(PKG_BUILD_DIR)/fsl_fman_ucode_ls1046_r1.0_106_4_18.bin \
$(STAGING_DIR_IMAGE)/ls1046ardb-fman.bin
endef
define Package/layerscape-fman-ls1046ardb/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ls1046ardb-fman.bin
endef
$(eval $(call BuildPackage,layerscape-fman-ls1043ardb))
$(eval $(call BuildPackage,layerscape-fman-ls1046ardb))
$(eval $(call BuildPackage,layerscape-fman))

View File

@ -97,7 +97,7 @@ define Device/ls1043ardb
DEVICE_MODEL := LS1043A-RDB
DEVICE_VARIANT := Default
DEVICE_PACKAGES += \
layerscape-fman-ls1043ardb \
layerscape-fman \
tfa-ls1043ardb \
fmc fmc-eth-config
DEVICE_DTS := freescale/fsl-ls1043a-rdb-sdk
@ -119,7 +119,7 @@ define Device/ls1043ardb-sdboot
DEVICE_MODEL := LS1043A-RDB
DEVICE_VARIANT := SD Card Boot
DEVICE_PACKAGES += \
layerscape-fman-ls1043ardb \
layerscape-fman \
tfa-ls1043ardb-sdboot \
fmc fmc-eth-config
DEVICE_DTS := freescale/fsl-ls1043a-rdb-sdk
@ -143,7 +143,7 @@ define Device/ls1046ardb
DEVICE_MODEL := LS1046A-RDB
DEVICE_VARIANT := Default
DEVICE_PACKAGES += \
layerscape-fman-ls1046ardb \
layerscape-fman \
tfa-ls1046ardb \
fmc fmc-eth-config
DEVICE_DTS := freescale/fsl-ls1046a-rdb-sdk
@ -167,7 +167,7 @@ define Device/ls1046ardb-sdboot
DEVICE_MODEL := LS1046A-RDB
DEVICE_VARIANT := SD Card Boot
DEVICE_PACKAGES += \
layerscape-fman-ls1046ardb \
layerscape-fman \
tfa-ls1046ardb-sdboot \
fmc fmc-eth-config
DEVICE_DTS := freescale/fsl-ls1046a-rdb-sdk
@ -273,7 +273,7 @@ define Device/traverse-ls1043
FDT_LOADADDR = 0x90000000
FILESYSTEMS := ubifs
DEVICE_PACKAGES += \
layerscape-fman-ls1043ardb \
layerscape-fman \
uboot-envtools \
kmod-i2c-mux-pca954x \
kmod-hwmon-core \