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 include $(INCLUDE_DIR
)/package.mk
24 init-
$(CONFIG_BUSYBOX_CONFIG_HTTPD
) += httpd
25 init-
$(CONFIG_BUSYBOX_CONFIG_CROND
) += cron
26 init-
$(CONFIG_BUSYBOX_CONFIG_TELNETD
) += telnet
28 define Package
/busybox
31 TITLE
:=Core utilities for embedded Linux
32 URL
:=http
://busybox.net
/
36 define Package
/busybox
/description
37 The Swiss Army Knife of embedded Linux.
38 It slices
, it dices
, it makes Julian Fries.
41 define Package
/busybox
/config
42 source
"$(SOURCE)/target-config.in"
44 depends on PACKAGE_busybox
45 source
"$(SOURCE)/config/Config.in"
49 define Build
/Configure
50 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
51 yes
'' |
$(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 CROSS_COMPILE
="$(TARGET_CROSS)" \
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 CROSS_COMPILE
="$(TARGET_CROSS)" \
62 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
68 define Package
/busybox
/install
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 CROSS_COMPILE
="$(TARGET_CROSS)" \
72 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
75 CONFIG_PREFIX
="$(1)" \
77 $(INSTALL_DIR
) $(1)/etc
/init.d
78 for tmp in
$(init-y
); do \
79 $(INSTALL_BIN
) .
/files
/$$$$tmp $(1)/etc
/init.d
/$$$$tmp; \
84 $(eval
$(call BuildPackage
,busybox
))