[Buildroot] Easy packaging - Makefile.autotools.in with extra make magic

Benjamin Tietz benjamin at micronet24.de
Sat Jun 23 16:32:19 UTC 2007


This was a easy one. even if it is only for future use. existing
packages must be changed to use something like
	MYPACKAGE_SITE = $(BR2_GNU_MIRROR)/mypackage

Benjamin

On Thu, Jun 21, 2007 at 04:42:31PM +0200, Benjamin Tietz wrote:
> Hi Julien, hi list,
> 
> > >By the way, what about a user defined GNU-Mirror - the official one is
> > >sometimes real slow...
> > 
> > That would be an excellent idea, but its beyond the scope of the
> > autotools makefile... Do you have such a patch ready?
> > 
> I see, I have not enough time... since I had some patches ready I
> wanted to release. Hopefully next weekend.
> 
> > >Just another word on the replace.sh: why? ( I'm afraid of hundreds of 
> > >stupid
> > >scripts lying around somewhere)
> > >It is used only once and could be substituted by something like
> > >	
> > >	for i in $(find $(STAGING_DIR)/usr/lib/ -name \*.la); do \
> > >		mv "$i" "$i~"; \
> > >		$(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:" "$i~" > 
> > >		"$i";\
> > >	done
> > 
> > Again, laziness. Fixed with the above.
> > 
> > Just one error in your code snippet -- correct me if i'm wrong.
> > you can't use the $(find ...) make function here, because it's
> > evaluated before the make rule is run, i.e. before the package is
> > actually installed. So I replaced it with a $$(find) shell call to the
> > 'find ' command.
> You are totally right. 
> 
> Thanks for your work. It should make the buildroot much more useful.
> 
> Benjamin
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnu_mirror.patch
Type: text/x-diff
Size: 608 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20070623/e9722553/attachment-0002.bin 


More information about the buildroot mailing list