source: src/router/rules/busybox.mk @ 31531

Last change on this file since 31531 was 31531, checked in by brainslayer, 5 months ago

use internal glob

File size: 18.5 KB
Line 
1busybox-config: -
2        cd busybox && rm -f Config.h && ln -sf configs/$(CONFIG_BUSYBOX_CONFIG).h Config.h
3
4busybox: busybox-config net-tools bird dhcpforwarder
5ifeq ($(ARCH),mipsel)
6        cp busybox/.config_std busybox/.config
7ifeq ($(CONFIG_MMC),y)
8        echo CONFIG_MKFS_EXT2=y >> busybox/.config
9else
10        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
11endif
12
13ifeq ($(CONFIG_DIST),"micro")
14        cp busybox/.config_micro busybox/.config
15endif
16
17ifeq ($(CONFIG_DIST),"micro-special")
18        cp busybox/.config_micro busybox/.config
19endif
20
21ifeq ($(CONFIG_DIST),"mini")
22        cp busybox/.config_mini busybox/.config
23ifeq ($(CONFIG_MMC),y)
24        echo CONFIG_MKFS_EXT2=y >> busybox/.config
25else
26        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
27endif
28else
29ifeq ($(CONFIG_BBOX),"mini")
30        cp busybox/.config_mini busybox/.config
31endif
32endif
33
34ifeq ($(CONFIG_BCMMODERN),y)
35ifeq ($(CONFIG_DIST),"mini")
36        cp busybox/.config_bcmmodern_mini busybox/.config
37else
38        cp busybox/.config_bcmmodern_std busybox/.config
39ifeq ($(CONFIG_BBOX),"mini")
40        cp busybox/.config_bcmmodern_mini busybox/.config
41endif
42endif
43endif
44       
45ifeq ($(ARCHITECTURE),adm5120)
46ifeq ($(CONFIG_DIST),"micro")
47        cp busybox/.config_micro_atheros busybox/.config
48else
49        cp busybox/.config_fonera busybox/.config
50endif
51ifeq ($(CONFIG_MMC),y)
52        echo CONFIG_MKFS_EXT2=y >> busybox/.config
53else
54        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
55endif
56endif
57ifeq ($(ARCHITECTURE),rt2880)
58        cp busybox/.config_fonera busybox/.config
59ifeq ($(CONFIG_USB),y)
60        echo CONFIG_MKFS_EXT2=y >> busybox/.config
61else
62        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
63endif
64endif
65endif
66
67
68ifeq ($(ARCH),i386)
69        cp busybox/.config_wrap busybox/.config
70endif
71ifeq ($(ARCH),mips64)
72        cp busybox/.config_fonera busybox/.config
73endif
74ifeq ($(ARCH),x86_64)
75        cp busybox/.config_wrap busybox/.config
76endif
77ifeq ($(ARCHITECURE),rb532)
78        cp busybox/.config_rb532 busybox/.config
79endif
80ifeq ($(ARCH),mips)
81ifeq ($(ARCHITECTURE),fonera)
82        cp busybox/.config_fonera busybox/.config
83ifeq ($(CONFIG_MMC),y)
84        echo CONFIG_MKFS_EXT2=y >> busybox/.config
85else
86        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
87endif
88else
89ifeq ($(ARCHITECTURE),mr3202a)
90ifeq ($(CONFIG_DIST),"micro")
91        cp busybox/.config_micro_atheros busybox/.config
92else
93        cp busybox/.config_fonera busybox/.config
94endif
95        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
96else
97ifeq ($(ARCHITECTURE),dir300)
98        cp busybox/.config_fonera busybox/.config
99        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
100else
101ifeq ($(ARCHITECTURE),whrag108)
102ifeq ($(CONFIG_DIST),"micro")
103        cp busybox/.config_micro_atheros busybox/.config
104else
105        cp busybox/.config_fonera busybox/.config
106        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
107endif
108else
109ifeq ($(ARCHITECTURE),ca8)
110        cp busybox/.config_fonera busybox/.config
111        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
112else
113ifeq ($(ARCHITECTURE),rcaa01)
114        cp busybox/.config_fonera busybox/.config
115        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
116else
117ifeq ($(ARCHITECTURE),ls5)
118        cp busybox/.config_fonera busybox/.config
119        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
120else
121ifeq ($(ARCHITECTURE),eoc5610)
122        cp busybox/.config_fonera busybox/.config
123        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
124else
125ifeq ($(ARCHITECTURE),eoc2610)
126        cp busybox/.config_fonera busybox/.config
127        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
128else
129ifeq ($(ARCHITECTURE),ls2)
130        cp busybox/.config_fonera busybox/.config
131        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
132else
133ifeq ($(ARCHITECTURE),wrt54g2v11)
134        cp busybox/.config_fonera busybox/.config
135        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
136else
137ifeq ($(ARCHITECTURE),bs2)
138        cp busybox/.config_fonera busybox/.config
139        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
140else
141ifeq ($(ARCHITECTURE),bwrg1000)
142        cp busybox/.config_fonera busybox/.config
143        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
144else
145ifeq ($(ARCHITECTURE),eoc2610)
146        cp busybox/.config_fonera busybox/.config
147        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
148else
149ifeq ($(ARCHITECTURE),lsx)
150        cp busybox/.config_fonera busybox/.config
151        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
152else
153ifeq ($(ARCHITECTURE),ja76pf)
154        cp busybox/.config_fonera busybox/.config
155        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
156else
157ifeq ($(ARCHITECTURE),ap83)
158        cp busybox/.config_ap83 busybox/.config
159        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
160else
161ifeq ($(ARCHITECTURE),dir825)
162        cp busybox/.config_fonera busybox/.config
163        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
164else
165ifeq ($(ARCHITECTURE),wrt400)
166        cp busybox/.config_fonera busybox/.config
167        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
168else
169ifeq ($(ARCHITECTURE),wndr3700)
170        cp busybox/.config_fonera busybox/.config
171        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
172else
173ifeq ($(ARCHITECTURE),wzrag300nh)
174        cp busybox/.config_fonera busybox/.config
175        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
176else
177ifeq ($(ARCHITECTURE),wzrg450)
178        cp busybox/.config_fonera busybox/.config
179        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
180else
181ifeq ($(ARCHITECTURE),hornet)
182        cp busybox/.config_fonera busybox/.config
183        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
184else
185ifeq ($(ARCHITECTURE),wasp)
186        cp busybox/.config_fonera busybox/.config
187        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
188else
189ifeq ($(ARCHITECTURE),ubntm)
190        cp busybox/.config_fonera busybox/.config
191        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
192else
193ifeq ($(ARCHITECTURE),unifi)
194        cp busybox/.config_fonera busybox/.config
195        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
196else
197ifeq ($(ARCHITECTURE),whrhpgn)
198        cp busybox/.config_fonera busybox/.config
199        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
200else
201ifeq ($(ARCHITECTURE),jjap93)
202        cp busybox/.config_fonera busybox/.config
203        echo "# CONFIG_MKE2FS is not set" >> busybox/.config
204else
205ifeq ($(ARCHITECTURE),dir615e)
206        cp busybox/.config_fonera busybox/.config
207        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
208else
209ifeq ($(ARCHITECTURE),wr741)
210        cp busybox/.config_fonera busybox/.config
211        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
212else
213ifeq ($(ARCHITECTURE),danube)
214        cp busybox/.config_fonera busybox/.config
215        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
216else
217        cp busybox/.config_3com busybox/.config
218endif
219endif
220endif
221endif
222endif
223endif
224endif
225endif
226endif
227endif
228endif
229endif
230endif
231endif
232endif
233endif
234endif
235endif
236endif
237endif
238endif
239endif
240endif
241endif
242endif
243endif
244endif
245endif
246endif
247endif
248endif
249endif
250ifeq ($(ARCH),arm)
251        cp busybox/.config_xscale busybox/.config
252ifeq ($(ARCHITECTURE),storm)
253        cp busybox/.config_storm busybox/.config
254ifeq ($(CONFIG_WBD222),y)
255        echo "CONFIG_MKFS_EXT2=y" >> busybox/.config
256else
257        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
258endif
259endif
260ifeq ($(ARCHITECTURE),mvebu)   
261        cp busybox/.config_bcmmodern_std busybox/.config
262        sed -i 's/\# CONFIG_FEATURE_TOP_SMP_CPU is not set/CONFIG_FEATURE_TOP_SMP_CPU=y/g' busybox/.config
263        sed -i 's/\# CONFIG_FEATURE_TOP_SMP_PROCESS is not set/CONFIG_FEATURE_TOP_SMP_PROCESS=y/g' busybox/.config
264endif
265ifeq ($(ARCHITECTURE),laguna)
266        cp busybox/.config_laguna busybox/.config
267        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
268endif
269ifeq ($(ARCHITECTURE),ventana)
270        cp busybox/.config_laguna busybox/.config
271        sed -i 's/\# CONFIG_UBIUPDATEVOL is not set/CONFIG_UBIUPDATEVOL=y/g' busybox/.config
272        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
273endif
274ifeq ($(ARCHITECTURE),northstar)
275        cp busybox/.config_laguna busybox/.config
276        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
277endif
278ifeq ($(ARCHITECTURE),openrisc)
279        cp busybox/.config_storm busybox/.config
280        echo "CONFIG_MKFS_EXT2=y" >> busybox/.config
281endif
282endif
283ifeq ($(ARCH),armeb)
284ifeq ($(ARCHITECTURE),wrt300nv2)
285        cp busybox/.config_fonera busybox/.config
286        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
287else
288ifneq ($(CONFIG_WP18),y)
289        cp busybox/.config_xscale busybox/.config
290else
291        cp busybox/.config_xscale_wp18 busybox/.config
292endif
293endif
294endif
295ifeq ($(ARCH),powerpc)
296        cp busybox/.config_powerpc busybox/.config
297endif
298ifneq ($(CONFIG_DIST),"micro")
299        sed -i 's/\# CONFIG_FEATURE_WGET_TIMEOUT is not set/CONFIG_FEATURE_WGET_TIMEOUT=y/g' busybox/.config
300endif
301
302#ifeq ($(CONFIG_BUSYBOX_UDHCPC),y)
303        sed -i 's/\# CONFIG_UDHCPC is not set/CONFIG_UDHCPC=y/g' busybox/.config
304        sed -i 's/\# CONFIG_UDHCP_DEBUG is not set/CONFIG_UDHCP_DEBUG=0/g' busybox/.config
305        sed -i 's/\# CONFIG_FEATURE_UDHCP_RFC3397 is not set/CONFIG_FEATURE_UDHCP_RFC3397=y/g' busybox/.config
306        sed -i 's/CONFIG_UDHCPC_DEFAULT_SCRIPT=""/CONFIG_UDHCPC_DEFAULT_SCRIPT=\"\/tmp\/udhcpc\"/g' busybox/.config
307        sed -i 's/CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=0/CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80/g' busybox/.config
308        sed -i 's/\# CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS is not set/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""/g' busybox/.config
309#endif
310
311ifeq ($(CONFIG_IPV6),y)
312        echo "CONFIG_TRACEROUTE6=y" >> busybox/.config
313        echo "CONFIG_PING6=y" >> busybox/.config
314        echo "CONFIG_FEATURE_IPV6=y" >> busybox/.config
315        echo "CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y" >> busybox/.config
316else
317        echo "# CONFIG_TRACEROUTE6 is not set" >> busybox/.config
318        echo "# CONFIG_PING6 is not set" >> busybox/.config
319        echo "# CONFIG_FEATURE_IPV6 is not set" >> busybox/.config
320        echo "# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set" >> busybox/.config
321endif
322ifeq ($(CONFIG_USB_ADVANCED),y)
323        echo "CONFIG_HDPARM=y" >> busybox/.config
324        echo "CONFIG_FEATURE_HDPARM_GET_IDENTITY=y" >> busybox/.config
325        echo "CONFIG_BLKID=y" >> busybox/.config
326        echo "CONFIG_FEATURE_BLKID_TYPE=n" >> busybox/.config
327        echo "CONFIG_VOLUMEID=y" >> busybox/.config
328        echo "CONFIG_FEATURE_VOLUMEID_EXT=y" >> busybox/.config
329        echo "CONFIG_FEATURE_VOLUMEID_BTRFS=y" >> busybox/.config
330        echo "CONFIG_FEATURE_VOLUMEID_REISERFS=y" >> busybox/.config
331        echo "CONFIG_FEATURE_VOLUMEID_FAT=y" >> busybox/.config
332        echo "CONFIG_FEATURE_VOLUMEID_EXFAT=y" >> busybox/.config
333        echo "CONFIG_FEATURE_VOLUMEID_HFS=y" >> busybox/.config
334        echo "CONFIG_FEATURE_VOLUMEID_JFS=y" >> busybox/.config
335        echo "CONFIG_FEATURE_VOLUMEID_XFS=y" >> busybox/.config
336        echo "CONFIG_FEATURE_VOLUMEID_NILFS=y" >> busybox/.config
337        echo "CONFIG_FEATURE_VOLUMEID_NTFS=y" >> busybox/.config
338        echo "CONFIG_FEATURE_VOLUMEID_ISO9660=y" >> busybox/.config
339        echo "CONFIG_FEATURE_VOLUMEID_UDF=y" >> busybox/.config
340        echo "CONFIG_FEATURE_VOLUMEID_LUKS=y" >> busybox/.config
341        echo "CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y" >> busybox/.config
342        echo "CONFIG_FEATURE_VOLUMEID_CRAMFS=y" >> busybox/.config
343        echo "CONFIG_FEATURE_VOLUMEID_ROMFS=y" >> busybox/.config
344        echo "CONFIG_FEATURE_VOLUMEID_SQUASHFS=y" >> busybox/.config
345        echo "CONFIG_FEATURE_VOLUMEID_SYSV=y" >> busybox/.config
346        echo "CONFIG_FEATURE_VOLUMEID_OCFS2=y" >> busybox/.config
347        echo "CONFIG_FEATURE_VOLUMEID_LINUXRAID=y" >> busybox/.config
348        echo "CONFIG_FEATURE_MOUNT_LABEL=y" >> busybox/.config 
349        echo "CONFIG_FEATURE_MKSWAP_UUID=y" >> busybox/.config
350else
351        echo "# CONFIG_HDPARM is not set" >> busybox/.config
352        echo "# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set" >> busybox/.config
353        echo "# CONFIG_BLKID is not set" >> busybox/.config
354        echo "# CONFIG_FEATURE_BLKID_TYPE is not set" >> busybox/.config
355        echo "# CONFIG_VOLUMEID is not set" >> busybox/.config
356        echo "# CONFIG_FEATURE_VOLUMEID_EXT is not set" >> busybox/.config
357        echo "# CONFIG_FEATURE_VOLUMEID_BTRFS is not set" >> busybox/.config
358        echo "# CONFIG_FEATURE_VOLUMEID_REISERFS is not set" >> busybox/.config
359        echo "# CONFIG_FEATURE_VOLUMEID_FAT is not set" >> busybox/.config
360        echo "# CONFIG_FEATURE_VOLUMEID_EXFAT is not set" >> busybox/.config
361        echo "# CONFIG_FEATURE_VOLUMEID_HFS is not set" >> busybox/.config
362        echo "# CONFIG_FEATURE_VOLUMEID_JFS is not set" >> busybox/.config
363        echo "# CONFIG_FEATURE_VOLUMEID_XFS is not set" >> busybox/.config
364        echo "# CONFIG_FEATURE_VOLUMEID_NILFS is not set" >> busybox/.config
365        echo "# CONFIG_FEATURE_VOLUMEID_NTFS is not set" >> busybox/.config
366        echo "# CONFIG_FEATURE_VOLUMEID_ISO9660 is not set" >> busybox/.config
367        echo "# CONFIG_FEATURE_VOLUMEID_UDF is not set" >> busybox/.config
368        echo "# CONFIG_FEATURE_VOLUMEID_LUKS is not set" >> busybox/.config
369        echo "# CONFIG_FEATURE_VOLUMEID_LINUXSWAP is not set" >> busybox/.config
370        echo "# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set" >> busybox/.config
371        echo "# CONFIG_FEATURE_VOLUMEID_ROMFS is not set" >> busybox/.config
372        echo "# CONFIG_FEATURE_VOLUMEID_SQUASHFS is not set" >> busybox/.config
373        echo "# CONFIG_FEATURE_VOLUMEID_SYSV is not set" >> busybox/.config
374        echo "# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set" >> busybox/.config
375        echo "# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set" >> busybox/.config
376        echo "# CONFIG_FEATURE_MKSWAP_UUID is not set" >> busybox/.config
377endif
378        echo "# CONFIG_FEATURE_VOLUMEID_UBIFS is not set" >> busybox/.config
379ifeq ($(CONFIG_SWAP),y)
380        echo "CONFIG_MKSWAP=y" >> busybox/.config
381        echo "CONFIG_SWAPONOFF=y" >> busybox/.config
382        echo "CONFIG_SWAPON=y" >> busybox/.config
383        echo "CONFIG_SWAPOFF=y" >> busybox/.config
384        echo "CONFIG_FEATURE_SWAPON_PRI=y" >> busybox/.config
385        echo "# CONFIG_FEATURE_SWAPON_DISCARD is not set" >> busybox/.config
386else
387        echo "# CONFIG_SWAPON is not set" >> busybox/.config
388        echo "# CONFIG_SWAPOFF is not set" >> busybox/.config
389        echo "# CONFIG_MKSWAP is not set" >> busybox/.config
390        echo "# CONFIG_SWAPONOFF is not set" >> busybox/.config
391        echo "# CONFIG_FEATURE_SWAPON_PRI is not set" >> busybox/.config
392endif
393        echo "# CONFIG_SHA3SUM is not set" >> busybox/.config
394        echo "# CONFIG_FEATURE_KMSG_SYSLOG is not set" >> busybox/.config
395        echo "CONFIG_SHA3_SMALL=1" >> busybox/.config
396
397ifeq ($(CONFIG_SMP),y)
398        sed -i 's/\# CONFIG_TASKSET is not set//g' busybox/.config
399        sed -i 's/\# CONFIG_FEATURE_TASKSET_FANCY is not set//g' busybox/.config
400        echo "CONFIG_TASKSET=y" >> busybox/.config
401        echo "CONFIG_FEATURE_TASKSET_FANCY=y" >> busybox/.config
402else
403        echo "# CONFIG_TASKSET is not set" >> busybox/.config
404        echo "# CONFIG_FEATURE_TASKSET_FANCY is not set" >> busybox/.config
405endif
406        echo "# CONFIG_FEATURE_GZIP_LEVELS is not set" >> busybox/.config
407        echo "# CONFIG_FEATURE_DD_STATUS is not set" >> busybox/.config
408        echo "# CONFIG_FEATURE_SYNC_FANCY is not set" >> busybox/.config
409        echo "# CONFIG_TRUNCATE is not set" >> busybox/.config
410        echo "CONFIG_UNAME_OSNAME=\"DD-WRT\"" >> busybox/.config
411        echo "# CONFIG_UEVENT is not set" >> busybox/.config
412        echo "# CONFIG_I2CGET is not set" >> busybox/.config
413        echo "# CONFIG_I2CSET is not set" >> busybox/.config
414        echo "# CONFIG_I2CDUMP is not set" >> busybox/.config
415        echo "# CONFIG_I2CDETECT is not set" >> busybox/.config
416        echo "# CONFIG_FEATURE_LESS_TRUNCATE is not set" >> busybox/.config
417        echo "# CONFIG_FEATURE_WGET_OPENSSL is not set" >> busybox/.config
418        echo "# CONFIG_FEATURE_WGET_SSL_HELPER is not set" >> busybox/.config
419        echo "# CONFIG_FEATURE_MOUNT_OTHERTAB is not set" >> busybox/.config
420        echo "CONFIG_FEATURE_IP_ROUTE_DIR=\"/etc/iproute2\"" >> busybox/.config
421        sed -i 's/\# CONFIG_ASH_OPTIMIZE_FOR_SIZE is not set/CONFIG_ASH_OPTIMIZE_FOR_SIZE=y/g' busybox/.config
422ifeq ($(CONFIG_TFTP),y)
423        sed -i 's/\# CONFIG_TFTP is not set/CONFIG_TFTP=y/g' busybox/.config
424        sed -i 's/\# CONFIG_FEATURE_TFTP_GET is not set/CONFIG_FEATURE_TFTP_GET=y/g' busybox/.config
425        sed -i 's/\# CONFIG_FEATURE_TFTP_PUT is not set/CONFIG_FEATURE_TFTP_PUT=y/g' busybox/.config
426        sed -i 's/\# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set/CONFIG_FEATURE_TFTP_PROGRESS_BAR=y/g' busybox/.config
427        sed -i 's/\# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set/CONFIG_FEATURE_TFTP_BLOCKSIZE=y/g' busybox/.config
428endif
429        echo "# CONFIG_BUSYBOX is not set" >> busybox/.config
430        echo "# CONFIG_DEBUG_SANITIZE is not set" >> busybox/.config
431        echo "# CONFIG_FEATURE_USE_BSS_TAIL is not set" >> busybox/.config
432        echo "# CONFIG_FEATURE_GUNZIP_LONG_OPTIONS is not set" >> busybox/.config
433        echo "# CONFIG_FEATURE_CALL_TELINIT is not set" >> busybox/.config
434        echo "# CONFIG_LINUXRC is not set" >> busybox/.config
435        echo "# CONFIG_MKPASSWD is not set" >> busybox/.config
436        echo "# CONFIG_BLKDISCARD is not set" >> busybox/.config
437        echo "# CONFIG_NSENTER is not set" >> busybox/.config
438        echo "# CONFIG_UNSHARE is not set" >> busybox/.config
439        echo "# CONFIG_FEATURE_VOLUMEID_BCACHE is not set" >> busybox/.config
440        echo "# CONFIG_UBIRENAME is not set" >> busybox/.config
441        echo "# CONFIG_FEATURE_IP_NEIGH is not set" >> busybox/.config
442ifeq ($(CONFIG_BUSYBOX_INETD),y)
443        sed -i 's/\# CONFIG_INETD is not set/CONFIG_INETD=y/g' busybox/.config
444endif
445        echo "# CONFIG_ZCAT is not set" >> busybox/.config
446        echo "# CONFIG_BZCAT is not set" >> busybox/.config
447        echo "# CONFIG_LZCAT is not set" >> busybox/.config
448        echo "# CONFIG_XZCAT is not set" >> busybox/.config
449        echo "# CONFIG_UNLZOP is not set" >> busybox/.config
450        echo "# CONFIG_LZOPCAT is not set" >> busybox/.config
451        echo "# CONFIG_TEST1 is not set" >> busybox/.config
452        echo "# CONFIG_TEST2 is not set" >> busybox/.config
453        echo "# CONFIG_EGREP is not set" >> busybox/.config
454        echo "# CONFIG_FGREP is not set" >> busybox/.config
455        echo "# CONFIG_POWEROFF is not set" >> busybox/.config
456        echo "# CONFIG_MKE2FS is not set" >> busybox/.config
457        echo "# CONFIG_MKDOSFS is not set" >> busybox/.config
458        echo "# CONFIG_LINUX32 is not set" >> busybox/.config
459        echo "# CONFIG_LINUX64 is not set" >> busybox/.config
460        echo "# CONFIG_LOCK is not set" >> busybox/.config
461        echo "# CONFIG_DNSDOMAINNAME is not set" >> busybox/.config
462        echo "# CONFIG_IFUP is not set" >> busybox/.config
463        echo "# CONFIG_IFDOWN is not set" >> busybox/.config
464        echo "# CONFIG_IPNEIGH is not set" >> busybox/.config
465        echo "# CONFIG_NETMSG is not set" >> busybox/.config
466        echo "# CONFIG_SVC is not set" >> busybox/.config
467        echo "CONFIG_REBOOT=y" >> busybox/.config
468        echo "CONFIG_SH_IS_ASH=y" >> busybox/.config
469        echo "# CONFIG_SH_IS_HUSH is not set" >> busybox/.config
470        echo "# CONFIG_SH_IS_NONE is not set" >> busybox/.config
471        echo "# CONFIG_BASH_IS_ASH is not set" >> busybox/.config
472        echo "# CONFIG_BASH_IS_HUSH is not set" >> busybox/.config
473        echo "CONFIG_BASH_IS_NONE=y" >> busybox/.config
474        echo "CONFIG_ASH_INTERNAL_GLOB=y" >> busybox/.config
475        echo "CONFIG_FEATURE_SH_MATH=y" >> busybox/.config
476        echo "# CONFIG_FEATURE_SH_MATH_64 is not set" >> busybox/.config
477        cd busybox && make oldconfig
478       
479        -$(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox
480        $(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox
481
482busybox-install:
483        $(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox install
484        rm -f $(INSTALLDIR)/busybox/usr/sbin/httpd-busybox
485        [ -e $(INSTALLDIR)/busybox/usr/sbin/httpd ] && mv $(INSTALLDIR)/busybox/usr/sbin/httpd $(INSTALLDIR)/busybox/usr/sbin/httpd-busybox || true
486
487busybox-clean: busybox-config
488        $(MAKE) -j 4  -C busybox clean PREFIX=$(INSTALLDIR)/busybox
489
490busybox-distclean: busybox-config
491        $(MAKE) -C busybox clean
492        $(MAKE) -C busybox/scripts/config clean
493        rm -f busybox/.depend busybox/include/config.h busybox.rb500/scripts/mkdep
Note: See TracBrowser for help on using the repository browser.