Age | Commit message (Collapse) | Author |
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
In the query path the error message should mention 'query' and not
'creation'.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
If the kernel config option being queried is not found, we get the following
output:
[INFO]: looking for ['CONFIG_GPIO_SYSCON']
Traceback (most recent call last):
File "/path/to/kgit-config", line 671, in <module>
print( "no matching cfg files with option %s found" % regex )
NameError: name 'regex' is not defined
Update the queried-for variable (regex) so that it contains the option the
user is querying (oregex):
[INFO]: looking for ['CONFIG_GPIO_SYSCON']
no matching cfg files with option CONFIG_GPIO_SYSCON found
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
With this version of kgit-config, we can run without an existing
meta-data repository and create a rough guideline of hardware
versus policy options using existing kgit-tooling. This isn't
as good as the yocto kernel-cache, but it is a starting point.
We can also now write BSP .scc files and hardware/policy fragments.
An example run follows:
% kgit-config create --bsp mybsp --savetemps --ksrc \
~/poky-kernel/linux-yocto.git/ --defconfig \
~/poky-kernel/linux-yocto.git/arch/x86/configs/x86_64_defconfig --outdir .
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
|
From the tools help:
usage: kgit-config [-h] [-v] [-s KSRC] [--create] [--query] [-k KMETA]
[-d DEFCONFIG] [-e ENTRYPOINT] [--savetemps]
...
kernel fragment generation/manipulation/query
positional arguments:
args <command> (create or query)
optional arguments:
-h, --help show this help message and exit
-v verbose
-s KSRC, --ksrc KSRC path to the kernel source
--create Create a minimal BSP hardware config
--query run a query against kernel meta data
-k KMETA, --kmeta KMETA
path to the kernel meta data
-d DEFCONFIG, --defconfig DEFCONFIG
path to the kernel defconfig
-e ENTRYPOINT, --entrypoint ENTRYPOINT
fragment to use as an entrypoint for
classification
(default is ktypes/standard/standard.scc
--savetemps don't delete temporary working directory
Overview:
kgit-config can be used to perform initial processing on a defconfig
to determine what options are "hardware" and are hence suitable to be
placed in a BSP, while leaving non-hardware/policy options to the
fragments contained within a kernel-cache repository.
It can also query a kernel-cache directory for details about which
fragments provide an option, and where they are included (which
is helpful when completing initial BSP fragments.
Examples:
# process a defconfig and output hardware options suitable for a BSP
% kgit-config create --ksrc ~/poky-kernel/linux-yocto.git/ --defconfig ~/poky-kernel/linux-yocto.git/arch/x86/configs/x86_64_defconfig --kmeta ~/poky-kernel/kernel-cache
# query a set of fragments for details on options
% kgit-config query --kmeta ~/poky-kernel/kernel-cache CONFIG_DEBUG_FS
[INFO]: looking for ['CONFIG_DEBUG_FS']
[INFO]: cfg files that have options matching regex: CONFIG_DEBUG_FS
[INFO]: 7 cfg files have option: CONFIG_DEBUG_FS
cfg file: cfg/fs/debugfs.cfg
included by: /home/bruce/poky-kernel/kernel-cache/cfg/fs/debugfs.scc
cfg file: cfg/debug/irq/debug-generic-irq-debugfs.cfg
included by: /home/bruce/poky-kernel/kernel-cache/cfg/debug/irq/debug-generic-irq-debugfs.scc
cfg file: cfg/debug/irq/debug-irq-domain.cfg
included by: /home/bruce/poky-kernel/kernel-cache/cfg/debug/irq/debug-irq-domain.scc
cfg file: cfg/debug/printk/debug-dynamic-debug.cfg
included by: /home/bruce/poky-kernel/kernel-cache/cfg/debug/printk/debug-dynamic-debug.scc
cfg file: features/systemtap/systemtap.cfg
included by: /home/bruce/poky-kernel/kernel-cache/features/systemtap/systemtap.scc
cfg file: bsp/beaglebone/beaglebone-non_hardware.cfg
included by: /home/bruce/poky-kernel/kernel-cache/bsp/beaglebone/beaglebone.scc
cfg file: bsp/intel-x86/intel-x86-acpi.cfg
included by: /home/bruce/poky-kernel/kernel-cache/bsp/intel-x86/intel-x86.scc
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|