Skip to content

core/pkg-kconfig: ensure we have necessary tools to run configurators

Yann E. MORIN buildroot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 0 repliesNew
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded

Changes in v4 from the cover letter

- also fix uboot

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7linux: explain why we need host-{flex, bison}linux/linux.mk+7 -11 reply
2/7support/dependencies: check for system-provided bison and flexsupport/dependencies/check-host-bison-flex.mk+10 -02 replies
3/7core/pkg-kconfig: allow dependencies before configuratorsdocs/manual/adding-packages-kconfig.txt package/pkg-kconfig.mk+13 -01 reply
4/7linux: kconfig may need host-{flex, bison} to build the configuratorslinux/linux.mk+9 -30 replies
5/7linux: host-{flex, bison} only needed for DTSlinux/linux.mk+5 -50 replies
6/7linux: kconfig needs the toolchainlinux/linux.mk+5 -00 replies
7/7boot/uboot: needs host-{flex,bison}boot/uboot/uboot.mk+3 -01 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchJan Kundr?t
1/7
2/7
3/7T-b
4/7
5/7
6/7T-b R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Buildroot] [PATCH 0/7 v4] core/pkg-kconfig: ensure we have necessary tools to run configurators

Hello All!

Recent version of the linux kernel introduced major changes in the kconfig infrastructure.

Starting with linux-4.16, the kconfig parser code is no longer shipped with the linux source tree, and mut be generated from the lex/yacc parser sources.

Similarly, starting with linux-4.18, the kconfig infra allows calling back to the shell to run various commands, especially calling to the compiler to test its features (and hide/show options accordingly).

So, we need to ensure the appropriate tools are available before we attempt to run any of the configurators. Since building host-flex and host-bison is not entirely free (they both have a few dependencies of their own), we want to be able to use the system ones if they are present.

This seven-patch series first documents the reasons for having host-flex and host-bison as dependencies of the linux package.

Then we add support for detecting if the system provides flex and/or bison; if either is missing, a conditional dependency is defined for either.

Third, the kconfig infra is enhanced to accept dependencies needed before the configurators are called.

The linux packages is then adapted, one step at a time, to use the conditional flex/bison dependencies for the configurators, and use the host-{flex,bison} dependencies only for the DTS support.

Then, the toolchain is added as a kconfig dependencies of the linux kernel.

Eventually, uboot is also fixed to conditionally require flex/bison.

Changes v3 -> v4:
- also fix uboot

(note: there was no v2.)

Changes v1 -> v3:
- introduce the KCONFIG_DEPENDENCIES in the kconfig-package infra (Thomas)
- change linux to take advantage of that (Thomas)

Regards,
Yann E. MORIN.

The following changes since commit f70b13a7cb6eb01e9d78fddcb695b84a22e5699b

dahdi-tools: unify dependencies comments (2018-08-17 17:07:11 +0200)

are available in the git repository at:

git://git.buildroot.org/~ymorin/git/buildroot.git

for you to fetch changes up to ed63f1c812145907ef83c6bf245ad5765c67aded

boot/uboot: needs host-{flex,bison} (2018-08-17 17:40:03 +0200)

----------------------------------------------------------------
Yann E. MORIN (7):
linux: explain why we need host-{flex,bison} support/dependencies: check for system-provided bison and flex core/pkg-kconfig: allow dependencies before configurators
linux: kconfig may need host-{flex,bison} to build the configurators
linux: host-{flex,bison} only needed for DTS
linux: kconfig needs the toolchain
boot/uboot: needs host-{flex,bison}

 boot/uboot/uboot.mk                           |  3 +++
 docs/manual/adding-packages-kconfig.txt       |  4 ++++
 linux/linux.mk                                | 19 ++++++++++++++++++-
 package/pkg-kconfig.mk                        |  9 +++++++++
 support/dependencies/check-host-bison-flex.mk | 10 ++++++++++
 5 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 support/dependencies/check-host-bison-flex.mk
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'