Skip to contentSkip to conversation

Wimax - Makefile & Kconfig patch

PATCH Sam Ravnborg 2 participants 2 messages Dec 21, 2008 – Dec 22, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Inaky.

Noticed your wimax patchset when I browsed netdev on marc.info. A few comments:

drivers/net/Makefile +1 -0
index f19acf8..3ac378f 100644
@@ -262,3 +262,4 @@ obj-$(CONFIG_NIU) += niu.o
 obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
 obj-$(CONFIG_SFC) += sfc/
 
+obj-y += wimax/

There is no reason to visit this directory if WIMAX is not enabled so change it to:

obj-$(CONFIG_WIMAX) += wimax/

drivers/net/wimax/i2400m/Kconfig new file +6 -0
new file mode 100644
index 0000000..e977c46
@@ -0,0 +1,49 @@
+
+config WIMAX_I2400M
+        tristate
+	depends on WIMAX
+        select FW_LOADER
+

Above and in several other spots in the Kconfig
file you mix use of spaces and tabs for ident.
Please use tabs consistent and remember to indent
help text with:
<tab><space><space>

drivers/net/wimax/i2400m/Makefile new file +13 -0
new file mode 100644
index 0000000..2e8c15b
@@ -0,0 +1,29 @@
+
+obj-$(CONFIG_WIMAX_I2400M) += i2400m.o
+obj-$(CONFIG_WIMAX_I2400M_USB) += i2400m-usb.o
+obj-$(CONFIG_WIMAX_I2400M_SDIO) += i2400m-sdio.o
+
+i2400m-objs :=		\
+	control.o	\
+	driver.o	\
+	fw.o		\
+	op-rfkill.o	\
+	netdev.o	\
+	tx.o		\
+	rx.o

It is recommended to use:

i2400m-y := control.o
i2400m-y += driver.o

The important point here is that -y is preferred over -objs.

If you use '\' or '+=' is more personal preferences.

Sam

#1 lore raw
Quoted 4 lines · Sam Ravnborg

Hi Inaky.

Noticed your wimax patchset when I browsed netdev on marc.info. A few comments:

Thanks, I'll work on the changes.

Signature · 1 line
Inaky