From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Fri, 4 Jan 2013 17:31:16 +0100 Subject: [Buildroot] [PATCH] divine: fix divine-config In-Reply-To: <50E6BFE2.2090405@zacarias.com.ar> References: <1357250947-23296-1-git-send-email-stefan.froberg@petroprogram.com> <50E6BFE2.2090405@zacarias.com.ar> Message-ID: <20130104173116.222de178@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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