Skip to content

Commit

Permalink
wireless-tools: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jul 14, 2023
1 parent 79297fb commit 74d2f39
Show file tree
Hide file tree
Showing 83 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion trunk/user/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ dir_$(CONFIG_FIRMWARE_INCLUDE_IPSET) += ipset
endif
dir_y += ebtables
dir_y += iproute2
dir_y += wireless_tools
dir_y += wireless-tools
dir_y += shared
dir_$(STORAGE_ENABLED) += libdisk
dir_y += nvram
Expand Down
3 changes: 1 addition & 2 deletions trunk/user/httpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ include $(SHDIR)/boards.mk
include $(SHDIR)/cflags.mk

CFLAGS += -Wall -I. -I$(SHDIR) -I$(SHDIR)/include
CFLAGS += -I$(USERDIR)/wireless_tools

LDFLAGS += -L. -lm
LDFLAGS += -L$(SHDIR) -lshared
LDFLAGS += -L$(USERDIR)/wireless_tools -liw
LDFLAGS += -liw
ifeq ($(STORAGE_ENABLED),y)
CFLAGS += -I$(USERDIR)/libdisk
LDFLAGS += -L$(USERDIR)/libdisk -ldisk
Expand Down
3 changes: 1 addition & 2 deletions trunk/user/rc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ include $(SHDIR)/boards.mk
include $(SHDIR)/cflags.mk

CFLAGS += -s -I. -I$(SHDIR) -I$(SHDIR)/include
CFLAGS += -I$(USERDIR)/wireless_tools
CFLAGS += -I$(ROOTDIR)/$(LINUXDIR)/include/ralink

# Disable/Enable ugly httpd_check
#CFLAGS += -DHTTPD_CHECK

LDFLAGS += -L. -lm
LDFLAGS += -L$(USERDIR)/wireless_tools -liw
LDFLAGS += -liw
LDFLAGS += -L$(SHDIR) -lshared
ifeq ($(STORAGE_ENABLED),y)
CFLAGS += -I$(USERDIR)/libdisk
Expand Down
19 changes: 19 additions & 0 deletions trunk/user/wireless-tools/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
include $(ROOTDIR)/rules.mk

PKG_NAME:=wireless-tools

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

MAKE_INSTALL_FLAGS += PREFIX=$(STAGING_DIR)

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

romfs:
$(INSTALL_DIR) $(ROMFSDIR)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwpriv $(ROMFSDIR)/bin/iwpriv
ifndef BUILD_STATIC
$(INSTALL_DIR) $(ROMFSDIR)/lib
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(ROMFSDIR)/lib/
endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions trunk/user/wireless_tools/.gitignore

This file was deleted.

0 comments on commit 74d2f39

Please sign in to comment.