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
:=5728403bce309cdabcffa414e2e64052
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
27 init-
$(CONFIG_BUSYBOX_CONFIG_HTTPD
) += httpd
28 init-
$(CONFIG_BUSYBOX_CONFIG_CROND
) += cron
29 init-
$(CONFIG_BUSYBOX_CONFIG_TELNETD
) += telnet
31 define Package
/busybox
34 TITLE
:=Core utilities for embedded Linux
35 URL
:=http
://busybox.net
/
39 define Package
/busybox
/description
40 The Swiss Army Knife of embedded Linux.
41 It slices
, it dices
, it makes Julian Fries.
44 define Package
/busybox
/config
45 source
"$(SOURCE)/target-config.in"
47 depends on PACKAGE_busybox
48 source
"$(SOURCE)/config/Config.in"
52 define Build
/Configure
53 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
54 yes
'' |
$(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 CROSS_COMPILE
="$(TARGET_CROSS)" \
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 CROSS_COMPILE
="$(TARGET_CROSS)" \
65 EXTRA_CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
68 EXTRA_LIBS
="$(STAGING_DIR)/usr/lib/libcgi.a" \
72 define Package
/busybox
/install
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 CROSS_COMPILE
="$(TARGET_CROSS)" \
76 EXTRA_CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
79 CONFIG_PREFIX
="$(1)" \
80 EXTRA_LIBS
="$(STAGING_DIR)/usr/lib/libcgi.a" \
82 $(INSTALL_DIR
) $(1)/etc
/init.d
83 for tmp in
$(init-y
); do \
84 $(INSTALL_BIN
) .
/files
/$$$$tmp $(1)/etc
/init.d
/$$$$tmp; \
89 $(eval
$(call BuildPackage
,busybox
))