You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.5 KiB
73 lines
1.5 KiB
![]()
18 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
![]()
20 years ago
|
# $Id$
|
||
|
|
||
![]()
20 years ago
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
![]()
20 years ago
|
PKG_NAME:=busybox
|
||
![]()
18 years ago
|
PKG_VERSION:=1.2.1
|
||
![]()
19 years ago
|
PKG_RELEASE:=1
|
||
![]()
20 years ago
|
|
||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||
|
PKG_SOURCE_URL:=http://www.busybox.net/downloads
|
||
![]()
18 years ago
|
PKG_MD5SUM:=362b3dc0f2023ddfda901dc1f1a74391
|
||
![]()
20 years ago
|
PKG_CAT:=bzcat
|
||
|
|
||
![]()
18 years ago
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||
|
|
||
![]()
18 years ago
|
include $(INCLUDE_DIR)/package.mk
|
||
![]()
20 years ago
|
|
||
![]()
19 years ago
|
define Package/busybox
|
||
![]()
18 years ago
|
SECTION:=base
|
||
|
CATEGORY:=Base system
|
||
|
TITLE:=Core utilities for embedded Linux
|
||
|
URL:=http://busybox.net/
|
||
|
MENU:=1
|
||
![]()
18 years ago
|
endef
|
||
|
|
||
![]()
18 years ago
|
define Package/busybox/description
|
||
|
The Swiss Army Knife of embedded Linux.
|
||
|
It slices, it dices, it makes Julian Fries.
|
||
|
endef
|
||
|
|
||
![]()
18 years ago
|
define Package/busybox/config
|
||
|
menu "Configuration"
|
||
|
depends on PACKAGE_busybox
|
||
|
source "$(SOURCE)/config/Config.in"
|
||
![]()
19 years ago
|
endmenu
|
||
![]()
19 years ago
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
19 years ago
|
define Build/Configure
|
||
![]()
20 years ago
|
$(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
|
||
![]()
18 years ago
|
yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
CC="$(TARGET_CC)" \
|
||
|
CROSS="$(TARGET_CROSS)" \
|
||
|
oldconfig
|
||
![]()
19 years ago
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
define Build/Compile
|
||
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
CC="$(TARGET_CC)" \
|
||
|
CROSS="$(TARGET_CROSS)" \
|
||
|
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
||
|
IPKG_ARCH="$(ARCH)" \
|
||
|
all
|
||
|
endef
|
||
|
|
||
![]()
19 years ago
|
define Package/busybox/install
|
||
![]()
18 years ago
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||
|
CC="$(TARGET_CC)" \
|
||
|
CROSS="$(TARGET_CROSS)" \
|
||
|
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
|
||
![]()
18 years ago
|
IPKG_ARCH="$(ARCH)" \
|
||
![]()
18 years ago
|
PREFIX="$(1)" \
|
||
|
install
|
||
![]()
19 years ago
|
-rm -rf $(1)/lib64
|
||
![]()
19 years ago
|
endef
|
||
|
|
||
|
$(eval $(call BuildPackage,busybox))
|