2006-12-19 00:17:44 +01:00
|
|
|
SUSE specific kernel provides/requires scripts
|
|
|
|
|
2013-07-12 16:11:14 +02:00
|
|
|
--- scripts/find-provides.ksyms.orig 2013-07-12 14:08:40.000000000 +0000
|
|
|
|
+++ scripts/find-provides.ksyms 2013-07-12 14:08:54.000000000 +0000
|
|
|
|
@@ -0,0 +1,17 @@
|
|
|
|
+#! /bin/bash
|
2006-12-19 00:17:44 +01:00
|
|
|
+
|
|
|
|
+IFS=$'\n'
|
|
|
|
+
|
2009-06-12 16:15:38 +02:00
|
|
|
+while read f; do
|
|
|
|
+ test -e "$f" || continue
|
|
|
|
+ case "$f" in
|
|
|
|
+ *.debug)
|
|
|
|
+ ;;
|
2013-07-12 16:11:14 +02:00
|
|
|
+ */boot/vmlinu[xz]-*)
|
|
|
|
+ flavor=${f##*/vmlinu[xz]-}
|
|
|
|
+ flavor=${flavor%.gz}
|
|
|
|
+ echo "kernel-uname-r = $flavor"
|
2009-06-12 16:15:38 +02:00
|
|
|
+ ;;
|
|
|
|
+ esac
|
2006-12-19 00:17:44 +01:00
|
|
|
+done \
|
|
|
|
+| sort -u
|
2013-07-12 16:11:14 +02:00
|
|
|
--- scripts/find-requires.ksyms.orig 2013-07-12 14:08:45.000000000 +0000
|
|
|
|
+++ scripts/find-requires.ksyms 2013-07-12 14:08:33.000000000 +0000
|
|
|
|
@@ -0,0 +1,15 @@
|
2006-12-19 00:17:44 +01:00
|
|
|
+#! /bin/bash
|
|
|
|
+
|
|
|
|
+IFS=$'\n'
|
|
|
|
+
|
2013-07-12 16:11:14 +02:00
|
|
|
+while read f; do
|
|
|
|
+ test -e "$f" || continue
|
|
|
|
+ case "$f" in
|
|
|
|
+ */lib/modules/*/*.ko | */lib/modules/*/*.ko.gz)
|
|
|
|
+ flavor=${f#*/lib/modules/}
|
|
|
|
+ flavor=${f%%/*}
|
|
|
|
+ echo "kernel-uname-r = $flavor"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+done \
|
|
|
|
+| sort -u
|
2013-01-09 10:46:46 +01:00
|
|
|
--- scripts/Makefile.am
|
|
|
|
+++ scripts/Makefile.am
|
|
|
|
@@ -15,6 +15,7 @@
|
|
|
|
rpmdb_loadcvt rpm.daily rpm.log rpm.supp rpm2cpio.sh \
|
|
|
|
tcl.req tgpg vpkg-provides.sh \
|
|
|
|
find-requires.php find-provides.php \
|
|
|
|
+ find-requires.ksyms find-provides.ksyms \
|
|
|
|
find-php-provides find-php-requires \
|
|
|
|
mono-find-requires mono-find-provides \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
|
|
@@ -30,6 +31,7 @@
|
|
|
|
check-buildroot check-rpaths check-rpaths-worker \
|
|
|
|
find-lang.sh \
|
|
|
|
perl.prov perl.req perldeps.pl pythondeps.sh osgideps.pl \
|
|
|
|
+ find-requires.ksyms find-provides.ksyms \
|
|
|
|
mono-find-requires mono-find-provides \
|
|
|
|
pkgconfigdeps.sh libtooldeps.sh \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|