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
24 define Package/busybox
28 TITLE:=Core utilities for embedded Linux
29 URL:=http://busybox.net/
33 define Package/busybox/description
34 The Swiss Army Knife of embedded Linux.
35 It slices, it dices, it makes Julian Fries.
38 define Package/busybox/config
40 depends on PACKAGE_busybox
41 source "$(SOURCE)/config/Config.in"
45 define Build/Configure
46 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
47 yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
49 CROSS="$(TARGET_CROSS)" \
54 $(MAKE) -C $(PKG_BUILD_DIR) \
56 CROSS="$(TARGET_CROSS)" \
57 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
62 define Package/busybox/install
63 $(MAKE) -C $(PKG_BUILD_DIR) \
65 CROSS="$(TARGET_CROSS)" \
66 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
73 $(eval $(call BuildPackage,busybox))