summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/kmod/kmod/ptest.patch
blob: 831dbcb909b7e448ac7356b6e3f5abc3af1ee2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Add 'install-ptest' rule.

Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Upstream-Status: Pending

diff -ruN a/Makefile.am b/Makefile.am
--- a/Makefile.am	2013-07-12 17:11:05.278331557 +0200
+++ b/Makefile.am	2013-07-12 17:14:27.033788016 +0200
@@ -204,6 +204,16 @@
 
 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
 
+install-ptest:
+	@$(MKDIR_P) $(DESTDIR)/testsuite
+	@for file in $(TESTSUITE); do \
+		install $$file $(DESTDIR)/testsuite; \
+	done;
+	@sed -e 's/^Makefile/_Makefile/' < Makefile > $(DESTDIR)/Makefile
+	@$(MKDIR_P) $(DESTDIR)/tools
+	@cp $(noinst_SCRIPTS) $(noinst_PROGRAMS) $(DESTDIR)/tools
+	@cp -r testsuite/rootfs testsuite/.libs $(DESTDIR)/testsuite
+
 # ------------------------------------------------------------------------------
 # custom release helpers
 # ------------------------------------------------------------------------------