2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
10 PKG_VERSION
:=$(call qstrip
,$(CONFIG_GLIBC_VERSION
))
12 ifeq ($(PKG_VERSION
),2.3.6)
13 PKG_MD5SUM
:=40dce745d34ff80401da2fdfe58f6d53
15 ifeq ($(PKG_VERSION
),2.6.1)
16 PKG_MD5SUM
:=53d88ca624642dd267752ccce77b19d0
18 ifeq ($(PKG_VERSION
),2.7)
19 PKG_MD5SUM
:=eaeb8527b8fa286c2d887157214f9998
22 PKG_SOURCE_URL
:=@GNU
/glibc
/
23 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
26 PATCH_DIR
:=.
/patches
/$(PKG_VERSION
)
28 STAGING_DIR_HOST
:=$(TOOLCHAIN_DIR
)
29 BUILD_DIR_HOST
:=$(BUILD_DIR_TOOLCHAIN
)
31 override CONFIG_AUTOREBUILD
=
33 include $(INCLUDE_DIR
)/host-build.mk
35 STAMP_BUILT
:=$(TOOLCHAIN_DIR
)/stamp
/.glibc-ports_built
36 STAMP_INSTALLED
:=$(TOOLCHAIN_DIR
)/stamp
/.glibc-ports_installed
39 $(call Build
/Prepare
/Default
)
40 ln
-snf
$(PKG_NAME
)-$(PKG_VERSION
) $(BUILD_DIR_TOOLCHAIN
)/$(PKG_NAME
)
43 define Build
/Configure
55 $(BUILD_DIR_TOOLCHAIN
)/$(PKG_NAME
)
58 $(eval
$(call HostBuild
))