From 591ed47b9b30feab8d3297cfe363b2bf3f29a634 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 13 Mar 2015 16:58:54 +0000 Subject: [PATCH] ts-kernel-build: Document a hacky way to get CONFIG_... options Signed-off-by: Ian Jackson --- ts-kernel-build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ts-kernel-build b/ts-kernel-build index b2f19cf..93903d9 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -52,6 +52,19 @@ END } } +# Some runes for finding out what might be missing +# +# On working boot (eg Debian kernel eg before ts-xen-install): +# lsmod | perl -ne 'm/^\w+/ or die; push @e, "+= $&\\.o" if $& ne +# "Module"; END { print "git-grep '\''"; print join "\\|", @e; +# print "'\'' | perl -ne '\'' print \"# \",\$&,\" is not set\\n\" +# if m/\\bCONFIG_[0-9A-Z_]+\\b/ '\''\n" }' +# This prints a big git-grep | perl rune +# Run said rune in a clone of linux.git +# Output of git-grep |perl rune is list of "# CONFIG_... is not set" +# Copy to a file on relevant host, and grep the osstest kernel's config +# grep -f t /boot/config-3.14.34+ |less + our $config_hardware= <