OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #
2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
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
3 office 9 include $(INCLUDE_DIR)/image.mk
1 office 10  
11 PKG_NAME:=ls-rcw
3 office 12 PKG_SOURCE_DATE:=2017-12-01
1 office 13 PKG_RELEASE:=1
14  
15 PKG_SOURCE_PROTO:=git
3 office 16 PKG_SOURCE_URL:=https://github.com/qoriq-open-source/rcw.git
17 PKG_SOURCE_VERSION:=cbd5e66fcb850e821c8632578410ceba5733a49e
18 PKG_MIRROR_HASH:=4caad5e0ae2018a0a594f36e46e4a96698420956c64bb73656f380fd46733c3d
1 office 19  
3 office 20 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
21  
22 PKG_LICENSE:=BSD-3-Clause
23 PKG_LICENSE_FILES:=LICENSE
24  
25 PKG_FLAGS:=nonshared
26  
1 office 27 include $(INCLUDE_DIR)/package.mk
28  
3 office 29 define rcw/Default
30 TITLE:=
31 CONFIG:=
1 office 32 endef
33  
3 office 34 define rcw/ls1043ardb
35 TITLE=RCW binary $(PKG_VERSION) for NXP ls1043ardb 64b/32b Dev Board
36 CONFIG=ls1043ardb/RR_FQPP_1455/rcw_1600.bin
1 office 37 endef
38  
3 office 39 define rcw/ls1046ardb
40 TITLE=RCW binary $(PKG_VERSION) for NXP ls1046ardb 64b/32b Dev Board
41 CONFIG=ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin.swap
1 office 42 endef
43  
3 office 44 RCWS := \
45 ls1043ardb \
46 ls1046ardb
1 office 47  
3 office 48 define Package/rcw/template
49 define Package/rcw-layerscape-$(1)
50 SECTION:=firmware
51 CATEGORY:=Firmware
52 DEPENDS:= @TARGET_layerscape
53 TITLE:=$(2)
54 URL:=http://git.freescale.com/git/cgit.cgi/ppc/sdk/rcw.git
55 VARIANT:=$(1)
56 MAINTAINER:=Jiang Yutang <jiangyutang1978@gmail.com>
1 office 57 endef
58 endef
59  
3 office 60 define BuildRCWPackage
61 $(eval $(rcw/Default))
62 $(eval $(rcw/$(1)))
63 $(call Package/rcw/template,$(1),$(TITLE))
1 office 64 endef
65  
3 office 66 ifdef BUILD_VARIANT
67 $(eval $(call rcw/$(BUILD_VARIANT)))
68 RCW_CONFIG:=$(if $(CONFIG),$(CONFIG),$(BUILD_VARIANT))
69 endif
1 office 70  
3 office 71 define Build/Configure
1 office 72 endef
73  
3 office 74 define Package/rcw/install/default
1 office 75 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
3 office 76 $(CP) $(PKG_BUILD_DIR)/$(RCW_CONFIG) $(STAGING_DIR_IMAGE)/$(1)-rcw.bin
1 office 77 endef
78  
3 office 79 define Package/rcw/install/template
80 define Package/rcw-layerscape-$(1)/install
81 $(call Package/rcw/install/default,$(2))
82 endef
83 endef
1 office 84  
3 office 85 $(foreach r,$(RCWS), \
86 $(eval $(call Package/rcw/install/template,$(r),$(r))) \
1 office 87 )
3 office 88  
89 $(foreach r,$(RCWS), \
90 $(eval $(call BuildRCWPackage,$(r))) \
91 $(eval $(call BuildPackage,rcw-layerscape-$(r))) \
92 )