OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2010-2014 OpenWrt.org |
||
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 | |||
3 | office | 10 | PKG_VERSION:=2018.03 |
1 | office | 11 | PKG_RELEASE:=1 |
12 | |||
3 | office | 13 | PKG_HASH:=7e7477534409d5368eb1371ffde6820f0f79780a1a1f676161c48442cb303dfd |
1 | office | 14 | |
15 | include $(INCLUDE_DIR)/u-boot.mk |
||
16 | include $(INCLUDE_DIR)/package.mk |
||
17 | |||
18 | define U-Boot/Default |
||
19 | BUILD_TARGET:=kirkwood |
||
20 | endef |
||
21 | |||
22 | define U-Boot/dockstar |
||
23 | NAME:=Seagate DockStar |
||
24 | BUILD_DEVICES:=seagate_dockstar |
||
25 | endef |
||
26 | |||
27 | define U-Boot/dockstar_second_stage |
||
28 | NAME:=Seagate DockStar (second stage) |
||
29 | BUILD_DEVICES:=seagate_dockstar |
||
30 | endef |
||
31 | |||
32 | define U-Boot/goflexhome |
||
33 | NAME:=the Seagate GoFlexHome/GoFlexNet |
||
34 | BUILD_DEVICES:=seagate_goflexhome seagate_goflexnet |
||
35 | endef |
||
36 | |||
37 | define U-Boot/ib62x0 |
||
38 | NAME:=RaidSonic ICY BOX NAS6210 and NAS6220 |
||
39 | BUILD_DEVICES:=raidsonic_ib-nas62x0 |
||
40 | endef |
||
41 | |||
42 | define U-Boot/ib62x0_second_stage |
||
43 | NAME:=RaidSonic ICY BOX NAS6210 and NAS6220 (second stage) |
||
44 | BUILD_DEVICES:=raidsonic_ib-nas62x0 |
||
45 | endef |
||
46 | |||
47 | define U-Boot/iconnect |
||
48 | NAME:=Iomega iConnect Wireless |
||
49 | BUILD_DEVICES:=iom_iconnect-1.1 |
||
50 | endef |
||
51 | |||
52 | define U-Boot/iconnect_second_stage |
||
53 | NAME:=Iomega iConnect Wireless (second stage) |
||
54 | BUILD_DEVICES:=iom_iconnect-1.1 |
||
55 | endef |
||
56 | |||
57 | define U-Boot/nsa310 |
||
58 | NAME:=Zyxel NSA310 |
||
59 | BUILD_DEVICES:=zyxel_nsa310b |
||
60 | endef |
||
61 | |||
62 | define U-Boot/nsa325 |
||
63 | NAME:=Zyxel NSA325v1 and v2 |
||
64 | BUILD_DEVICES:=zyxel_nsa325 |
||
65 | endef |
||
66 | |||
67 | define U-Boot/pogo_e02 |
||
68 | NAME:=Cloud Engines Pogoplug E02 |
||
69 | BUILD_DEVICES:=cloudengines_pogoe02 |
||
70 | endef |
||
71 | |||
72 | define U-Boot/pogo_e02_second_stage |
||
73 | NAME:=Cloud Engines Pogoplug E02 (second stage) |
||
74 | BUILD_DEVICES:=cloudengines_pogoe02 |
||
75 | endef |
||
76 | |||
77 | define U-Boot/pogoplugv4 |
||
78 | NAME:=Cloud Engines Pogoplug V4 |
||
79 | BUILD_DEVICES:=cloudengines_pogoplugv4 |
||
80 | endef |
||
81 | |||
82 | UBOOT_TARGETS := \ |
||
83 | dockstar dockstar_second_stage \ |
||
84 | goflexhome \ |
||
85 | ib62x0 ib62x0_second_stage \ |
||
86 | iconnect iconnect_second_stage \ |
||
87 | nsa310 \ |
||
88 | nsa325 \ |
||
89 | pogo_e02 pogo_e02_second_stage \ |
||
90 | pogoplugv4 |
||
91 | |||
92 | define Build/Configure |
||
93 | $(if $(findstring _second_stage,$(BUILD_VARIANT)), |
||
94 | $(CP) \ |
||
95 | $(PKG_BUILD_DIR)/configs/$(subst _second_stage,,$(BUILD_VARIANT))_defconfig \ |
||
96 | $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig |
||
97 | echo CONFIG_SECOND_STAGE=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig |
||
98 | ) |
||
99 | +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ |
||
100 | $(BUILD_VARIANT)_config V=1 |
||
101 | endef |
||
102 | |||
103 | define Build/Compile |
||
104 | +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ |
||
105 | u-boot.kwb \ |
||
106 | CROSS_COMPILE=$(TARGET_CROSS) |
||
107 | mkimage -A $(ARCH) -O linux -T kernel -C none \ |
||
108 | -a 0x600000 -e 0x600000 \ |
||
109 | -n 'U-Boot uImage' \ |
||
110 | -d $(PKG_BUILD_DIR)/u-boot.bin $(PKG_BUILD_DIR)/u-boot.img |
||
111 | endef |
||
112 | |||
113 | define Package/u-boot/install |
||
114 | $(CP) \ |
||
115 | $(PKG_BUILD_DIR)/u-boot.bin \ |
||
116 | $(PKG_BUILD_DIR)/u-boot.kwb \ |
||
117 | $(PKG_BUILD_DIR)/u-boot.img \ |
||
118 | $(1)/ |
||
119 | endef |
||
120 | |||
121 | define Build/InstallDev |
||
122 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin |
||
123 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/kwboot $(STAGING_DIR_HOST)/bin/ |
||
124 | endef |
||
125 | |||
126 | $(eval $(call BuildPackage/U-Boot)) |