Add automake-1.4 host tool dependency to linux-atm (#910)
[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_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.busybox.net/downloads
17 PKG_MD5SUM:=362b3dc0f2023ddfda901dc1f1a74391
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/busybox
25 SECTION:=base
26 CATEGORY:=Base system
27 DEFAULT:=y
28 TITLE:=Core utilities for embedded Linux
29 URL:=http://busybox.net/
30 MENU:=1
31 endef
32
33 define Package/busybox/description
34 The Swiss Army Knife of embedded Linux.
35 It slices, it dices, it makes Julian Fries.
36 endef
37
38 define Package/busybox/config
39 menu "Configuration"
40 depends on PACKAGE_busybox
41 source "$(SOURCE)/config/Config.in"
42 endmenu
43 endef
44
45 define Build/Configure
46 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
47 yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
48 CC="$(TARGET_CC)" \
49 CROSS="$(TARGET_CROSS)" \
50 oldconfig
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 CC="$(TARGET_CC)" \
56 CROSS="$(TARGET_CROSS)" \
57 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
58 IPKG_ARCH="$(ARCH)" \
59 all
60 endef
61
62 define Package/busybox/install
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 CC="$(TARGET_CC)" \
65 CROSS="$(TARGET_CROSS)" \
66 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
67 IPKG_ARCH="$(ARCH)" \
68 PREFIX="$(1)" \
69 install
70 -rm -rf $(1)/lib64
71 endef
72
73 $(eval $(call BuildPackage,busybox))
This page took 0.04182 seconds and 5 git commands to generate.