[Buildroot] [PATCH 01/15] package/pkg-rebar.mk: Remove dependencies from rebar.config

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Nov 28 21:28:48 UTC 2018


Hello Johan,

On Mon, 26 Nov 2018 12:07:53 +0100, Johan Oudinet wrote:

> +# Remove dependencies listed in rebar.config unless the package says
> +# otherwise
> +ifeq ($$($(2)_KEEP_DEPENDENCIES),)
> +define remove_dependencies_from_rebar_config
> +	$(SED) '/^{deps/,/}\.$$$$/d' $$($$(PKG)_DIR)/rebar.config

I renamed this macro:

	remove-rebar-config-dependencies

and moved it outside of the inner-rebar-package macro, so that it is
declared together with the other macros in pkg-rebar.mk.

Also, an added benefit is that we can avoid the double escaping so $$$$
becomes just $$, and $$ becomes just $.

I've applied to next, but could you please send a follow-up patch that
documents this <pkg>_KEEP_DEPENDENCIES variable in the Buildroot
manual in the rebar package infrastructure section ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list