Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fiona Klute <fiona.klute@gmx.de>
Cc: "Florian Fainelli" <florian.fainelli@broadcom.com>,
	"Arnout Vandecappelle" <arnout@rnout.be>,
	buildroot@buildroot.org,
	"Eric Le Bihan" <eric.le.bihan.dev@free.fr>,
	"Gary Bisson" <bisson.gary@gmail.com>,
	"Jérôme Pouiller" <jezz@sysmic.org>,
	"Bernd Kuhls" <bernd@kuhls.net>,
	"Thomas Perale" <thomas.perale@mind.be>,
	"Maxime Chevallier" <maxime.chevallier@bootlin.com>,
	"Refik Tuzakli" <tuzakli.refik@gmail.com>,
	"Francois Perrad" <francois.perrad.86@gmail.com>,
	"Petr Vorel" <petr.vorel@gmail.com>,
	"Spenser Gilliland" <spenser@gillilanding.com>,
	"Giulio Benetti" <giulio.benetti@benettiengineering.com>,
	"Pascal de Bruijn" <p.debruijn@unilogic.nl>,
	"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
	"Romain Naour" <romain.naour@gmail.com>,
	"Mahyar Koshkouei" <mahyar.koshkouei@gmail.com>
Subject: Re: [Buildroot] [PATCH 00/23] Support building the Linux kernel out of tree with LINUX_OVERRIDE_SRCDIR
Date: Wed, 28 Oct 2026 19:18:37 +0100	[thread overview]
Message-ID: <auI8BTyNtvmooUTW@windsurf> (raw)
In-Reply-To: <d32b0f06-9105-4ee5-99ef-84a6fdda0e41@gmx.de>

On Tue, Oct 27, 2026 at 09:32:55PM +0100, Fiona Klute wrote:

