Debian's rt-tests patches
cover Debian's rt-tests patches
Hi Clark,
here come two patches I use for packaging rt-tests for Debian. Actually I have two more patches[*1*], but one of them is Debian specific and the other one installs hwlatdetect to /usr/sbin instead of /usr/lib/pythonX.Y/site-packages + a symlink as this confuses debhelper. Maybe the right approach is to install a script to /usr/sbin that just does
exec python -m hwlatdetect
?! Another thing I do in the Debian packages is using dkms for building the backfire kernel module at install time. I don't know how this works with Redhat's Linux distributions though.
I'll send the two patches that I think are ready for you to include as a reply to this mail. Diffstat, shortlog and an URL to pull these two are included below.
Best regards
Uwe
[*1*] see http://patch-tracker.debian.org/package/rt-tests/0.71-1
The following changes since commit 886d26833d637ab778023626a158061e4eb9c5d0:
version bump to 0.72 (2010-06-25 16:16:46 -0500)
are available in the git repository at:
git://git.pengutronix.de/git/ukl/rt-tests.git for-clark
Uwe Kleine-König (2):
modernize backfire's Makefile
install backfire's Makefile
Makefile | 1 + src/backfire/Makefile | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-)
Signature · 6 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/2 modernize backfire's Makefile
- don't rely on non-standard envvar PWD, use make's CURDIR instead
- allow overwriting KERNELDIR
- less repetition by conflating targets
- explicitly differentiate between kbuild and ordinary make part
--- src/backfire/Makefile | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-)
src/backfire/Makefile +12 -9
@@ -1,14 +1,17 @@ +# If KERNELRELEASE is defined, we've been invoked from the +# kernel build system and can use its language +ifneq ($(KERNELRELEASE),) obj-m := backfire.o -all: modules modules_install - @echo Done +# otherwise we were called directly from the command +# line; invoke the kernel build system. +else +KERNELDIR ?= /lib/modules/$(shell uname -r)/build -modules: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules +modules modules_install clean:: + make -C $(KERNELDIR) M=$(CURDIR) $@ -modules_install: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install +clean:: + rm -f *.o Module.markers modules.order -clean: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean - @rm -f *.o Module.markers modules.order +endif
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 install backfire's Makefile
In reply to Uwe Kleine-KönigOnly installing backfire.c hardly makes sense.
--- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
@@ -120,6 +120,7 @@ install: all fi mkdir -p "$(DESTDIR)$(srcdir)/backfire" install -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" + install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile" 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"
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 31 lines · On Thu, 1 Jul 2010 07:24:30 +0200 Uwe Kleine-König…
Hi Clark,
here come two patches I use for packaging rt-tests for Debian. Actually I have two more patches[*1*], but one of them is Debian specific and the other one installs hwlatdetect to
/usr/sbininstead of/usr/lib/pythonX.Y/site-packages+ a symlink as this confuses debhelper. Maybe the right approach is to install a script to/usr/sbinthat just doesexec python -m hwlatdetect
?! Another thing I do in the Debian packages is using dkms for building the backfire kernel module at install time. I don't know how this works with Redhat's Linux distributions though.
I'll send the two patches that I think are ready for you to include as a reply to this mail. Diffstat, shortlog and an URL to pull these two are included below.
Best regards
Uwe[*1*] see http://patch-tracker.debian.org/package/rt-tests/0.71-1
The following changes since commit
886d26833d637ab778023626a158061e4eb9c5d0:version bump to 0.72 (2010-06-25 16:16:46 -0500)
are available in the git repository at:
git://git.pengutronix.de/git/ukl/rt-tests.gitfor-clark
Quoted 7 lines
Uwe Kleine-König (2):
modernize backfire'sMakefile
install backfire'sMakefileMakefile | 1 + src/backfire/Makefile | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-)
Thanks Uwe, I'll try and get these merged after the holiday this weekend.
Clark