kumquat-buildroot/support/scripts
Yann E. MORIN fe696d7c65 support/scripts: introduce a symbol formatter to generate package lists
Currently, we can generate two different tables of packages:
  - a single-column table with the symbols' prompts,
  - a two-column table with the symbols' prompts and locations in the
    menuconfig.

For virtual packages, this is not enough, since we will have to display
more columns, with different content:
  - the virtual package name (but such symbols do not have a prompt)
  - the symbol name
  - the providers for the virtual package

So, instead of having a single function that knows how to generate any
table, introduce a formatter function that is passed as argument to,
and called by format_asciidoc_table(). Such formatter functions are
responsible for providing:
  - the layout of the table (number of columns, column arrangement),
  - the formatted header line,
  - a formatted line for a symbol.

What the formatter should ouput depends on its arguments:
  - if none are passed, the layout is returned,
  - if the header label is passed, it returns the formatted header line,
  - otherwise, it returns the formatted line for a symbol.

Two formatter functions are introduced in this changeset, to replace the
current 'sub_menu' feature:
  - _format_symbol_prompt() to display a one-column table with only the
    symbols' prompts,
  - _format_symbol_prompt_location() to display a two-column table with
    the symbols' prompts and locations.

This will help us to later introduce a new formatter to generate a table
for virtual packages.

[Thanks to Samuel for his pythonistic help!]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-06-08 17:10:32 +02:00
..
apply-patches.sh apply-patches.sh: make scan_patchdir work recursively 2014-02-08 22:26:16 +01:00
build-ext3-img
check-kernel-headers.sh support/check-kernel-headers: fix old custom toolchains without -print-sysroot 2014-04-09 01:38:10 +02:00
eclipse-register-toolchain eclipse support: document script and add checks 2013-01-14 21:45:09 +01:00
gen-manual-lists.py support/scripts: introduce a symbol formatter to generate package lists 2014-06-08 17:10:32 +02:00
graph-build-time support/graphs: fix comparisons agains None 2014-04-14 22:50:24 +02:00
graph-depends graph-depends: rename the mode constants 2014-06-08 16:43:27 +02:00
kconfiglib.py manual: fix manual generation in preparation for BR2_EXTERNAL support 2013-12-08 22:32:02 +01:00
mkmakefile Makefile: fix out-of-tree builds with multiple targets with 'all' 2013-11-06 23:24:47 +01:00
mkusers support/mkusers: fix warnings when adding a new user 2014-04-05 18:39:16 +02:00
pkg-stats pkg-stats: fix whitespaces 2014-05-15 23:38:20 +02:00
readme.kconfiglib support: add kconfiglib python module 2013-05-04 12:27:00 +02:00
scancpan scancpan: sort dependencies 2014-05-18 23:54:09 +02:00
setlocalversion setlocalversion: sync with Linux kernel version (2.6.34) 2013-09-04 11:58:12 +02:00
xorg-release scripts: xorg-release: handle case when version needs downgrade 2014-02-04 10:32:11 +01:00

Readme
======

Kconfiglib
----------

This python module, developped by Ulf Magnusson and released under the ISC
license, is fetched from:

https://github.com/ulfalizer/Kconfiglib
commit: 02103fba9ae32a78291af53e50ee5d4bb3f69c1e

Kconfiglib license
~~~~~~~~~~~~~~~~~~

License (ISC)

Copyright (c) 2011-2013, Ulf Magnusson <ulfalizer@gmail.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.