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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=http
://www.busybox.net
/downloads
18 PKG_MD5SUM
:=19a0b475169335f17e421cf644616fe7
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/busybox
28 TITLE
:=Core utilities for embedded Linux
29 DESCRIPTION
:=The Swiss Army Knife of embedded Linux.
\\\
30 It slices
, it dices
, it makes Julian Fries.
31 URL
:=http
://busybox.net
/
33 menu
"Configuration" \\\
34 depends on PACKAGE_busybox
\\\
35 source
"$(SOURCE)/config/Config.in" \\\
39 define Build
/Configure
40 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
41 yes
'' | PATH
="$(TARGET_PATH)" $(MAKE
) CC
="$(TARGET_CC)" CROSS
="$(TARGET_CROSS)" \
42 -C
$(PKG_BUILD_DIR
) oldconfig
45 define Package
/busybox
/install
46 PATH
="$(TARGET_PATH)" $(MAKE
) CC
="$(TARGET_CC)" CROSS
="$(TARGET_CROSS)" \
47 PREFIX
="$(1)" EXTRA_CFLAGS
="$(TARGET_CFLAGS)" -C
$(PKG_BUILD_DIR
) install
51 $(eval
$(call BuildPackage
,busybox
))