2009-01-08 02:49:11 +01:00
|
|
|
#
|
2009-02-03 22:25:48 +01:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2009-01-08 02:49:11 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=glibc-ports
|
|
|
|
PKG_VERSION:=$(call qstrip,$(CONFIG_GLIBC_VERSION))
|
|
|
|
|
|
|
|
ifeq ($(PKG_VERSION),2.3.6)
|
|
|
|
PKG_MD5SUM:=40dce745d34ff80401da2fdfe58f6d53
|
|
|
|
endif
|
|
|
|
ifeq ($(PKG_VERSION),2.6.1)
|
|
|
|
PKG_MD5SUM:=53d88ca624642dd267752ccce77b19d0
|
|
|
|
endif
|
|
|
|
ifeq ($(PKG_VERSION),2.7)
|
|
|
|
PKG_MD5SUM:=eaeb8527b8fa286c2d887157214f9998
|
|
|
|
endif
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=@GNU/glibc/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
|
|
|
|
PATCH_DIR:=./patches/$(PKG_VERSION)
|
|
|
|
|
2009-02-24 00:52:27 +01:00
|
|
|
include $(INCLUDE_DIR)/toolchain-build.mk
|
2009-01-08 02:49:11 +01:00
|
|
|
|
2009-03-13 13:50:23 +01:00
|
|
|
HOST_STAMP_BUILT:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_built
|
|
|
|
HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.glibc-ports_installed
|
2009-01-08 02:49:11 +01:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Prepare
|
|
|
|
$(call Host/Prepare/Default)
|
2009-01-08 02:49:11 +01:00
|
|
|
ln -snf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Configure
|
2009-01-08 02:49:11 +01:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Compile
|
2009-01-08 02:49:11 +01:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Install
|
2009-01-08 02:49:11 +01:00
|
|
|
endef
|
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
2009-01-08 02:49:11 +01:00
|
|
|
rm -rf \
|
2009-02-22 05:37:20 +01:00
|
|
|
$(HOST_BUILD_DIR) \
|
2009-01-08 02:49:11 +01:00
|
|
|
$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|