update busybox to v1.2.1
[openwrt.git] / package / busybox / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=busybox
12 PKG_VERSION:=1.2.1
13 PKG_RELEASE:=1
14
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:=362b3dc0f2023ddfda901dc1f1a74391
19 PKG_CAT:=bzcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/busybox
24 SECTION:=base
25 CATEGORY:=Base system
26 MENU:=1
27 DEFAULT:=y
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/
32 CONFIG:=\\\
33 menu "Configuration" \\\
34 depends on PACKAGE_busybox \\\
35 source "$(SOURCE)/config/Config.in" \\\
36 endmenu
37 endef
38
39 define Build/Configure
40 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
41 yes '' | $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" \
42 -C $(PKG_BUILD_DIR) oldconfig
43 endef
44
45 define Package/busybox/install
46 $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" \
47 PREFIX="$(1)" EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install
48 -rm -rf $(1)/lib64
49 endef
50
51 $(eval $(call BuildPackage,busybox))
This page took 0.050054 seconds and 5 git commands to generate.