Skip to contentSkip to conversation

cleanup building the new tests

PATCH New John Kacur 1 participant 4 messages Dec 14, 2009 Kbuild

lore
Share & tools
lore

John Kacur

author
#0 lore raw

cover cleanup building the new tests

Clark - please pull the following patches from
git://git.kernel.org/pub/scm/linux/kernel/git/jkacur/rt-tests.git
branch: rt-tests-dev

Note that the previous set is also merged in the rt-tests-dev branch, so you can pull everything from there.

John Kacur (3):
The PHONY target for install is incorrectly specified as "all" Remove making of backfire kernel module from the rt-tests makefile
The kernel module can be made by cding to src/backfire and doing make modules sudo make modules_install
Add a .gitignore file in the backfire directory for generated files.

 Makefile                |    6 ++----
 src/backfire/.gitignore |    5 +++++
 2 files changed, 7 insertions(+), 4 deletions(-)
 create mode 100644 src/backfire/.gitignore
author
#1 lore raw

PATCH 1/3 The PHONY target for install is incorrectly specified as "all"

Change the PHONY target for install to install

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index 3a85336..d19c992 100644
@@ -69,7 +69,7 @@ distclean: clean
 changelog:
 	git log >ChangeLog
 
-.PHONY: all
+.PHONY: install
 install: all
 	mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man4"
 	mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8"
Signature · 1 line
1.6.5.2
author
#2 lore raw

PATCH 2/3 Remove making of backfire kernel module from the rt-tests makefile The kernel module can be made by cding to src/backfire and doing make modules sudo make modules_install

---
 Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
Makefile +1 -3
index d19c992..8e44ec5 100644
@@ -75,9 +75,7 @@ install: all
 	mkdir -p "$(DESTDIR)$(bindir)" "$(DESTDIR)$(mandir)/man8"
 	cp $(TARGETS) "$(DESTDIR)$(bindir)"
 	mkdir -p "$(DESTDIR)$(srcdir)/backfire"
-	sed s/__VERSION_STRING__/$(VERSION_STRING)/ <src/backfire/backfire.c >"$(DESTDIR)$(srcdir)/backfire/backfire.c"
-	cp src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire"
-	gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz
+	gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz"
 	gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz"
 	gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz"
 	gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz"
Signature · 1 line
1.6.5.2
author
#3 lore raw

PATCH 3/3 Add a .gitignore file in the backfire directory for generated files.

Add a .gitignore file in the backfire directory for generated files that are created when making the kernel module.

---
 src/backfire/.gitignore |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 src/backfire/.gitignore
src/backfire/.gitignore new file +5 -0
new file mode 100644
index 0000000..9af500d
@@ -0,0 +1,5 @@
+Module.symvers
+backfire.ko
+backfire.mod.c
+modules.order
+
Signature · 1 line
1.6.5.2