[Buildroot] [PATCH] divine: fix divine-config
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jan 4 16:31:16 UTC 2013
Dear Gustavo Zacarias,
On Fri, 04 Jan 2013 08:41:22 -0300, Gustavo Zacarias wrote:
> 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?
Sounds ok, but instead:
DIVINE_CONFIG_FIXUP = $(STAGING_DIR)/usr/bin/divine-config
And also need to support multiple files being passed.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list