DORMANTno replies

[Patch] net: move ifenslave from Documentation/networking to tools/networking

From: Cong Wang <hidden>
Date: 2012-02-01 09:09:40
Subsystem: documentation, networking [general], the rest · Maintainers: Jonathan Corbet, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

ifenslave is a real tool, and it seems main distros already ship this.
It is nice to move it to tools/networking/ directory.

(Note that this patch is generated by 'git diff -C', in case of having
a large patch.)

Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: WANG Cong <redacted>

---
 Documentation/networking/Makefile               |    8 --------
 tools/networking/Makefile                       |   11 +++++++++++
 {Documentation => tools}/networking/ifenslave.c |    0
 3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile
index 24c308d..7284363 100644
--- a/Documentation/networking/Makefile
+++ b/Documentation/networking/Makefile
@@ -1,12 +1,4 @@
 # kbuild trick to avoid linker error. Can be omitted if a module is built.
 obj- := dummy.o
 
-# List of programs to build
-hostprogs-y := ifenslave
-
-HOSTCFLAGS_ifenslave.o += -I$(objtree)/usr/include
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
 obj-m := timestamping/
diff --git a/tools/networking/Makefile b/tools/networking/Makefile
new file mode 100644
index 0000000..ccc1df9
--- /dev/null
+++ b/tools/networking/Makefile
@@ -0,0 +1,11 @@
+
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -Wall -Wstrict-prototypes
+RM := rm -f
+
+all: ifenslave
+ifenslave: ifenslave.c
+	$(CC) $(CFLAGS) -o $@ $^
+clean:
+	$(RM) ifenslave
+
diff --git a/Documentation/networking/ifenslave.c b/tools/networking/ifenslave.c
similarity index 100%
rename from Documentation/networking/ifenslave.c
rename to tools/networking/ifenslave.c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help