[Buildroot] [PATCH] divine: fix divine-config

Gustavo Zacarias gustavo at zacarias.com.ar
Fri Jan 4 11:41:22 UTC 2013


On 01/03/2013 07:09 PM, Stefan Fröberg wrote:

> +define DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/divine-config
> +endef
> +
> +DIVINE_POST_INSTALL_STAGING_HOOKS += DIVINE_STAGING_DIVINE_CONFIG_FIXUP
> +

This could be handled in a generic way for all the packages that ship a
*-config file.
Something like:

DIVINE_CONFIG_FIXUP = divine-config

And then do the generic sed magic in package/pkg-generic.mk
How about that?
Regards.



More information about the buildroot mailing list