broadcom-wl: add nvram stub to fix nas compile after the switch to unvram

SVN-Revision: 15439
This commit is contained in:
Felix Fietkau 2009-04-27 14:18:34 +00:00
parent d607443fdb
commit 7f8b55cec9
2 changed files with 25 additions and 3 deletions

View file

@ -100,7 +100,6 @@ endef
define Package/wl define Package/wl
$(call Package/broadcom-wl/Default) $(call Package/broadcom-wl/Default)
DEPENDS+= +nvram
TITLE:=Proprietary Broadcom wl driver config utility TITLE:=Proprietary Broadcom wl driver config utility
endef endef
@ -111,7 +110,6 @@ endef
define Package/nas define Package/nas
$(call Package/broadcom-wl/Default) $(call Package/broadcom-wl/Default)
DEPENDS+= +nvram
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
endef endef
@ -150,17 +148,25 @@ define Build/Compile
$(if $(WL_WEXT),WL_WEXT=1) \ $(if $(WL_WEXT),WL_WEXT=1) \
modules modules
# NVRAM stub
$(TARGET_CC) $(TARGET_CFLAGS) -c -o $(PKG_BUILD_DIR)/nvram/nvram_stub.o $(PKG_BUILD_DIR)/nvram/nvram_stub.c
# Compile wlc # Compile wlc
$(MAKE) -C $(PKG_BUILD_DIR)/wlc \ $(MAKE) -C $(PKG_BUILD_DIR)/wlc \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
all all
# Compile libshared # Compile libshared
$(MAKE) -C $(PKG_BUILD_DIR)/router/shared \ $(MAKE) -C $(PKG_BUILD_DIR)/router/shared \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I. -I$(PKG_BUILD_DIR)/include -Dlinux=1" \ CFLAGS="$(TARGET_CFLAGS) -I. -I$(PKG_BUILD_DIR)/include -Dlinux=1" \
all all
$(TARGET_CC) -o $(PKG_BUILD_DIR)/nas $(PKG_BUILD_DIR)/nas_exe.o $(TARGET_LDFLAGS) -lnvram $(PKG_BUILD_DIR)/router/shared/libshared.a $(TARGET_CC) -o $(PKG_BUILD_DIR)/nas \
$(PKG_BUILD_DIR)/nas_exe.o \
$(PKG_BUILD_DIR)/nvram/nvram_stub.o \
$(TARGET_LDFLAGS) \
$(PKG_BUILD_DIR)/router/shared/libshared.a
$(TARGET_CC) -o $(PKG_BUILD_DIR)/wl $(PKG_BUILD_DIR)/wl_exe.o $(TARGET_CC) -o $(PKG_BUILD_DIR)/wl $(PKG_BUILD_DIR)/wl_exe.o
endef endef

View file

@ -0,0 +1,16 @@
#include <stdlib.h>
int nvram_set(const char *name, const char *value)
{
return -1;
}
char *nvram_get(const char *name)
{
return NULL;
}
int nvram_unset(const char *name)
{
return -1;
}