add support for a common shell include file, which is evaluated for every make shell...
[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 DESCRIPTION:=\
30 The Swiss Army Knife of embedded Linux. \\\
31 It slices, it dices, it makes Julian Fries.
32 URL:=http://busybox.net/
33 MENU:=1
34 endef
35
36 define Package/busybox/config
37 menu "Configuration"
38 depends on PACKAGE_busybox
39 source "$(SOURCE)/config/Config.in"
40 endmenu
41 endef
42
43 define Build/Configure
44 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
45 yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
46 CC="$(TARGET_CC)" \
47 CROSS="$(TARGET_CROSS)" \
48 oldconfig
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CC="$(TARGET_CC)" \
54 CROSS="$(TARGET_CROSS)" \
55 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
56 IPKG_ARCH="$(ARCH)" \
57 all
58 endef
59
60 define Package/busybox/install
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 CC="$(TARGET_CC)" \
63 CROSS="$(TARGET_CROSS)" \
64 EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
65 IPKG_ARCH="$(ARCH)" \
66 PREFIX="$(1)" \
67 install
68 -rm -rf $(1)/lib64
69 endef
70
71 $(eval $(call BuildPackage,busybox))
This page took 0.042644 seconds and 5 git commands to generate.