3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
11 PKG_SOURCE_URL
:=http
://www.busybox.net
/downloads
12 PKG_MD5SUM
:=0b5d78072302fe687407956537bdb9e3
15 include $(TOPDIR
)/package
/rules.mk
17 define Package
/busybox
18 CONFIGFILE
:=config
/Config.in
21 TITLE
:=Core utilities for embedded Linux
22 DESCRIPTION
:=The Swiss Army Knife of embedded Linux. It slices
, it dices
, it
\\\
24 URL
:=http
://busybox.net
/
27 define Build
/Configure
28 $(SCRIPT_DIR
)/gen_busybox_config.pl
$(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
29 yes
'' |
$(MAKE
) CC
=$(TARGET_CC
) CROSS
="$(TARGET_CROSS)" -C
$(PKG_BUILD_DIR
) oldconfig
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 CROSS
="$(TARGET_CROSS)" \
36 PREFIX
="$(IDIR_BUSYBOX)" \
37 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" \
41 define Package
/busybox
/install
42 $(MAKE
) CC
=$(TARGET_CC
) CROSS
="$(TARGET_CROSS)" PREFIX
="$(1)" \
43 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" -C
$(PKG_BUILD_DIR
) install
44 $(STRIP
) $(1)/bin
/busybox
47 $(eval
$(call BuildPackage
,busybox
))