summaryrefslogtreecommitdiffstats
path: root/patches/latencytop-0.5
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2010-05-07 23:34:05 +0200
committerRemy Bohmer <linux@bohmer.net>2010-06-02 21:09:28 +0200
commit40029fde95ec6a40f987232efabeb2576398904a (patch)
tree8586a241b1892e2c7df85db1fe972dedcfc44677 /patches/latencytop-0.5
parent420eb234b5d1f657ebcf6596a2a9835326b45c8b (diff)
downloadptxdist-40029fde95ec6a40f987232efabeb2576398904a.tar.gz
ptxdist-40029fde95ec6a40f987232efabeb2576398904a.tar.xz
[latencytop] add new packet
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'patches/latencytop-0.5')
-rw-r--r--patches/latencytop-0.5/repair-cross-compile.patch30
-rw-r--r--patches/latencytop-0.5/series1
2 files changed, 31 insertions, 0 deletions
diff --git a/patches/latencytop-0.5/repair-cross-compile.patch b/patches/latencytop-0.5/repair-cross-compile.patch
new file mode 100644
index 000000000..542c7c44b
--- /dev/null
+++ b/patches/latencytop-0.5/repair-cross-compile.patch
@@ -0,0 +1,30 @@
+Adapt the Makefile for Cross-compilation
+
+Signed-off-by: Remy Bohmer <linux@bohmer.net>
+---
+ Makefile | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+Index: latencytop-0.5/Makefile
+===================================================================
+--- latencytop-0.5.orig/Makefile
++++ latencytop-0.5/Makefile
+@@ -26,14 +26,16 @@ endif
+
+ # We write explicity this "implicit rule"
+ %.o : %.c
+- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
++ $(CC) -c $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) $< -o $@
+
+ latencytop: $(OBJS) latencytop.h Makefile
+- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LDF) -o latencytop
+
++.PHONY: clean
+ clean:
+ rm -f *~ latencytop DEADJOE *.o
+
++.PHONY: install
+ install: latencytop
+ mkdir -p $(DESTDIR)/usr/share/latencytop
+ install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
diff --git a/patches/latencytop-0.5/series b/patches/latencytop-0.5/series
new file mode 100644
index 000000000..3da175e99
--- /dev/null
+++ b/patches/latencytop-0.5/series
@@ -0,0 +1 @@
+repair-cross-compile.patch