dir-825-b1: Fix wholeflash images: Attempting to flash a wholeflash (-openwrt) image...
[openwrt/staging/yousong.git] / target / linux / ar71xx / generic / profiles / d-link.mk
1 #
2 # Copyright (C) 2009 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 define Profile/DIR600A1
9 NAME:=D-Link DIR-600 rev. A1
10 PACKAGES:=
11 endef
12
13 define Profile/DIR600A1/Description
14 Package set optimized for the D-Link DIR-600 rev. A1.
15 endef
16
17 $(eval $(call Profile,DIR600A1))
18
19 define Profile/DIR601A1
20 NAME:=D-Link DIR-601 rev. A1
21 PACKAGES:=
22 endef
23
24 define Profile/DIR601A1/Description
25 Package set optimized for the D-Link DIR-601 rev. A1.
26 endef
27
28 $(eval $(call Profile,DIR601A1))
29
30 define Profile/DIR615C1
31 NAME:=D-Link DIR-615 rev. C1
32 PACKAGES:=
33 endef
34
35 define Profile/DIR615C1/Description
36 Package set optimized for the D-Link DIR-615 rev. C1.
37 endef
38
39 $(eval $(call Profile,DIR615C1))
40
41
42 define Profile/DIR615E4
43 NAME:=D-Link DIR-615 rev. E4
44 PACKAGES:=
45 endef
46
47 define Profile/DIR615E4/Description
48 Package set optimized for the D-Link DIR-615 rev. E4.
49 endef
50
51 $(eval $(call Profile,DIR615E4))
52
53 define Profile/DIR825B1_ALL
54 NAME:=D-Link DIR-825 rev. B1 - all flavours
55 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
56 endef
57
58 define Profile/DIR825B1_ALL/Description
59 Build all D-Link DIR-825 rev. B1 images
60 endef
61
62 $(eval $(call Profile,DIR825B1_ALL))
63
64 define Profile/DIR825B1
65 NAME:=D-Link DIR-825 rev. B1
66 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
67 endef
68
69 define Profile/DIR825B1/Description
70 Package set optimized for the D-Link DIR-825 rev. B1.
71 WARNING: Flashing wholeflash (openwrt optimized) image may brick your router
72 . This will occur if your openwrt optimized image is larger than the
73 maximum size for a regular dir-825 b1 image (a little more than 6MB).
74 Please flash a TOWHOLEFLASH image instead of this image before flashing
75 a
76 WHOLEFLASH image.
77 endef
78
79 $(eval $(call Profile,DIR825B1))
80
81 define Profile/DIR825B1_TOWHOLEFLASH
82 NAME:=D-Link DIR-825 rev. B1 designed for transition to image using whole flash
83 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
84 endef
85
86 define Profile/DIR825B1_TOWHOLEFLASH/Description
87 Package set optimized for the D-Link DIR-825 rev. B1. design for transtion to
88 image using whole flash.
89 Copies the calibration data to the last erase block so that, if desired,
90 an image optimized for use with OpenWrt (access to full flash) can be flashed.
91 endef
92
93 $(eval $(call Profile,DIR825B1_TOWHOLEFLASH))
94
95 define Profile/DIR825B1_WHOLEFLASH
96 NAME:=D-Link DIR-825 rev. B1 optimized for OpenWrt which uses full 8M flash
97 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
98 endef
99
100 define Profile/DIR825B1_WHOLEFLASH/Description
101 Package set optimized for the D-Link DIR-825 rev. B1. using wholeflash
102 Can only be flashed from OpenWrt because it requires that the calibration data
103 be on the last sector of the flash (which the 'standard' version that can be flashed from
104 stock will ensure).
105 endef
106
107 $(eval $(call Profile,DIR825B1_WHOLEFLASH))
108
109 define Profile/DIR825B1_TOSTOCK
110 NAME:=D-Link DIR-825 rev. B1 that undoes OpenWrt optimization (i.e. wholeflash)
111 PACKAGES:=kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-ledtrig-usbdev
112 endef
113
114 define Profile/DIR825B1_TOSTOCK/Description
115 Package set optimized for the D-Link DIR-825 rev. B1. that undoes OpenWrt optimization
116 Copies the calibration data from the last erase block to the erase block normally used
117 by the stock firmware for said data.
118 endef
119
120 $(eval $(call Profile,DIR825B1_TOSTOCK))
121