Skip to content

Commit d7397d2

Browse files
committed
Remove outdated information
1 parent d2f3f7b commit d7397d2

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

README.md

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ See [Kconfig: Tips and Best Practices](https://docs.zephyrproject.org/latest/bui
3535

3636
### Installation with pip
3737

38-
A stable version of Kconfiglib is available on [PyPI](https://pypi.python.org/pypi/kconfiglib/).
3938
To install the latest version directly from GitHub, run:
4039
```shell
4140
pip install git+https://github.com/sysprog21/Kconfiglib
@@ -466,84 +465,6 @@ Some examples include:
466465
Kconfiglib was originally used to generate a "minimal" kernel for a given system.
467466
Some parts of that approach feel dated now, but that often happens with older work.
468467
469-
### Sample `make iscriptconfig` session
470-
471-
The following log provides an overview of the functionality available in the API:
472-
```
473-
$ make iscriptconfig
474-
A Kconfig instance 'kconf' for the architecture x86 has been created.
475-
>>> kconf # Calls Kconfig.__repr__()
476-
<configuration with 13711 symbols, main menu prompt "Linux/x86 4.14.0-rc7 Kernel Configuration", srctree ".", config symbol prefix "CONFIG_", warnings enabled, undef. symbol assignment warnings disabled>
477-
>>> kconf.mainmenu_text # Expanded main menu text
478-
'Linux/x86 4.14.0-rc7 Kernel Configuration'
479-
>>> kconf.top_node # The implicit top-level menu
480-
<menu node for menu, prompt "Linux/x86 4.14.0-rc7 Kernel Configuration" (visibility y), deps y, 'visible if' deps y, has child, Kconfig:5>
481-
>>> kconf.top_node.list # First child menu node
482-
<menu node for symbol SRCARCH, deps y, has next, Kconfig:7>
483-
>>> print(kconf.top_node.list) # Calls MenuNode.__str__()
484-
config SRCARCH
485-
string
486-
option env="SRCARCH"
487-
default "x86"
488-
>>> sym = kconf.top_node.list.next.item # Item contained in next menu node
489-
>>> print(sym) # Calls Symbol.__str__()
490-
config 64BIT
491-
bool "64-bit kernel" if ARCH = "x86"
492-
default ARCH != "i386"
493-
help
494-
Say yes to build a 64-bit kernel - formerly known as x86_64
495-
Say no to build a 32-bit kernel - formerly known as i386
496-
>>> sym # Calls Symbol.__repr__()
497-
<symbol 64BIT, bool, "64-bit kernel", value y, visibility y, direct deps y, arch/x86/Kconfig:2>
498-
>>> sym.assignable # Currently assignable values (0, 1, 2 = n, m, y)
499-
(0, 2)
500-
>>> sym.set_value(0) # Set it to n
501-
True
502-
>>> sym.tri_value # Check the new value
503-
0
504-
>>> sym = kconf.syms["X86_MPPARSE"] # Look up symbol by name
505-
>>> print(sym)
506-
config X86_MPPARSE
507-
bool "Enable MPS table" if (ACPI || SFI) && X86_LOCAL_APIC
508-
default y if X86_LOCAL_APIC
509-
help
510-
For old smp systems that do not have proper acpi support. Newer systems
511-
(esp with 64bit cpus) with acpi support, MADT and DSDT will override it
512-
>>> default = sym.defaults[0] # Fetch its first default
513-
>>> sym = default[1] # Fetch the default's condition (just a Symbol here)
514-
>>> print(sym)
515-
config X86_LOCAL_APIC
516-
bool
517-
default y
518-
select IRQ_DOMAIN_HIERARCHY
519-
select PCI_MSI_IRQ_DOMAIN if PCI_MSI
520-
depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
521-
>>> sym.nodes # Show the MenuNode(s) associated with it
522-
[<menu node for symbol X86_LOCAL_APIC, deps n, has next, arch/x86/Kconfig:1015>]
523-
>>> kconfiglib.expr_str(sym.defaults[0][1]) # Print the default's condition
524-
'X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI'
525-
>>> kconfiglib.expr_value(sym.defaults[0][1]) # Evaluate it (0 = n)
526-
0
527-
>>> kconf.syms["64BIT"].set_value(2)
528-
True
529-
>>> kconfiglib.expr_value(sym.defaults[0][1]) # Evaluate it again (2 = y)
530-
2
531-
>>> kconf.write_config("myconfig") # Save a .config
532-
>>> ^D
533-
$ cat myconfig
534-
# Generated by Kconfiglib (https://github.com/zephyrproject-rtos/Kconfiglib)
535-
CONFIG_64BIT=y
536-
CONFIG_X86_64=y
537-
CONFIG_X86=y
538-
CONFIG_INSTRUCTION_DECODER=y
539-
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
540-
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
541-
CONFIG_LOCKDEP_SUPPORT=y
542-
CONFIG_STACKTRACE_SUPPORT=y
543-
CONFIG_MMU=y
544-
...
545-
```
546-
547468
## Test suite
548469
549470
The test suite is run with:

0 commit comments

Comments
 (0)