[uClibc] WTools Makefile fix

Jean Tourrilhes jt at bougret.hpl.hp.com
Wed Nov 17 00:04:27 UTC 2004


	Hi,

	Please find below a patch to the wtool makefile that make it
work with various versions of Wireless Tools...

	Comments :
	o The "-I." in CFLAGS is an unfortunate bug of v27, I'll fix
that in v28-pre2. Promised ;-)
	o If you really want to use v26, you *need* to set the
$(KERNEL_SRC) variable on the make command line, otherwise the Tools
and the kernel will mismatch. Something like
"KERNEL_SRC=$(LINUX_SOURCE_DIR)". But, as v27 fixes this problem for
good, I did not bother.
	o If you want to get rid of the dependancy on libm, there is
an option for that.

	Have fun...

	Jean

------------------------------------------------------

--- buildroot/package/wtools/wtools.mk-old	Tue Nov 16 15:02:28 2004
+++ buildroot/package/wtools/wtools.mk	Tue Nov 16 15:13:55 2004
@@ -3,9 +3,20 @@
 # wtools - Wireless Tools
 #
 #############################################################
-WTOOLS_VER:=26
+
+# Pick your version of the Wireless Tools
+# v26 -> obsolete ; won't compile with proper WE because $(KERNEL_SRC) not set
+#WTOOLS_VER:=26
+#WTOOLS_SUBVER:=
+# v27 -> latest stable ; multi WE
+#WTOOLS_VER:=27
+#WTOOLS_SUBVER:=
+# v28.pre1 -> latest
+WTOOLS_VER:=28
+WTOOLS_SUBVER:=.pre1
+
 WTOOLS_SOURCE_URL:=http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux
-WTOOLS_SOURCE:=wireless_tools.$(WTOOLS_VER).tar.gz
+WTOOLS_SOURCE:=wireless_tools.$(WTOOLS_VER)$(WTOOLS_SUBVER).tar.gz
 WTOOLS_BUILD_DIR=$(BUILD_DIR)/wireless_tools.$(WTOOLS_VER)
 
 $(DL_DIR)/$(WTOOLS_SOURCE):
@@ -20,7 +31,7 @@ $(WTOOLS_BUILD_DIR)/.configured: $(WTOOL
 
 $(WTOOLS_BUILD_DIR)/iwconfig: $(WTOOLS_BUILD_DIR)/.configured
 	$(MAKE) -C $(WTOOLS_BUILD_DIR) \
-		CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
+		CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -I." \
 		BUILD_SHARED=y # may want to make this an option
 
 $(TARGET_DIR)/sbin/iwconfig: $(WTOOLS_BUILD_DIR)/iwconfig



More information about the uClibc mailing list