summaryrefslogtreecommitdiff
path: root/package/broadcom-wl/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-09 03:20:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-09 03:20:13 +0000
commit26fecaf49101a9060bdddba1ee9d319597d90f0c (patch)
tree0c0f965c759a93e1664ca3450dc6119dc82c21e2 /package/broadcom-wl/Makefile
parent2fd852f1f1a80636243ad23a2f0ba0bfe9659ebe (diff)
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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9518 3c298f89-4303-0410-b956-a3cf2f4a3e73
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))