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

Last change on this file since 32636 was 32636, checked in by brainslayer, 11 days ago

new busybox

File size: 19.8 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
264        echo "CONFIG_FEATURE_TOP_INTERACTIVE=y" >> busybox/.config
265        echo "CONFIG_FEATURE_POWERTOP_INTERACTIVE=y" >> busybox/.config
266endif
267ifeq ($(ARCHITECTURE),laguna)
268        cp busybox/.config_laguna busybox/.config
269        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
270endif
271ifeq ($(ARCHITECTURE),ventana)
272        cp busybox/.config_laguna busybox/.config
273        sed -i 's/\# CONFIG_UBIUPDATEVOL is not set/CONFIG_UBIUPDATEVOL=y/g' busybox/.config
274        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
275endif
276ifeq ($(ARCHITECTURE),northstar)
277        cp busybox/.config_laguna busybox/.config
278        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
279endif
280ifeq ($(ARCHITECTURE),openrisc)
281        cp busybox/.config_storm busybox/.config
282        echo "CONFIG_MKFS_EXT2=y" >> busybox/.config
283endif
284endif
285ifeq ($(ARCH),armeb)
286ifeq ($(ARCHITECTURE),wrt300nv2)
287        cp busybox/.config_fonera busybox/.config
288        echo "# CONFIG_MKFS_EXT2 is not set" >> busybox/.config
289else
290ifneq ($(CONFIG_WP18),y)
291        cp busybox/.config_xscale busybox/.config
292else
293        cp busybox/.config_xscale_wp18 busybox/.config
294endif
295endif
296endif
297ifeq ($(ARCH),powerpc)
298        cp busybox/.config_powerpc busybox/.config
299endif
300ifneq ($(CONFIG_DIST),"micro")
301        sed -i 's/\# CONFIG_FEATURE_WGET_TIMEOUT is not set/CONFIG_FEATURE_WGET_TIMEOUT=y/g' busybox/.config
302endif
303
304#ifeq ($(CONFIG_BUSYBOX_UDHCPC),y)
305        sed -i 's/\# CONFIG_UDHCPC is not set/CONFIG_UDHCPC=y/g' busybox/.config
306        sed -i 's/\# CONFIG_UDHCP_DEBUG is not set/CONFIG_UDHCP_DEBUG=0/g' busybox/.config
307        sed -i 's/\# CONFIG_FEATURE_UDHCP_RFC3397 is not set/CONFIG_FEATURE_UDHCP_RFC3397=y/g' busybox/.config
308        sed -i 's/CONFIG_UDHCPC_DEFAULT_SCRIPT=""/CONFIG_UDHCPC_DEFAULT_SCRIPT=\"\/tmp\/udhcpc\"/g' busybox/.config
309        sed -i 's/CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=0/CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80/g' busybox/.config
310        sed -i 's/\# CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS is not set/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""/g' busybox/.config
311#endif
312
313ifeq ($(CONFIG_IPV6),y)
314        echo "CONFIG_TRACEROUTE6=y" >> busybox/.config
315        echo "CONFIG_PING6=y" >> busybox/.config
316        echo "CONFIG_FEATURE_IPV6=y" >> busybox/.config
317        echo "CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y" >> busybox/.config
318else
319        echo "# CONFIG_TRACEROUTE6 is not set" >> busybox/.config
320        echo "# CONFIG_PING6 is not set" >> busybox/.config
321        echo "# CONFIG_FEATURE_IPV6 is not set" >> busybox/.config
322        echo "# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set" >> busybox/.config
323endif
324ifeq ($(CONFIG_USB_ADVANCED),y)
325        echo "CONFIG_HDPARM=y" >> busybox/.config
326        echo "CONFIG_FEATURE_HDPARM_GET_IDENTITY=y" >> busybox/.config
327        echo "CONFIG_BLKID=y" >> busybox/.config
328        echo "CONFIG_FEATURE_BLKID_TYPE=n" >> busybox/.config
329        echo "CONFIG_VOLUMEID=y" >> busybox/.config
330        echo "CONFIG_FEATURE_VOLUMEID_EXT=y" >> busybox/.config
331        echo "CONFIG_FEATURE_VOLUMEID_BTRFS=y" >> busybox/.config
332        echo "CONFIG_FEATURE_VOLUMEID_REISERFS=y" >> busybox/.config
333        echo "CONFIG_FEATURE_VOLUMEID_FAT=y" >> busybox/.config
334        echo "CONFIG_FEATURE_VOLUMEID_EXFAT=y" >> busybox/.config
335        echo "CONFIG_FEATURE_VOLUMEID_HFS=y" >> busybox/.config
336        echo "CONFIG_FEATURE_VOLUMEID_JFS=y" >> busybox/.config
337        echo "CONFIG_FEATURE_VOLUMEID_XFS=y" >> busybox/.config
338        echo "CONFIG_FEATURE_VOLUMEID_NILFS=y" >> busybox/.config
339        echo "CONFIG_FEATURE_VOLUMEID_NTFS=y" >> busybox/.config
340        echo "CONFIG_FEATURE_VOLUMEID_ISO9660=y" >> busybox/.config
341        echo "CONFIG_FEATURE_VOLUMEID_UDF=y" >> busybox/.config
342        echo "CONFIG_FEATURE_VOLUMEID_LUKS=y" >> busybox/.config
343        echo "CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y" >> busybox/.config
344        echo "CONFIG_FEATURE_VOLUMEID_CRAMFS=y" >> busybox/.config
345        echo "CONFIG_FEATURE_VOLUMEID_ROMFS=y" >> busybox/.config
346        echo "CONFIG_FEATURE_VOLUMEID_SQUASHFS=y" >> busybox/.config
347        echo "CONFIG_FEATURE_VOLUMEID_SYSV=y" >> busybox/.config
348        echo "CONFIG_FEATURE_VOLUMEID_OCFS2=y" >> busybox/.config
349        echo "CONFIG_FEATURE_VOLUMEID_LINUXRAID=y" >> busybox/.config
350        echo "CONFIG_FEATURE_MOUNT_LABEL=y" >> busybox/.config 
351        echo "CONFIG_FEATURE_MKSWAP_UUID=y" >> busybox/.config
352else
353        echo "# CONFIG_HDPARM is not set" >> busybox/.config
354        echo "# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set" >> busybox/.config
355        echo "# CONFIG_BLKID is not set" >> busybox/.config
356        echo "# CONFIG_FEATURE_BLKID_TYPE is not set" >> busybox/.config
357        echo "# CONFIG_VOLUMEID is not set" >> busybox/.config
358        echo "# CONFIG_FEATURE_VOLUMEID_EXT is not set" >> busybox/.config
359        echo "# CONFIG_FEATURE_VOLUMEID_BTRFS is not set" >> busybox/.config
360        echo "# CONFIG_FEATURE_VOLUMEID_REISERFS is not set" >> busybox/.config
361        echo "# CONFIG_FEATURE_VOLUMEID_FAT is not set" >> busybox/.config
362        echo "# CONFIG_FEATURE_VOLUMEID_EXFAT is not set" >> busybox/.config
363        echo "# CONFIG_FEATURE_VOLUMEID_HFS is not set" >> busybox/.config
364        echo "# CONFIG_FEATURE_VOLUMEID_JFS is not set" >> busybox/.config
365        echo "# CONFIG_FEATURE_VOLUMEID_XFS is not set" >> busybox/.config
366        echo "# CONFIG_FEATURE_VOLUMEID_NILFS is not set" >> busybox/.config
367        echo "# CONFIG_FEATURE_VOLUMEID_NTFS is not set" >> busybox/.config
368        echo "# CONFIG_FEATURE_VOLUMEID_ISO9660 is not set" >> busybox/.config
369        echo "# CONFIG_FEATURE_VOLUMEID_UDF is not set" >> busybox/.config
370        echo "# CONFIG_FEATURE_VOLUMEID_LUKS is not set" >> busybox/.config
371        echo "# CONFIG_FEATURE_VOLUMEID_LINUXSWAP is not set" >> busybox/.config
372        echo "# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set" >> busybox/.config
373        echo "# CONFIG_FEATURE_VOLUMEID_ROMFS is not set" >> busybox/.config
374        echo "# CONFIG_FEATURE_VOLUMEID_SQUASHFS is not set" >> busybox/.config
375        echo "# CONFIG_FEATURE_VOLUMEID_SYSV is not set" >> busybox/.config
376        echo "# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set" >> busybox/.config
377        echo "# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set" >> busybox/.config
378        echo "# CONFIG_FEATURE_MKSWAP_UUID is not set" >> busybox/.config
379endif
380        echo "# CONFIG_FEATURE_VOLUMEID_UBIFS is not set" >> busybox/.config
381ifeq ($(CONFIG_SWAP),y)
382        echo "CONFIG_MKSWAP=y" >> busybox/.config
383        echo "CONFIG_SWAPONOFF=y" >> busybox/.config
384        echo "CONFIG_SWAPON=y" >> busybox/.config
385        echo "CONFIG_SWAPOFF=y" >> busybox/.config
386        echo "CONFIG_FEATURE_SWAPON_PRI=y" >> busybox/.config
387        echo "# CONFIG_FEATURE_SWAPON_DISCARD is not set" >> busybox/.config
388else
389        echo "# CONFIG_SWAPON is not set" >> busybox/.config
390        echo "# CONFIG_SWAPOFF is not set" >> busybox/.config
391        echo "# CONFIG_MKSWAP is not set" >> busybox/.config
392        echo "# CONFIG_SWAPONOFF is not set" >> busybox/.config
393        echo "# CONFIG_FEATURE_SWAPON_PRI is not set" >> busybox/.config
394endif
395        echo "# CONFIG_SHA3SUM is not set" >> busybox/.config
396        echo "# CONFIG_FEATURE_KMSG_SYSLOG is not set" >> busybox/.config
397        echo "CONFIG_SHA3_SMALL=1" >> busybox/.config
398
399ifeq ($(CONFIG_SMP),y)
400        sed -i 's/\# CONFIG_TASKSET is not set//g' busybox/.config
401        sed -i 's/\# CONFIG_FEATURE_TASKSET_FANCY is not set//g' busybox/.config
402        echo "CONFIG_TASKSET=y" >> busybox/.config
403        echo "CONFIG_FEATURE_TASKSET_FANCY=y" >> busybox/.config
404else
405        echo "# CONFIG_TASKSET is not set" >> busybox/.config
406        echo "# CONFIG_FEATURE_TASKSET_FANCY is not set" >> busybox/.config
407endif
408        echo "# CONFIG_FEATURE_GZIP_LEVELS is not set" >> busybox/.config
409        echo "# CONFIG_FEATURE_DD_STATUS is not set" >> busybox/.config
410        echo "# CONFIG_FEATURE_SYNC_FANCY is not set" >> busybox/.config
411        echo "# CONFIG_TRUNCATE is not set" >> busybox/.config
412        echo "CONFIG_UNAME_OSNAME=\"DD-WRT\"" >> busybox/.config
413        echo "# CONFIG_UEVENT is not set" >> busybox/.config
414        echo "# CONFIG_I2CGET is not set" >> busybox/.config
415        echo "# CONFIG_I2CSET is not set" >> busybox/.config
416        echo "# CONFIG_I2CDUMP is not set" >> busybox/.config
417        echo "# CONFIG_I2CDETECT is not set" >> busybox/.config
418        echo "# CONFIG_FEATURE_LESS_TRUNCATE is not set" >> busybox/.config
419        echo "# CONFIG_FEATURE_WGET_OPENSSL is not set" >> busybox/.config
420        echo "# CONFIG_FEATURE_WGET_SSL_HELPER is not set" >> busybox/.config
421        echo "# CONFIG_FEATURE_MOUNT_OTHERTAB is not set" >> busybox/.config
422        echo "CONFIG_FEATURE_IP_ROUTE_DIR=\"/etc/iproute2\"" >> busybox/.config
423        sed -i 's/\# CONFIG_ASH_OPTIMIZE_FOR_SIZE is not set/CONFIG_ASH_OPTIMIZE_FOR_SIZE=y/g' busybox/.config
424ifeq ($(CONFIG_TFTP),y)
425        sed -i 's/\# CONFIG_TFTP is not set/CONFIG_TFTP=y/g' busybox/.config
426        sed -i 's/\# CONFIG_FEATURE_TFTP_GET is not set/CONFIG_FEATURE_TFTP_GET=y/g' busybox/.config
427        sed -i 's/\# CONFIG_FEATURE_TFTP_PUT is not set/CONFIG_FEATURE_TFTP_PUT=y/g' busybox/.config
428        sed -i 's/\# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set/CONFIG_FEATURE_TFTP_PROGRESS_BAR=y/g' busybox/.config
429        sed -i 's/\# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set/CONFIG_FEATURE_TFTP_BLOCKSIZE=y/g' busybox/.config
430endif
431        echo "# CONFIG_BUSYBOX is not set" >> busybox/.config
432        echo "# CONFIG_DEBUG_SANITIZE is not set" >> busybox/.config
433        echo "# CONFIG_FEATURE_USE_BSS_TAIL is not set" >> busybox/.config
434        echo "# CONFIG_FEATURE_GUNZIP_LONG_OPTIONS is not set" >> busybox/.config
435        echo "# CONFIG_FEATURE_CALL_TELINIT is not set" >> busybox/.config
436        echo "# CONFIG_LINUXRC is not set" >> busybox/.config
437        echo "# CONFIG_MKPASSWD is not set" >> busybox/.config
438        echo "# CONFIG_BLKDISCARD is not set" >> busybox/.config
439        echo "# CONFIG_NSENTER is not set" >> busybox/.config
440        echo "# CONFIG_UNSHARE is not set" >> busybox/.config
441        echo "# CONFIG_FEATURE_VOLUMEID_BCACHE is not set" >> busybox/.config
442        echo "# CONFIG_UBIRENAME is not set" >> busybox/.config
443        echo "# CONFIG_FEATURE_IP_NEIGH is not set" >> busybox/.config
444ifeq ($(CONFIG_BUSYBOX_INETD),y)
445        sed -i 's/\# CONFIG_INETD is not set/CONFIG_INETD=y/g' busybox/.config
446endif
447        echo "# CONFIG_ZCAT is not set" >> busybox/.config
448        echo "# CONFIG_BZCAT is not set" >> busybox/.config
449        echo "# CONFIG_LZCAT is not set" >> busybox/.config
450        echo "# CONFIG_XZCAT is not set" >> busybox/.config
451        echo "# CONFIG_UNLZOP is not set" >> busybox/.config
452        echo "# CONFIG_LZOPCAT is not set" >> busybox/.config
453        echo "# CONFIG_TEST1 is not set" >> busybox/.config
454        echo "# CONFIG_TEST2 is not set" >> busybox/.config
455        echo "# CONFIG_EGREP is not set" >> busybox/.config
456        echo "# CONFIG_FGREP is not set" >> busybox/.config
457        echo "# CONFIG_POWEROFF is not set" >> busybox/.config
458        echo "# CONFIG_MKE2FS is not set" >> busybox/.config
459        echo "# CONFIG_MKDOSFS is not set" >> busybox/.config
460        echo "# CONFIG_LINUX32 is not set" >> busybox/.config
461        echo "# CONFIG_LINUX64 is not set" >> busybox/.config
462        echo "# CONFIG_LOCK is not set" >> busybox/.config
463        echo "# CONFIG_DNSDOMAINNAME is not set" >> busybox/.config
464        echo "# CONFIG_IFUP is not set" >> busybox/.config
465        echo "# CONFIG_IFDOWN is not set" >> busybox/.config
466        echo "# CONFIG_IPNEIGH is not set" >> busybox/.config
467        echo "# CONFIG_NETMSG is not set" >> busybox/.config
468        echo "# CONFIG_SVC is not set" >> busybox/.config
469        echo "CONFIG_REBOOT=y" >> busybox/.config
470        echo "CONFIG_SH_IS_ASH=y" >> busybox/.config
471        echo "# CONFIG_SH_IS_HUSH is not set" >> busybox/.config
472        echo "# CONFIG_SH_IS_NONE is not set" >> busybox/.config
473        echo "# CONFIG_BASH_IS_ASH is not set" >> busybox/.config
474        echo "# CONFIG_BASH_IS_HUSH is not set" >> busybox/.config
475        echo "CONFIG_BASH_IS_NONE=y" >> busybox/.config
476        echo "CONFIG_ASH_INTERNAL_GLOB=y" >> busybox/.config
477        echo "CONFIG_FEATURE_SH_MATH=y" >> busybox/.config
478        echo "# CONFIG_FEATURE_SH_MATH_64 is not set" >> busybox/.config
479        echo "# CONFIG_FEATURE_CATV is not set" >> busybox/.config
480        echo "# CONFIG_FACTOR is not set" >> busybox/.config
481        echo "# CONFIG_LINK is not set" >> busybox/.config
482        echo "CONFIG_FEATURE_LS_WIDTH=y" >> busybox/.config
483        echo "# CONFIG_NL is not set" >> busybox/.config
484        echo "# CONFIG_NPROC is not set" >> busybox/.config
485        echo "# CONFIG_PASTE is not set" >> busybox/.config
486        echo "# CONFIG_SHRED is not set" >> busybox/.config
487        echo "# CONFIG_FALLOCATE is not set" >> busybox/.config
488        echo "# CONFIG_FSFREEZE is not set" >> busybox/.config
489        echo "# CONFIG_XXD is not set" >> busybox/.config
490        echo "# CONFIG_SETPRIV is not set" >> busybox/.config
491        echo "# CONFIG_LSSCSI is not set" >> busybox/.config
492        echo "# CONFIG_PARTPROBE is not set" >> busybox/.config
493        echo "# CONFIG_SSL_CLIENT is not set" >> busybox/.config
494        echo "CONFIG_FEATURE_TELNET_WIDTH=y" >> busybox/.config
495        echo "# CONFIG_FEATURE_WGET_HTTPS is not set" >> busybox/.config
496        echo "CONFIG_ASH_ECHO=y" >> busybox/.config
497        echo "CONFIG_ASH_PRINTF=y" >> busybox/.config
498        echo "CONFIG_ASH_TEST=y" >> busybox/.config
499        echo "# CONFIG_FEATURE_TOP_INTERACTIVE is not set" >> busybox/.config
500        echo "# CONFIG_FEATURE_POWERTOP_INTERACTIVE is not set" >> busybox/.config
501
502        cd busybox && make oldconfig
503       
504        -$(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox
505        $(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox
506
507busybox-install:
508        $(MAKE) -j 4 -C busybox STRIPTOOL=$(STRIP) PREFIX=$(INSTALLDIR)/busybox install
509        rm -f $(INSTALLDIR)/busybox/usr/sbin/httpd-busybox
510        [ -e $(INSTALLDIR)/busybox/usr/sbin/httpd ] && mv $(INSTALLDIR)/busybox/usr/sbin/httpd $(INSTALLDIR)/busybox/usr/sbin/httpd-busybox || true
511
512busybox-clean: busybox-config
513        $(MAKE) -j 4  -C busybox clean PREFIX=$(INSTALLDIR)/busybox
514
515busybox-distclean: busybox-config
516        $(MAKE) -C busybox clean
517        $(MAKE) -C busybox/scripts/config clean
518        rm -f busybox/.depend busybox/include/config.h busybox.rb500/scripts/mkdep
Note: See TracBrowser for help on using the repository browser.