[Buildroot] [PATCH] rework patch model
Charles Manning
cdhmanning at gmail.com
Sat Mar 16 21:11:59 UTC 2013
On Sun, Mar 17, 2013 at 9:49 AM, <spdawson at gmail.com> wrote:
> From: Simon Dawson <spdawson at gmail.com>
>
> At the Buildroot Developers Meeting (4-5 February 2013, in Brussels) a change
> to the patch logic was discussed. See
>
> http://elinux.org/Buildroot:DeveloperDaysFOSDEM2013
>
> for details. In summary:
>
> * For patches stored in the package directory, if package/<pkg>/<version>/ does exist, apply package/<pkg>/<version>/*.patch, otherwise, apply package/<pkg>/*.patch
> * For patches stored in the global patches directory, if $(GLOBAL_PATCH_DIR)/<pkg>/<version>/ does exist, apply $(GLOBAL_PATCH_DIR)/<pkg>/<version>/*.patch, otherwise, apply $(GLOBAL_PATCH_DIR)/<pkg>/*.patch
>
> This patch adds the new BR2_GLOBAL_PATCH_DIR configuration item, and reworks
> the generic package infrastructure to implement the new patch logic.
>
> Signed-off-by: Simon Dawson <spdawson at gmail.com>
> ---
> Config.in | 7 +++++++
> package/pkg-generic.mk | 16 ++++++++--------
> 2 files changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/Config.in b/Config.in
> index a2c305f..3008374 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -437,6 +437,13 @@ config BR2_PACKAGE_OVERRIDE_FILE
> as the source directory for a particular package. See the
> Buildroot documentation for more details on this feature.
>
> +config BR2_GLOBAL_PATCH_DIR
> + string "global patch directory"
> + help
> + You may specify a directory containing global package patches.
> + Note that any global patches for a package will be applied AFTER
> + the default Buildroot patch set for the package.
> +
> endmenu
Bloody fantastic!
I was looking for something that does exactly this.
Thanks
Charles
More information about the buildroot
mailing list