> I like consistency too, but also real packages are a mess. As you know I've
> been working on package/dracut lately. It's built as
> "host-autotools-package". Autotools has out-of-tree build support (it's been
> a while since I tested that, but it worked well). Except… Dracut isn't
> actually an autotools package. Just close enough that it mostly works that
> way (i.e. it has a ./configure script; but it doesn't preserve all the
> flags, see 45acb281caa9fa30799426ba7ef4694c0b61fa85 "package/dracut: pass
> HOST_CONFIGURE_OPTS to make").
> 
> I fear we might stumble upon more of that kind if we try to make all
> autotools packages build out of tree, whether "not actually autotools" or
> "autotools with weird custom hacks". Doesn't mean I'm fundamentally against
> trying, but we need to be prepared for issues like that. If you don't like
> making it opt-in, maybe opt-out so there is a quick fix for troublesome
> packages? Except for "generic", ironically. I don't see any generic solution
> there.

Two aspects:

- Packages that use the autotools-package infrastructure but are not
  truly autotools-based should in most cases probably not use
  autotools-package.

- In any case, even pure autotools-based packages can potentially have
  out-of-tree build issues. So my idea was that
  package/pkg-autotools.mk would by default enabled out-of-tree build
  for packages that use autotools-package but still allow each
  individual package to disable out-of-tree build. The logic would be
  the opposite for generic-package: the infrastructure would assume
  out-of-tree is not supported by the package, and generic-package
  packages supporting out-of-tree would have to explicitly enable it.

Best regards,

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-10-28 18:20 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 21:47 [Buildroot] [PATCH 00/23] Support building the Linux kernel out of tree with LINUX_OVERRIDE_SRCDIR Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 01/23] package: prepare removal of <pkg>_DIR Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 02/23] infra: introduce a global SRC_DIR variable Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 03/23] package: fix <pkg>_SRCDIR and <pkg>_BUILDDIR values Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 04/23] boot/boot-wrapper-aarch64: needs LINUX_BUILDDIR Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 05/23] boot/mxs-bootlets: needs (BAREBOX, LINUX, UBOOT)_BUILDDIR Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 06/23] linux/extensions: point to proper _SRCDIR and @D Florian Fainelli via buildroot
2026-10-23 21:47 ` [Buildroot] [PATCH 07/23] linux/linux: LINUX_VERSION_PROBED should run from build directory Florian Fainelli via buildroot
2026-10-23 21:51 ` Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 08/23] package: use <pkg>_SRCSUBDIR where <pkg>_SRCDIR used to include _SUBDIR Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 09/23] linux: build out of tree when LINUX_OVERRIDE_SRCDIR is set Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 10/23] packages: sync host and target patch hooks Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 11/23] omniorb: avoid target-only patch hook Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 12/23] lua: rework post-patch hook usage Florian Fainelli via buildroot
2026-10-24 10:46     ` François PERRAD
2026-10-27 16:43       ` Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 13/23] infra: host packages inherit the target extra downloads Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 14/23] package/libtool: use post-patch hooks Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 15/23] package/libtool: also apply libtool-patch to host libtool Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 16/23] package/{ffmpeg, libvpx}: use $(@D) instead of $(pkg_SRCDIR) when possible Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 17/23] package/perl: apply the perl-cross even for the host variant Florian Fainelli via buildroot
2026-10-24 10:20     ` François PERRAD
2026-10-27 16:44       ` Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 18/23] infra/autotools: warn for package that autoreconf without libtool patch Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 19/23] packages: replace $(PKG)_DIR with @D where possible Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 20/23] linux: support custom logo and devicetree files in out-of-tree builds Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 21/23] package/linux-tools: support an out-of-tree kernel build Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 22/23] package: read kernel headers from LINUX_SRCDIR Florian Fainelli via buildroot
2026-10-23 21:51   ` [Buildroot] [PATCH 23/23] docs/manual: document out-of-tree package builds and the new srcdir variables Florian Fainelli via buildroot
2026-10-24 20:44 ` [Buildroot] [PATCH 00/23] Support building the Linux kernel out of tree with LINUX_OVERRIDE_SRCDIR Thomas Petazzoni via buildroot
2026-10-26 21:49   ` Florian Fainelli via buildroot
2026-10-27  8:14     ` Arnout Vandecappelle via buildroot
2026-10-27  8:26       ` Thomas Petazzoni via buildroot
2026-10-27  8:43         ` Arnout Vandecappelle via buildroot
2026-10-27 12:41           ` Thomas Petazzoni via buildroot
2026-10-27 12:44     ` Thomas Petazzoni via buildroot
2026-10-27 13:53       ` Arnout Vandecappelle via buildroot
2026-10-27 16:53         ` Florian Fainelli via buildroot
2026-10-27 19:22           ` Thomas Petazzoni via buildroot
2026-10-27 19:56             ` Florian Fainelli via buildroot
2026-10-28 18:16               ` Thomas Petazzoni via buildroot
2026-10-28 18:35                 ` Florian Fainelli via buildroot
2026-10-28 19:26                   ` Thomas Petazzoni via buildroot
2026-10-27 20:32             ` Fiona Klute via buildroot
2026-10-28 18:18               ` Thomas Petazzoni via buildroot [this message]
2026-10-28 18:34                 ` Florian Fainelli via buildroot
2026-10-28 19:26                   ` Thomas Petazzoni 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=auI8BTyNtvmooUTW@windsurf \
    --to=buildroot@buildroot.org \
    --cc=arnout@rnout.be \
    --cc=bernd@kuhls.net \
    --cc=bisson.gary@gmail.com \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=fiona.klute@gmx.de \
    --cc=florian.fainelli@broadcom.com \
    --cc=francois.perrad.86@gmail.com \
    --cc=giulio.benetti@benettiengineering.com \
    --cc=jezz@sysmic.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=mahyar.koshkouei@gmail.com \
    --cc=maxime.chevallier@bootlin.com \
    --cc=p.debruijn@unilogic.nl \
    --cc=petr.vorel@gmail.com \
    --cc=romain.naour@gmail.com \
    --cc=spenser@gillilanding.com \
    --cc=thomas.perale@mind.be \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tuzakli.refik@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox