All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fiona Klute via buildroot <buildroot@buildroot.org>
Cc: Julien Olivain <ju.o@free.fr>, Fiona Klute <fiona.klute@gmx.de>,
	Romain Naour <romain.naour@smile.fr>
Subject: Re: [Buildroot] [PATCH 1/1] Makefile: add check-package-external target
Date: Thu, 1 Jan 2026 18:18:30 +0100	[thread overview]
Message-ID: <20260101181830.35ccf7c3@windsurf> (raw)
In-Reply-To: <20250929092431.8974-1-fiona.klute@gmx.de>

Hello Fiona,

Adding other maintainers in Cc: to get some feedback. If there's no
feedback, I'll apply as I don't have a very strong feeling about this.

One thing perhaps that bothers me a bit is the naming, as from the name
I didn't really understand it was for br2-external, and I was wondering
what this concept of package-external was. But I don't really have a
good name. "make check-br2-external" lacks the relationship with "make
check-package". "make check-package-br2-external" is a bit long.

I have a suggestion below, though.

On Mon, 29 Sep 2025 11:24:31 +0200
Fiona Klute via buildroot <buildroot@buildroot.org> wrote:

> +# $(1): br2-external path
> +# $(2): br2-external description
> +define check-package-external
> +	@$(call MESSAGE,"Checking packages in $(2)")
> +	$(Q)if [ -r "$(1)/.checkpackageignore" ]; then \
> +		ignore="--ignore-list=$(1)/.checkpackageignore" ; \
> +	fi ; \
> +	$(TOPDIR)/utils/check-package \
> +		--br2-external $${ignore} \
> +		`git -C $(1) ls-tree -r --format='$(1)/%(path)' HEAD`

Could be written in pure make I believe:

$(TOPDIR)/utils/check-package \
	--br2-external \
	$if ($(wildcard $(1)/.checkpackageignore),--ignore $(1)/.checkpackageignore) \
	`git -C $(1) ls-tree -r --format='$(1)/%(path)' HEAD`

(completely untested, of course)

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-01-01 17:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-29  9:24 [Buildroot] [PATCH 1/1] Makefile: add check-package-external target Fiona Klute via buildroot
2026-01-01 17:18 ` Thomas Petazzoni via buildroot [this message]
2026-01-01 18:04   ` Fiona Klute via buildroot
2026-01-04 10:13   ` Peter Korsgaard
2026-01-04 10:39     ` Thomas Petazzoni via buildroot
2026-01-04 13:34       ` Peter Korsgaard
2026-01-12 21:02         ` Fiona Klute via buildroot
2026-02-03 10:40 ` Arnout Vandecappelle via buildroot
2026-02-13 19:37 ` Thomas Perale via buildroot

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=20260101181830.35ccf7c3@windsurf \
    --to=buildroot@buildroot.org \
    --cc=fiona.klute@gmx.de \
    --cc=ju.o@free.fr \
    --cc=romain.naour@smile.fr \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.