7a6a9b0b84db5c0f81f165d40dc0345d9797ae99
[openwrt/openwrt.git] / package / firmware / layerscape / ls-ppa / 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:=ls-ppa
11 PKG_VERSION:=lsdk-1806
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/yangbolu1991/ppa-binary.git
16 PKG_SOURCE_VERSION:=73ce533bed868717b891e5dbf881428f56f11b4e
17 PKG_MIRROR_HASH:=d917a692197e8c3c3db6de1f8a4bc0e52dca5fc6fa84a02d68d79072cd6cbc3f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/layerscape-ppa/Config
22 define Package/layerscape-ppa-$(1)
23 SECTION:=firmware
24 CATEGORY:=Firmware
25 TITLE:=$(2)
26 DEPENDS:=@TARGET_layerscape
27 CONFIG:=$(3)
28 endef
29 endef
30
31 define Package/layerscape-ppa/ls1012ardb
32 TITLE:=NXP LS1012ARDB PPA binary
33 CONFIG:=ppa-ls1012a.itb
34 endef
35
36 define Package/layerscape-ppa/ls1012afrdm
37 TITLE:=NXP LS1012AFRDM PPA binary
38 CONFIG:=ppa-ls1012a.itb
39 endef
40
41 define Package/layerscape-ppa/ls1043ardb
42 TITLE:=NXP LS1043ARDB PPA binary
43 CONFIG:=ppa-ls1043a.itb
44 endef
45
46 define Package/layerscape-ppa/ls1046ardb
47 TITLE:=NXP LS1046ARDB PPA binary
48 CONFIG:=ppa-ls1046a.itb
49 endef
50
51 define Package/layerscape-ppa/ls1088ardb
52 TITLE:=NXP LS1088ARDB PPA binary
53 CONFIG:=ppa-ls1088a.itb
54 endef
55
56 define Package/layerscape-ppa/ls2088ardb
57 TITLE:=NXP LS2088ARDB PPA binary
58 CONFIG:=ppa-ls2088a.itb
59 endef
60
61 define Build/Compile
62 endef
63
64 define Package/layerscape-ppa/Install
65 define Package/layerscape-ppa-$(1)/install
66 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
67 $(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/$(1)-ppa.itb
68 endef
69 endef
70
71 PPAS := \
72 ls1012ardb \
73 ls1012afrdm \
74 ls1043ardb \
75 ls1046ardb \
76 ls1088ardb \
77 ls2088ardb
78
79 $(foreach ppa,$(PPAS), \
80 $(eval $(Package/layerscape-ppa/$(ppa))) \
81 $(eval $(call Package/layerscape-ppa/Config,$(ppa),$(TITLE),$(CONFIG))) \
82 $(eval $(call Package/layerscape-ppa/Install,$(ppa))) \
83 $(eval $(call BuildPackage,layerscape-ppa-$(ppa))) \
84 )