2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.busybox.net
/downloads \
17 http
://distfiles.gentoo.org
/distfiles
/
18 PKG_MD5SUM
:=571531cfa83726947ccb566de017ad4f
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
26 init-
$(CONFIG_BUSYBOX_CONFIG_HTTPD
) += httpd
27 init-
$(CONFIG_BUSYBOX_CONFIG_CROND
) += cron
28 init-
$(CONFIG_BUSYBOX_CONFIG_TELNETD
) += telnet
30 define Package
/busybox
33 TITLE
:=Core utilities for embedded Linux
34 URL
:=http
://busybox.net
/
38 define Package
/busybox
/description
39 The Swiss Army Knife of embedded Linux.
40 It slices
, it dices
, it makes Julian Fries.
43 define Package
/busybox
/config
45 depends on PACKAGE_busybox
46 source
"$(SOURCE)/config/Config.in"
50 define Build
/Configure
51 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
52 yes
'' |
$(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 CROSS_COMPILE
="$(TARGET_CROSS)" \
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 CROSS_COMPILE
="$(TARGET_CROSS)" \
63 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
69 define Package
/busybox
/install
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
72 CROSS_COMPILE
="$(TARGET_CROSS)" \
73 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
76 CONFIG_PREFIX
="$(1)" \
78 $(INSTALL_DIR
) $(1)/etc
/init.d
79 for tmp in
$(init-y
); do \
80 $(INSTALL_BIN
) .
/files
/$$$$tmp $(1)/etc
/init.d
/$$$$tmp; \
85 $(eval
$(call BuildPackage
,busybox
))