Skip to content

Commit

Permalink
wireless-tools: build multicall version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 26, 2023
1 parent 0aab242 commit 37e26b0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions trunk/user/wireless-tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
include $(ROOTDIR)/rules.mk

PKG_NAME:=wireless-tools

PKG_INSTALL:=1
PKG_VERSION:=30

include $(INCLUDE_DIR)/package.mk

MAKE_INSTALL_FLAGS += PREFIX=$(STAGING_DIR)

define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -I." \
BUILD_WE_ESSENTIAL=y \
LIBS="-lm -Wl,--gc-sections" \
libiw.so.$(PKG_VERSION) iwmulticall
$(MAKE) -C $(PKG_BUILD_DIR) \
$(MAKE_INSTALL_FLAGS) \
install-dynamic install-hdr
endef

$(eval $(call BuildPackage,wireless-tools))

romfs:
$(INSTALL_DIR) $(ROMFSDIR)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwpriv $(ROMFSDIR)/bin/iwpriv
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwmulticall $(ROMFSDIR)/bin/iwconfig
$(LN) iwconfig $(ROMFSDIR)/bin/iwlist
$(LN) iwconfig $(ROMFSDIR)/bin/iwpriv
ifndef BUILD_STATIC
$(INSTALL_DIR) $(ROMFSDIR)/lib
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(ROMFSDIR)/lib/
Expand Down

0 comments on commit 37e26b0

Please sign in to comment.