Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Paul Cercueil <paul@crapouillou.net>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] linux: add dependency on host-libyaml for v5.16+
Date: Fri, 19 Nov 2021 17:30:01 +0100	[thread overview]
Message-ID: <20211119163001.GP247986@scaer> (raw)
In-Reply-To: <20211117220635.114549-1-paul@crapouillou.net>

Paul, All,

On 2021-11-17 22:06 +0000, Paul Cercueil spake thusly:
> Starting with 5.16, host-libyaml seems to be required to build
> Device Tree blobs.

So, as we've discussed on IRC, this is far from sufficient to make
linux-5.16+ build.

o first, this is about an as-yet unreleased kernel version, so we are
not in a hurry to fix this before our 2021.11 release.

Second, as you reported, it also needs dtschema, which is not packaged
in Buildroot yet, nd not even packaged in Debian.

dtschema is written in python3, so this means that the Linux kernel now
gained a build dependency on host-python3 and a bunch of other host
python modules:

    dtschema
    |-> ruamel.yaml >= 0.15.69
    |-> jsonschema >= 4.1.2
    |   |-> attrs >= 17.4.0
    |   `-> pyrsistent >= 0.14.0, !=0.17.0, !=0.17.1, !=0.17.2
    `-> rfc3987
        `-> regex (optional, but sine we already have it)

I've tried adding them with scanpypi, but it exploded on me. I spent way
too much time trying to understand the issue, time that would have been
better spent adding/bumping those packages. But meh...

Sigh...

Regards,
Yann E. MORIN.

> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  linux/linux.mk | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 61fdc0c76c..bbe19f494c 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -375,6 +375,9 @@ ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
>  # reproducibility, we use our owns rather than the host ones.
>  LINUX_DEPENDENCIES += host-bison host-flex
>  
> +# Starting with 5.16, host-libyaml is required to build Device Tree blobs.
> +LINUX_DEPENDENCIES += host-libyaml
> +
>  ifeq ($(BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT),)
>  define LINUX_BUILD_DTB
>  	$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_DTBS)
> -- 
> 2.33.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-11-19 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 22:06 [Buildroot] [PATCH 1/1] linux: add dependency on host-libyaml for v5.16+ Paul Cercueil
2021-11-19 16:30 ` Yann E. MORIN [this message]
     [not found] <mailman.13094.1637403878.2795.buildroot@buildroot.org>
2021-12-13  9:20 ` Andreas Ziegler
2021-12-13 17:57   ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211119163001.GP247986@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=paul@crapouillou.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox