[kernel] r12454 - dists/trunk/firmware-nonfree/bnx2/fwcutter

Bastian Blank waldi at alioth.debian.org
Fri Nov 28 10:26:17 UTC 2008


Author: waldi
Date: Fri Nov 28 10:25:43 2008
New Revision: 12454

Log:
bnx2/fwcutter/Makefile: Generate stripped down definitions.


Modified:
   dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile

Modified: dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile
==============================================================================
--- dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile	(original)
+++ dists/trunk/firmware-nonfree/bnx2/fwcutter/Makefile	Fri Nov 28 10:25:43 2008
@@ -7,18 +7,22 @@
 endif
 
 ifeq "$(test)" " source version"
-CFLAGS += -I$(KERNEL_SOURCE)/drivers/net
+CFLAGS += -I$(KERNEL_SOURCE)/include -I$(KERNEL_SOURCE)/drivers/net
 CFLAGS += --std=gnu99
 LDFLAGS += -lz
 
 all: bnx2_fwcutter_$(KERNEL_VERSION)
 
-bnx2_fwcutter_$(KERNEL_VERSION): bnx2_fwcutter_$(KERNEL_VERSION).c bnx2_fwcutter.c
+bnx2_fwcutter_$(KERNEL_VERSION): bnx2_fwcutter_$(KERNEL_VERSION).c bnx2_fwcutter_$(KERNEL_VERSION).h bnx2_fwcutter.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+bnx2_fwcutter_$(KERNEL_VERSION).h: $(KERNEL_SOURCE)/drivers/net/bnx2.h
+	grep "^#define BNX2" $^ > $@
 else
 all:
 	$(error Please define KERNEL_SOURCE and KERNEL_VERSION)
 endif
 
+clean: ALL = $(basename $(wildcard bnx2_fwcutter_*.c))
 clean:
-	rm -f $(basename $(wildcard bnx2_fwcutter_*.c))
+	rm -f $(ALL) $(ALL:=.h)



More information about the Kernel-svn-changes mailing list