[Buildroot] [PATCH 08/35] packages: apply custom patches using *.patch instead of <pkg>-*.patch
thomas.petazzoni at free-electrons.com
Mon Mar 30 07:29:51 UTC 2015
Dear Yann E. MORIN,
On Sun, 29 Mar 2015 23:35:51 +0200, Yann E. MORIN wrote:
> At first, I was wondering if we could not simply get rid of al those
> custom hooks, and do something like:
> BR2_GLOBAL_PATCH_DIR += $(BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR)
> and so on for the others.
> But it turns out that we're only looking into sub-directories of
> BR2_GLOBAL_PATCH_DIR, so the above sould not work.
No, it does not work, because BR2_TARGET_AT91BOOTSTRAP_CUSTOM_PATCH_DIR
is directly the directory where the patches are, while
BR2_GLOBAL_PATCH_DIR expects the at91bootstrap patches to be in an
> Second, I'm afraid this would break the case where someone has all the
> patches in a single directory, and use the 'package' prefix to
> differentiate what package a patch would apply, like so:
> This change would break that setup, would it not?
Yes, it would. But on the previous iterations of those patches, Arnout
said it was OK to break this setup. See
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
More information about the buildroot