OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 4... | Line 4... | |||
4 | # This is free software, licensed under the GNU General Public License v2. |
4 | # This is free software, licensed under the GNU General Public License v2. |
|
5 | # See /LICENSE for more information. |
5 | # See /LICENSE for more information. |
|
6 | # |
6 | # |
|
Line 7... | Line 7... | |||
7 | |
7 | |
|
- | 8 | include $(TOPDIR)/rules.mk |
||
Line 8... | Line 9... | |||
8 | include $(TOPDIR)/rules.mk |
9 | include $(INCLUDE_DIR)/image.mk |
|
9 | |
10 | |
|
10 | PKG_NAME:=fman-ucode |
11 | PKG_NAME:=fman-ucode |
|
Line 11... | Line 12... | |||
11 | PKG_VERSION:=lsdk-1806 |
12 | PKG_SOURCE_DATE:=2017-02-13 |
|
12 | PKG_RELEASE:=1 |
13 | PKG_RELEASE:=1 |
|
13 | |
14 | |
|
14 | PKG_SOURCE_PROTO:=git |
15 | PKG_SOURCE_PROTO:=git |
|
- | 16 | PKG_SOURCE_URL:=https://github.com/NXP/qoriq-fm-ucode.git |
||
- | 17 | PKG_SOURCE_VERSION:=c275e91392e2adab1ed22f3867b8269ca3c54014 |
||
- | 18 | PKG_MIRROR_HASH:=1a4611d528f67f3acfa88aefdec9a9a67d96a3139ac5fe1089f599272e6c4a52 |
||
- | 19 | |
||
Line 15... | Line 20... | |||
15 | PKG_SOURCE_URL:=https://github.com/NXP/qoriq-fm-ucode.git |
20 | PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) |
|
Line 16... | Line 21... | |||
16 | PKG_SOURCE_VERSION:=c275e91392e2adab1ed22f3867b8269ca3c54014 |
21 | |
|
- | 22 | PKG_FLAGS:=nonshared |
||
17 | PKG_MIRROR_HASH:=4e8914340c4a08941898900500f3239762af933ff359bebcf988a10ac30b2bec |
23 | |
|
- | 24 | include $(INCLUDE_DIR)/package.mk |
||
- | 25 | |
||
18 | |
26 | define fman/Default |
|
- | 27 | TITLE:= |
||
19 | include $(INCLUDE_DIR)/package.mk |
28 | CONFIG:= |
|
- | 29 | endef |
||
- | 30 | |
||
20 | |
31 | define fman/ls1043ardb |
|
- | 32 | TITLE=FMAN UCODE $(PKG_NAME)-$(PKG_VERSION) for NXP ls1043ardb 64b/32b Dev Board |
||
21 | define Package/layerscape-fman-ls1043ardb |
33 | CONFIG=fsl_fman_ucode_ls1043_r1.1_106_4_18.bin |
|
22 | SECTION:=firmware |
34 | endef |
|
Line -... | Line 35... | |||
- | 35 | |
||
- | 36 | define fman/ls1046ardb |
||
- | 37 | TITLE=FMAN UCODE $(PKG_NAME)-$(PKG_VERSION) for NXP ls1046ardb 64b/32b Dev Board |
||
- | 38 | CONFIG=fsl_fman_ucode_ls1046_r1.0_106_4_18.bin |
||
- | 39 | endef |
||
23 | CATEGORY:=Firmware |
40 | |
|
24 | TITLE:=NXP LS1043ARDB FMan ucode |
41 | FMANS := \ |
|
25 | DEPENDS:=@TARGET_layerscape |
42 | ls1043ardb \ |
|
26 | CONFIG:=fsl_fman_ucode_ls1043_r1.1_106_4_18.bin |
- | ||
27 | endef |
43 | ls1046ardb |
|
- | 44 | |
||
- | 45 | define Package/fman/template |
||
- | 46 | define Package/fman-layerscape-$(1) |
||
28 | |
47 | SECTION:=firmware |
|
- | 48 | CATEGORY:=Firmware |
||
- | 49 | DEPENDS:=@TARGET_layerscape |
||
- | 50 | TITLE:=$(2) |
||
- | 51 | URL:=https://github.com/qoriq-open-source/fm-ucode.git |
||
- | 52 | VARIANT:=$(1) |
||
- | 53 | MAINTAINER:=Jiang Yutang <jiangyutang1978@gmail.com> |
||
- | 54 | endef |
||
29 | define Package/layerscape-fman-ls1046ardb |
55 | endef |
|
Line -... | Line 56... | |||
- | 56 | |
||
- | 57 | define BuildFMANPackage |
||
- | 58 | $(eval $(fman/Default)) |
||
- | 59 | $(eval $(fman/$(1))) |
||
- | 60 | $(call Package/fman/template,$(1),$(TITLE)) |
||
30 | SECTION:=firmware |
61 | endef |
|
31 | CATEGORY:=Firmware |
62 | |
|
Line 32... | Line 63... | |||
32 | TITLE:=NXP LS1046ARDB FMan ucode |
63 | ifdef BUILD_VARIANT |
|
33 | DEPENDS:=@TARGET_layerscape |
64 | $(eval $(call fman/$(BUILD_VARIANT))) |
|
34 | CONFIG:=fsl_fman_ucode_ls1046_r1.0_106_4_18.bin |
65 | FMAN_CONFIG:=$(if $(CONFIG),$(CONFIG),$(BUILD_VARIANT)) |
|
35 | endef |
66 | endif |
|
Line 36... | Line 67... | |||
36 | |
67 | |
|
37 | define Build/Compile |
68 | define Build/Compile |
|
38 | endef |
69 | endef |
|
- | 70 | |
||
39 | |
71 | define Package/fman/install/default |
|
Line -... | Line 72... | |||
- | 72 | $(INSTALL_DIR) $(STAGING_DIR_IMAGE) |
||
40 | define Package/layerscape-fman-ls1043ardb/install |
73 | $(CP) $(PKG_BUILD_DIR)/$(FMAN_CONFIG) $(STAGING_DIR_IMAGE)/$(1)-fman.bin |
|
- | 74 | endef |
||
- | 75 | |
||
- | 76 | define Package/fman/install/template |
||
- | 77 | define Package/fman-layerscape-$(1)/install |
||
41 | $(INSTALL_DIR) $(STAGING_DIR_IMAGE) |
78 | $(call Package/fman/install/default,$(2)) |
|
- | 79 | endef |