aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2015-10-23Merge branch 'topic/hw-constraint-single' into for-nextTakashi Iwai1-2/+2
2015-10-21KEYS: Provide a script to extract a module signatureDavid Howells1-0/+136
The supplied script takes a signed module file and extracts the tailmost signature (there could theoretically be more than one) and dumps all or part of it or the unsigned file to stdout. Call as: scripts/extract-module-sig.pl -[0adnks] module-file >out where the initial flag indicates which bit of the signed file you want dumping to stdout: (*) "-0". Dumps the unsigned data with the signature stripped. (*) "-a". Dumps all of the signature data, including the magic number. (*) "-d". Dumps the signature information block as a sequence of decimal numbers in text form with spaces between (crypto algorithm type, hash type, identifier type, signer's name length, key identifier length and signature length). (*) "-n". Dumps the signer's name contents. (*) "-k". Dumps the key identifier contents. (*) "-s". Dumps the cryptographic signature contents. In the case that the signature is a PKCS#7 (or CMS) message, -n and -k will print a warning to stderr and dump nothing to stdout, but will otherwise complete okay; the entire PKCS#7/CMS message will be dumped by "-s"; and "-d" will show "0 0 2 0 0 <pkcs#7-msg-len>". Signed-off-by: David Howells <[email protected]>
2015-10-21KEYS: Provide a script to extract the sys cert list from a vmlinux fileDavid Howells1-0/+144
The supplied script takes a vmlinux file - and if necessary a System.map file - locates the system certificates list and extracts it to the named file. Call as: ./scripts/extract-sys-certs vmlinux certs if vmlinux contains symbols and: ./scripts/extract-sys-certs -s System.map vmlinux certs if it does not. It prints something like the following to stdout: Have 27 sections No symbols in vmlinux, trying System.map Have 80088 symbols Have 1346 bytes of certs at VMA 0xffffffff8201c540 Certificate list in section .init.data Certificate list at file offset 0x141c540 If vmlinux contains symbols then that is used rather than System.map - even if one is given. Signed-off-by: David Howells <[email protected]>
2015-10-20kconfig: Fix copy&paste errorMichal Sojka1-1/+1
Fixes: 31847b67bec0 ("kconfig: allow use of relations other than (in)equality") Signed-off-by: Michal Sojka <[email protected]> Reviewed-by: Jan Beulich <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-20ALSA: hda - Add hduadio support to DEVTABLESubhransu S. Prusty2-0/+22
For generating modalias entries automatically, move the definition of struct hda_device_id to linux/mod_devicetable.h and add the handling of this record in file2alias helper. The new modalias is represented with combination of vendor id, device id, and api version as "hdaudio:vNrNaN". This patch itself doesn't convert the existing modaliases. Since they were added manually, this patch won't give any regression by itself at this point. [Modified the modalias format to adapt the api_version field, and drop invalid ANY_ID definition by tiwai] Signed-off-by: Subhransu S. Prusty <[email protected]> Reviewed-by: Vinod Koul <[email protected]> Tested-by: Subhransu S Prusty <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
2015-10-17ver_linux: proc/modules, limit text processing to 'sed'Alexander Kapshuk1-4/+13
This patch is more of a personal preference, rather than a fix for a problem. The current implementation used a combination of both 'cat' and 'sed' to generate an unsorted list of kernel modules separated by while space. The proposed implementation uses 'sort' and 'sed' to generate a sort list of kernel modules separated by while space. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: wireless-tools, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: use 'udevadm', instead of 'udevinfo'Alexander Kapshuk1-1/+6
'udevinfo' no longer seems to be available across various distros. 'udevadm' seems to be the currently valid way to look up the 'udev' version. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: sh-utils, look for numerical input, not field numberAlexander Kapshuk1-1/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: loadkeys, look for numerical input, not field numberAlexander Kapshuk1-7/+6
'loadkeys -h' no longer prints the version number across all distros, despite the claim to do so in the manpage, which I found to be the case on a Debian Linux system. The proposed implementation utilises the output of 'loadkeys -V' to acquire the version of both 'Kbd' and 'Console-tools'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: net-tools, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: procps, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: libcpp, fix missing outputAlexander Kapshuk1-3/+12
Neither 'libg++.so', nor 'libstdc++.so' were found where the current implementation expects them to be found in the distros below. Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Which results in zero ouput generated. The proposed implementation relies on 'ldconfig' to locate the libraries in question. 'Sed' is used to do the text processing. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: ldd, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'head' + 'awk'. The '-v' flag either seems to have been deprecated in some distros, e.g. Gentoo, or is an alias for '--version' in others. The proposed implementation uses the latter flag only. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: libc, input redirection to sed fails in some distrosAlexander Kapshuk1-2/+6
The current implementation has been found not to work across all distros. The proposed implementation relies on 'sed' to both output the string 'Linux C Library' as well as to open '/proc/self/maps' without having to use output redirection. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Arch Linux openSuSE 13.2 Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: ppp, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Tested on: Oracle Linux Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: quota-tools, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: pcmciautils, look for numerical input, not field numberAlexander Kapshuk1-1/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: xfsprogs, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: reiserfsprogs, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: jfsutils, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'sed' + 'awk'. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: e2fsprogs, look for numerical input, not field numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Proposed implementation also eliminates the necessity to invoke 'grep' + 'sed' + 'awk'. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: module-init-tools, look for numerical input, not field numberAlexander Kapshuk1-1/+6
Rely on regex to find the version number, rather than rely on numerical input to be found in a particular input field. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: util-linux, 'fdformat' not ubiquitous any longerAlexander Kapshuk1-5/+6
The current implementation relies on 'fdformat' to output the version of 'util-linux'. This does not seem to be reliable any longer, as 'fdformat' does not seem to come preinstalled in all ditros these days. The proposed implementation uses 'mount' to output both the version of 'util-linux' and 'mount' proper, as 'mount' is also a part of the 'util-linux' package. Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number, rather than a field number. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: binutils, fix inaccurate outputAlexander Kapshuk1-1/+6
Current implementation output on Gentoo Linux: binutils 2.25.1 1.1 2.25.1 Proposed implementation: Binutils 2.25.1 Tested on: Gentoo Linux Debian 6.0.10 Oracle Linux Server release 7.1 Rely on regex to find the version number. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: make --version, use regex to find version numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than a field number. Reduce the number of 'awk' invocations from two to one. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-17ver_linux: gcc -dumpversion, use regex to find version numberAlexander Kapshuk1-2/+6
Rely on regex to find the version number, rather than a field number. Signed-off-by: Alexander Kapshuk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-16builddeb: remove debian/files before buildRiku Voipio1-2/+2
Commit 3716001bcb7f ("deb-pkg: add source package") added the ability to create a debian changelog file. This exposed that previously the builddeb script hasn't cleared debian/files between builds. As debian/files keeps accumulating entries, the changes file will end up growing indefinelty. With outdated entries in debian/files, builddeb script will exit with failure. This regression impacts those who use "make deb-pkg" target to build kernel into a .deb package and never use "make mrproper" or other means to clean kernel tree from generated directories. To fix the regression, remove debian/files before starting build and in the generated clean rule. Fixes: 3716001bcb7f ("deb-pkg: add source package") Signed-off-by: Riku Voipio <[email protected]> Reported-by: Doug Smythies <[email protected]> Tested-by: Doug Smythies <[email protected]> Tested-by: Kalle Valo <[email protected]> Acked-by: Ben Hutchings <[email protected]> Cc: Michal Marek <[email protected]> Cc: maximilian attems <[email protected]> Cc: Chris J Arges <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2015-10-15scripts/kconfig/Makefile: Fix KBUILD_DEFCONFIG check when building with O=Michael Ellerman1-1/+1
My recent commit d2036f30cfe1 ("scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target"), contained a bug in that when it checks if KBUILD_DEFCONFIG is a file it forgets to prepend $(srctree) to the path. This causes the build to fail when building out of tree (with O=), and when the value of KBUILD_DEFCONFIG is 'defconfig'. In that case we will fail to find the 'defconfig' file, because we look in the build directory not $(srctree), and so we will call Make again with 'defconfig' as the target. From there we loop infinitely calling 'make defconfig' again and again. The fix is simple, we need to look for the file under $(srctree). Fixes: d2036f30cfe1 ("scripts/kconfig/Makefile: Allow KBUILD_DEFCONFIG to be a target") Reported-by: Olof Johansson <[email protected]> Acked-by: Michal Marek <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
2015-10-14kconfig/merge_config.sh: Accept a single fileGabriel de Perthuis1-1/+1
merge_config.sh can usefully be applied to a single file. It implicitly merges with the default configuration. Signed-off-by: Gabriel de Perthuis <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14kconfig/merge_config.sh: Support KCONFIG_CONFIGGabriel de Perthuis1-4/+12
All make targets support $KCONFIG_CONFIG because they run scripts/kconf. Make sure merge_config.sh accesses the correct file in all cases. Previously this script broke in two different code paths, one for targets like kvmconfig (which use merge_config.sh -m then call a target that respects KCONFIG_CONFIG) and one for direct use of the script without -m, which called make rules that edit KCONFIG_CONFIG but verified a different file. Signed-off-by: Gabriel de Perthuis <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Update the buildsystem for KConfig finding QtThiago Macieira1-45/+28
The buildsystem will now only search for Qt 4 and Qt 5. Support for Qt 2 and 3 was dropped in the previous commits (Qt 3 was EOL'ed in 2010 or so...). For Qt 5, to be future-proof with the future direction notice appearing in the 5.5 release, C++11 support is automatically enabled. Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Update copyright.Boris Barbulovski1-1/+3
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Fix goParent issue.Boris Barbulovski1-1/+1
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - on Back clicked, deselect old item.Boris Barbulovski1-1/+3
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Add(back) one click checkbox toggle.Boris Barbulovski1-1/+17
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Add(back) lineedit editing.Boris Barbulovski1-0/+1
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Remove some commented code.Boris Barbulovski1-4/+0
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Source format.Boris Barbulovski1-3/+3
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Add horizontal scrollbar, and scroll per pixel.Boris Barbulovski1-0/+5
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Change ConfigItem constructor parent type.Boris Barbulovski1-2/+2
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Disable ConfigList soringBoris Barbulovski1-1/+1
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Remove ConfigList::updateMenuList template.Boris Barbulovski2-4/+73
ConfigItem executes parent->takeChild(0) while ConfigList executes parent->takeTopLevelItem(0) Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Add ConfigList::mode to initializer list.Boris Barbulovski1-1/+1
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Add ConfigItem::nextItem to initializer list.Boris Barbulovski1-3/+3
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Tree widget set column titles.Boris Barbulovski1-0/+2
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Quick workaround to bypass app crash at startup.Boris Barbulovski1-3/+0
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Set ConfigView object name.Boris Barbulovski1-0/+1
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Use correct signal names.Boris Barbulovski1-2/+2
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>
2015-10-14Port xconfig to Qt5 - Remove Qt3Support from Makefile.Boris Barbulovski1-2/+2
Signed-off-by: Boris Barbulovski <[email protected]> Signed-off-by: Thiago Macieira <[email protected]> Signed-off-by: Michal Marek <[email protected]>