5d6cb603d8b24102d09390ca91a1b54e1c5554f8
[openwrt/openwrt.git] / package / firmware / layerscape / dpl / Makefile
1 #
2 # Copyright 2017 NXP
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dpl
11 PKG_VERSION:=2017.09
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/qoriq-open-source/dpl-examples.git
16 PKG_SOURCE_VERSION:=a6c83759c0d9c02822eec89e86357a0998ef51d4
17 PKG_MIRROR_HASH:=3c5fdaa18e24ce8d6d5569eefd110c4b9a7b504a676341e7225a361a17e4e447
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
20
21 PKG_FLAGS:=nonshared
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/layerscape-dpl-ls1088ardb
26 SECTION:=firmware
27 CATEGORY:=Firmware
28 DEPENDS:=@TARGET_layerscape
29 TITLE:=NXP LS1088ARDB DPL firmware
30 VARIANT:=ls1088ardb
31 DPC_CONFIG:=ls1088a/RDB/dpc.0x1D-0x0D.dtb
32 DPL_CONFIG:=ls1088a/RDB/dpl-eth.0x1D_0x0D.dtb
33 endef
34
35 define Package/layerscape-dpl-ls2088ardb
36 SECTION:=firmware
37 CATEGORY:=Firmware
38 DEPENDS:=@TARGET_layerscape
39 TITLE:=NXP LS2088ARDB DPL firmware
40 VARIANT:=ls2088ardb
41 DPC_CONFIG:=ls2088a/RDB/dpc.0x2A_0x41.dtb
42 DPL_CONFIG:=ls2088a/RDB/dpl-eth.0x2A_0x41.dtb
43 endef
44
45 define Package/layerscape-dpl-ls1088ardb/install
46 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
47 $(CP) $(PKG_BUILD_DIR)/$(DPL_CONFIG) $(STAGING_DIR_IMAGE)/ls1088ardb-dpl.dtb
48 $(CP) $(PKG_BUILD_DIR)/$(DPC_CONFIG) $(STAGING_DIR_IMAGE)/ls1088ardb-dpc.dtb
49 endef
50
51 define Package/layerscape-dpl-ls2088ardb/install
52 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
53 $(CP) $(PKG_BUILD_DIR)/$(DPL_CONFIG) $(STAGING_DIR_IMAGE)/ls2088ardb-dpl.dtb
54 $(CP) $(PKG_BUILD_DIR)/$(DPC_CONFIG) $(STAGING_DIR_IMAGE)/ls2088ardb-dpc.dtb
55 endef
56
57 $(eval $(call BuildPackage,layerscape-dpl-ls1088ardb))
58 $(eval $(call BuildPackage,layerscape-dpl-ls2088ardb))