source: freewrt/package/busybox/Makefile@ 6be9a4d9

freewrt_1_0 freewrt_2_0
Last change on this file since 6be9a4d9 was 6be9a4d9, checked in by Thorsten Glaser <tg@…>, 19 years ago

let the user decide which of the available shells he
wants as /bin/sh - not only these included with busybox

(ash and mksh are probably the only ones which will
work, but like this I won't affect any existing con-
figuration)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@437 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1009 bytes
Line 
1# $Id: Makefile 3794 2006-05-18 08:32:07Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:= busybox
6PKG_RELEASE:= 2
7PKG_VERSION:= 1.1.3
8
9PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
10PKG_SOURCE_URL:= http://www.busybox.net/downloads
11PKG_MD5SUM:= 19a0b475169335f17e421cf644616fe7
12
13include $(TOPDIR)/package/rules.mk
14
15$(eval $(call PKG_template,BUSYBOX,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
16
17$(WRKBUILD)/.configured:
18 $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(WRKBUILD)/.config
19 yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(WRKBUILD) oldconfig
20 touch $@
21
22$(WRKBUILD)/.built:
23 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
24 EXTRA_CFLAGS="$(TARGET_CFLAGS)" ARCH="$(ARCH)" -C $(WRKBUILD)
25 touch $@
26
27$(IPKG_BUSYBOX):
28 $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \
29 EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(WRKBUILD) install
30 $(STRIP) $(IDIR_BUSYBOX)/bin/busybox
31 $(IPKG_BUILD) $(IDIR_BUSYBOX) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.