aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-09 03:20:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-09 03:20:13 +0000
commit694cbbccb146046da1ae26ee9667bf58067c4f21 (patch)
treea709dc103c27cdea46f2eaa41c71f6261eeeff2a /package/broadcom-wl/Makefile
parentcda3dc3ae1a21fb9c1e8729d2fcc84967e42dd2b (diff)
downloadupstream-694cbbccb146046da1ae26ee9667bf58067c4f21.tar.gz
upstream-694cbbccb146046da1ae26ee9667bf58067c4f21.tar.bz2
upstream-694cbbccb146046da1ae26ee9667bf58067c4f21.zip
disable crt_fini compatibility in uClibc, compile custom ld-uClibc for broadcom utilities allows us to upgrade uClibc without breaking compatibility for nas and wl breaks binary compatibility for packages from earlier kamikaze releases
SVN-Revision: 9518
Diffstat (limited to 'package/broadcom-wl/Makefile')
-rw-r--r--package/broadcom-wl/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/package/broadcom-wl/Makefile b/package/broadcom-wl/Makefile
index f468646cec..ea80e2ad90 100644
--- a/package/broadcom-wl/Makefile
+++ b/package/broadcom-wl/Makefile
@@ -70,9 +70,16 @@ define Package/wlc/description
wl driver.
endef
+define Package/brcm-compat-ldso
+ TITLE:=Broadcom wl/nas binary compatibility libraries
+ SECTION:=libs
+ CATEGORY:=Libraries
+endef
+
define Package/wl
$(call Package/broadcom-wl/Default)
TITLE:=Proprietary Broadcom wl driver config utility
+ DEPENDS+=+brcm-compat-ldso
endef
define Package/wl/description
@@ -82,7 +89,7 @@ endef
define Package/nas
$(call Package/broadcom-wl/Default)
- DEPENDS+= +nvram
+ DEPENDS+= +nvram +brcm-compat-ldso
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
endef
@@ -128,6 +135,15 @@ define Build/Compile
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="-I$(PKG_BUILD_DIR)/wlc/include $(TARGET_CFLAGS)" \
all
+ $(NO_TRACE_MAKE) -C compat-ldso -f build.mk PKG_INSTALL_DIR="$(PKG_BUILD_DIR)"
+ $(SED) 's,ld-uClibc.so.0,ld-uClibc.brcm,' \
+ $(PKG_BUILD_DIR)/wl \
+ $(PKG_BUILD_DIR)/nas
+endef
+
+define Package/brcm-compat-ldso/install
+ $(INSTALL_DIR) $(1)/lib
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ld-uClibc.brcm $(1)/lib/
endef
define Package/wlc/install
@@ -152,6 +168,7 @@ endef
$(eval $(call KernelPackage,brcm-wl))
$(eval $(call KernelPackage,brcm-wl-mimo))
+$(eval $(call BuildPackage,brcm-compat-ldso))
$(eval $(call BuildPackage,wlc))
$(eval $(call BuildPackage,wl))
$(eval $(call BuildPackage,nas))