2 # Copyright (C) 2006 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
8 include $(INCLUDE_DIR
)/target.mk
10 PKG_NAME
:=brcm-compat-ldso
14 PKG_SOURCE
:=uClibc-
$(PKG_VERSION
)$(PKG_EXTRAVERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.uclibc.org
/downloads
16 PKG_MD5SUM
:=959f25286e317f0d9e2103445c5a14c2
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/brcm-compat
/uClibc-
$(PKG_VERSION
)$(PKG_EXTRAVERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 UCLIBC_TARGET_ARCH
:=mipsel
25 define Build
/Configure
26 $(CP
) config
$(PKG_BUILD_DIR
)/.config
27 $(SED
) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \
28 -e
's,.*HAS_FPU.*,HAS_FPU=$(if $(CONFIG_SOFT_FLOAT),n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,n),g' \
29 -e
's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=$(if $(CONFIG_LARGEFILE),y,n),g' \
30 -e
's,.*DO_C99_MATH.*,DO_C99_MATH=$(if $(CONFIG_C99_MATH),y,n),g' \
31 $(PKG_BUILD_DIR
)/.config
34 UCLIBC_MAKE
:= PATH
=$(TARGET_PATH
) $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 CPU_CFLAGS
="$(TARGET_CFLAGS)"
41 $(SED
) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(PKG_BUILD_DIR
)/Rules.mak
42 $(UCLIBC_MAKE
) PREFIX
= pregen
all
45 define Build
/InstallDev
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lib
/ld-uClibc.so
.0 $(PKG_INSTALL_DIR
)/ld-uClibc.brcm
49 $(eval
$(call Build
/DefaultTargets
))