tree: 525345fec39d76b8f324b1eeca98ba4e3acb96d4 [path history] [tgz]
  1. lxdialog/
  2. patches/
  3. .gitignore
  4. conf.c
  5. confdata.c
  6. description.md
  7. expr.c
  8. expr.h
  9. gconf-cfg.sh
  10. gconf.c
  11. gconf.glade
  12. images.c
  13. images.h
  14. internal.h
  15. lexer.l
  16. lexer.lex.c_shipped
  17. list.h
  18. lkc.h
  19. lkc_proto.h
  20. Makefile
  21. Makefile.inc
  22. mconf-cfg.sh
  23. mconf.c
  24. menu.c
  25. merge_config.sh
  26. nconf-cfg.sh
  27. nconf.c
  28. nconf.gui.c
  29. nconf.h
  30. parser.tab.c_shipped
  31. parser.tab.h_shipped
  32. parser.y
  33. preprocess.c
  34. qconf-cfg.sh
  35. qconf.cc
  36. qconf.h
  37. README.md
  38. regex.c
  39. regex.h
  40. streamline_config.pl
  41. symbol.c
  42. toada.c
  43. util.c
util/kconfig/README.md

coreboot kconfig

This is coreboot's copy of kconfig which tracks Linux as upstream but comes with a few patches for portability but also a few semantic changes.

The patches that lead to this tree can be found in the patches/ subdirectory in a quilt friendly format that is also simple enough to manage manually with Unix tooling.

Updating kconfig

The first step is to unapply the patches. This can either be done with quilt in an already-configured tree (quilt pop -a should cleanly unapply them all) or manually if quilt doesn't have its tracking metadata around yet:

$ for i in `ls patches/*.patch | tac`; do patch -p1 -R -i "$i"; done

The result should be a subtree that, apart from a few coreboot specific files on our side (e.g. documentation, integration in our build system) and a few files on the upstream end that we don't carry (e.g. the tests), is identical to the scripts/kconfig/ directory of Linux as of the most recent uprev we did. Check the uprev version by looking through git log util/kconfig output in our tree.

Assuming that you want to uprev from Linux 5.13 to 5.14, with a Linux git tree available in ~/linux,

$ cd util/kconfig && (cd ~/linux/ && git diff v5.13..v5.14 scripts/kconfig) | patch -p2`

applies the changes to your local tree.

Then reapply our patch train, which might be as simple as quilt push -a --refresh but might also require some meddling with the patches to make them apply again with the changes you just imported from Linux.

Check that kconfig still works, git add and git commit the changes and write a meaningful commit message that documents what Linux kconfig version the tree has been upreved to.