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 PKG_MD5SUM
:=362b3dc0f2023ddfda901dc1f1a74391
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
25 init-
$(CONFIG_BUSYBOX_CONFIG_HTTPD
) += httpd
26 init-
$(CONFIG_BUSYBOX_CONFIG_CROND
) += cron
27 init-
$(CONFIG_BUSYBOX_CONFIG_TELNETD
) += telnet
29 define Package
/busybox
32 TITLE
:=Core utilities for embedded Linux
33 URL
:=http
://busybox.net
/
37 define Package
/busybox
/description
38 The Swiss Army Knife of embedded Linux.
39 It slices
, it dices
, it makes Julian Fries.
42 define Package
/busybox
/config
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
="$(TARGET_CROSS)" \
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 CROSS
="$(TARGET_CROSS)" \
61 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
66 define Package
/busybox
/install
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 CROSS
="$(TARGET_CROSS)" \
70 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
74 mkdir
-p
$(1)/etc
/init.d
75 for tmp in
$(init-y
); do \
76 $(INSTALL_BIN
) .
/files
/$$$$tmp $(1)/etc
/init.d
/$$$$tmp; \
81 $(eval
$(call BuildPackage
,busybox
))