fix cflags in ser package
[openwrt.git] / package / busybox / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=busybox
6 PKG_RELEASE:=2
7
8 ifeq ($(strip $(BR2_PACKAGE_BUSYBOX_SNAPSHOT)),y)
9 # Be aware that this changes daily....
10 PKG_VERSION:=0.${shell date +"%G%m%d"}
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12 PKG_SOURCE:=$(PKG_NAME)-snapshot.tar.bz2
13 PKG_SOURCE_URL:=http://www.busybox.net/downloads/snapshots
14 PKG_MD5SUM:=x
15 else
16 PKG_VERSION:=1.00
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19 PKG_SOURCE_URL:=http://www.busybox.net/downloads
20 PKG_MD5SUM:=5c7ea9b5d3b3677dfcdcec38b281a756
21 endif
22 PKG_CAT:=bzcat
23
24 include $(TOPDIR)/package/rules.mk
25
26 $(eval $(call PKG_template,BUSYBOX,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27
28 $(PKG_BUILD_DIR)/.configured:
29 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
30 yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
31 touch $@
32
33 $(PKG_BUILD_DIR)/.built:
34 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
35 EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR)
36 touch $@
37
38 $(IPKG_BUSYBOX):
39 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
40 EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install
41 $(STRIP) $(IDIR_BUSYBOX)/bin/busybox
42 -chmod a+x $(IDIR_BUSYBOX)/usr/share/udhcpc/default.script
43 $(IPKG_BUILD) $(IDIR_BUSYBOX) $(PACKAGE_DIR)
This page took 0.05069 seconds and 5 git commands to generate.