Skip to contentSkip to conversation

nes: kernel build infrastructure

PATCH Superseded [email protected] 2 participants 2 messages Aug 8, 2007 – Aug 9, 2007

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 14/14 nes: kernel build infrastructure

Makefile kernel build file.

---

drivers/infiniband/hw/nes/Makefile renamed from NULL +10 -0
diff -Nurp NULL ofa_kernel-1.2/drivers/infiniband/hw/nes/Makefile
@@ -0,0 +1,10 @@
+ifdef CONFIG_INFINIBAND_NES_DEBUG
+EXTRA_CFLAGS += -DNES_DEBUG
+endif
+
+EXTRA_CFLAGS += -DNES_MINICM
+
+obj-$(CONFIG_INFINIBAND_NES) += iw_nes.o
+
+iw_nes-objs := nes.o nes_hw.o nes_nic.o nes_utils.o nes_verbs.o nes_cm.o
+
#1 lore raw

drivers/infiniband/hw/nes/Makefile line 3

Quoted 3 lines
drivers/infiniband/hw/nes/Makefile renamed from NULL +3 -0
+ifdef CONFIG_INFINIBAND_NES_DEBUG
+EXTRA_CFLAGS += -DNES_DEBUG
+endif

I would just use the CONFIG_INFINIBAND_NES_DEBUG symbol directly in your code.

Quoted 1 line

+EXTRA_CFLAGS += -DNES_MINICM

If you're defining this unconditionally, can you just get rid of all the tests of this symbol?

- R.