3ada74532e925c863bf9b590b37a84d398ac962f
[openwrt.git] / package / busybox / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=busybox
6 PKG_RELEASE:=1
7
8 PKG_VERSION:=1.1.2
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
13 PKG_CAT:=bzcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 define Package/busybox
18 CONFIGFILE:=config/Config.in
19 SECTION:=base
20 CATEGORY:=Base system
21 TITLE:=Core utilities
22 DESCRIPTION:=Core utilities for embedded Linux systems
23 endef
24 $(eval $(call BuildPackage,BUSYBOX,busybox))
25
26 $(PKG_BUILD_DIR)/.configured:
27 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
28 yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
29 touch $@
30
31 $(PKG_BUILD_DIR)/.built:
32 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
33 EXTRA_CFLAGS="$(TARGET_CFLAGS)" ARCH="$(ARCH)" -C $(PKG_BUILD_DIR)
34 touch $@
35
36 $(IPKG_BUSYBOX):
37 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
38 EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install
39 $(STRIP) $(IDIR_BUSYBOX)/bin/busybox
40 $(IPKG_BUILD) $(IDIR_BUSYBOX) $(PACKAGE_DIR)
This page took 0.043585 seconds and 3 git commands to generate.