wlcompat: show wet mode as Managed mode as well to avoid confusion
[openwrt.git] / package / broadcom-wl / compat-ldso / build.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/target.mk
9
10 PKG_NAME:=brcm-compat-ldso
11 PKG_VERSION:=0.9.28
12 PKG_EXTRAVERSION:=.2
13
14 PKG_SOURCE:=uClibc-$(PKG_VERSION)$(PKG_EXTRAVERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.uclibc.org/downloads
16 PKG_MD5SUM:=959f25286e317f0d9e2103445c5a14c2
17 PKG_CAT:=bzcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/brcm-compat/uClibc-$(PKG_VERSION)$(PKG_EXTRAVERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 UCLIBC_TARGET_ARCH:=mipsel
24
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
32 endef
33
34 UCLIBC_MAKE := PATH=$(TARGET_PATH) $(MAKE) -C $(PKG_BUILD_DIR) \
35 DEVEL_PREFIX=/ \
36 RUNTIME_PREFIX=/ \
37 HOSTCC="$(HOSTCC)" \
38 CPU_CFLAGS="$(TARGET_CFLAGS)"
39
40 define Build/Compile
41 $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(PKG_BUILD_DIR)/Rules.mak
42 $(UCLIBC_MAKE) PREFIX= pregen all
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/ld-uClibc.so.0 $(PKG_INSTALL_DIR)/ld-uClibc.brcm
47 endef
48
49 $(eval $(call Build/DefaultTargets))
This page took 0.042833 seconds and 5 git commands to generate.