Files
poky/meta/recipes-kernel/lttng/lttng-modules/0011-Add-release-maintainer-script.patch
Bruce Ashfield e6cb075cd3 lttng-modules: add post 2.11.6 patches
To fix building against the latest 5.4.x kernels (and other versions
as well), we import the lttng patches that have been added since the
2.11.6 release.

When 2.11.7 is released, we can drop these patches and go with the
release tarball.

(From OE-Core rev: ea7e3c47af4191e69d54fc519865d125ed61d8eb)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-12-09 23:49:01 +00:00

60 lines
1.4 KiB
Diff

From 22ffa48439e617a32556365e00827fba062c5688 Mon Sep 17 00:00:00 2001
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Mon, 23 Nov 2020 10:49:57 -0500
Subject: [PATCH 11/16] Add release maintainer script
Upstream-Status: Backport
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
scripts/maintainer/do-release.sh | 37 ++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100755 scripts/maintainer/do-release.sh
diff --git a/scripts/maintainer/do-release.sh b/scripts/maintainer/do-release.sh
new file mode 100755
index 00000000..e0cec167
--- /dev/null
+++ b/scripts/maintainer/do-release.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# invoke with do-release 2.N.M, or 2.N.M-rcXX
+
+REL=$1
+SRCDIR=~/git/lttng-modules
+# The output files are created in ${HOME}/stable/
+OUTPUTDIR=${HOME}/stable
+
+if [ x"$1" = x"" ]; then
+ echo "1 arg : VERSION";
+ exit 1;
+fi
+
+cd ${OUTPUTDIR}
+
+echo Doing LTTng modules release ${REL}
+
+mkdir lttng-modules-${REL}
+cd lttng-modules-${REL}
+cp -ax ${SRCDIR}/. .
+
+#cleanup
+make clean
+git clean -xdf
+
+for a in \*.orig \*.rej Module.markers Module.symvers; do
+ find . -name "${a}" -exec rm '{}' \;;
+done
+for a in outgoing .tmp_versions .git .pc; do
+ find . -name "${a}" -exec rm -rf '{}' \;;
+done
+
+cd ..
+tar cvfj lttng-modules-${REL}.tar.bz2 lttng-modules-${REL}
+mksums lttng-modules-${REL}.tar.bz2
+signpkg lttng-modules-${REL}.tar.bz2
--
2.25.1