[PATCH 1/2] kbuild: make collect-policies lightweight with standalone Makefile.policy
Sascha Hauer
s.hauer at pengutronix.de
Tue Mar 3 23:38:48 PST 2026
On Wed, 25 Feb 2026 16:30:55 +0100, Sascha Hauer wrote:
> collect-policies previously depended on $(barebox-dirs), which requires
> `prepare scripts` and triggers unnecessary rebuilds. Repurpose
> Makefile.policy to support dual-mode operation: when invoked standalone
> via $(collect)=dir it bootstraps kbuild infrastructure and recurses
> through subdirectories (like Makefile.clean), and when included from
> Makefile.build it provides the existing build-time .sconfig rules.
>
> [...]
Applied, thanks!
[1/2] kbuild: make collect-policies lightweight with standalone Makefile.policy
https://git.pengutronix.de/cgit/barebox/commit/?id=2d871c52ddc7 (link may not be stable)
[2/2] kbuild: policy: support out-of-tree builds for external policy files
https://git.pengutronix.de/cgit/barebox/commit/?id=c6d2e69c3e5a (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list