openwrtv3/package/firmware/layerscape/ppfe-firmware/Makefile
Hauke Mehrtens dda2229c52 layerscape: fix package download
The git hash was changed for multiple layerscape packages without
changing the version number. The LEDE build system will not download the
packages again if the old version is already there and so some people
and the build bots are using wrong version of some packages. Use
PKG_SOURCE_DATE instead of PKG_VERSION to generate packages with the
date and the first charterers of the git hash. This will change the file
name and make the build system download them again, also if in future
the git hash is changed the file name will change and trigger a new
download.

This should fix a problem spotted by build bot.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-12-21 10:02:16 +01:00

52 lines
1.3 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:=ppfe
PKG_SOURCE_DATE:=2017-10-13
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/qoriq-open-source/engine-pfe-bin.git
PKG_SOURCE_VERSION:=97cd13d3070d7199e62881bc495b332194b67edd
PKG_MIRROR_HASH:=3457bfe7201a8410443f34d4bb5fa67d4ff19e2d0f3957e84e3f20e2ae3fa34a
PKG_FLAGS:=nonshared
include $(INCLUDE_DIR)/package.mk
RSTRIP:=:
STRIP:=:
define Package/layerscape-ppfe
SECTION:=firmware
CATEGORY:=Firmware
DEPENDS:=@TARGET_layerscape
TITLE:=NXP Layerscape PPFE firmware
CONFIG_FW:=ls1012a/u-boot/pfe_fw_sbl.itb
CONFIG_BIN1:=ls1012a/slow_path/ppfe_class_ls1012a.elf
CONFIG_BIN2:=ls1012a/slow_path/ppfe_tmu_ls1012a.elf
CONFIG_LIC:=Freescale-Binary-EULA
endef
define Build/Compile
endef
define Package/layerscape-ppfe/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(CONFIG_FW) \
$(STAGING_DIR_IMAGE)/pfe.itb
$(INSTALL_DIR) $(1)/lib/firmware/
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/$(CONFIG_BIN1) \
$(PKG_BUILD_DIR)/$(CONFIG_BIN2) \
$(PKG_BUILD_DIR)/$(CONFIG_LIC) \
$(1)/lib/firmware/
endef
$(eval $(call BuildPackage,layerscape-ppfe))