[Buildroot] svn commit: trunk/buildroot

Ulf Samuelsson ulf.samuelsson at atmel.com
Wed Jul 9 14:45:39 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Korsgaard skrev:
>>>>>> "Bernhard" == Bernhard Fischer <rep.dot.nop at gmail.com> writes:
> 
> Hi,
> 
>  >> Me or Ulf? For me, see r22607. Makefile.autotools.in is kinda
>  >> broken as the download target is executed even if the download
>  >> exists (E.G. it
> 
>  Bernhard> Ok that's broken.
> 
>  Bernhard> $(BUILD_DIR)/%/.stamp_download_tarball:
>  Bernhard> 	$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
>  Bernhard> 	# or $(if $(BR2_PRIMARY_SITE),$(BR2_PRIMARY_SITE),$($(PKG)_SITE))/$($(PKG)_SOURCE) if you want to support that primary site stuff
>  Bernhard> 	touch $@
> 
> That won't work if you do a clean and rebuild or reuse a download dir
> for another build. You have to really make $(DL_DIR)/$($(PKG)_SOURCE)
> the target.
> 
> I guess we could use wget -c, but that would be kinda lame (and
> dangerous).
> 

If a package is present in $(DL_DIR) you only need
to perform the WGET in very special cases.

Why not tell the autotools this explicitly, like I proposed?

It is an easy fix, and it works as far as I see.

Alternatively, you can make the test for presence in $(DL_DIR)
a configurable item which can be disabled when make source-check
or make external-deps is executed.


BR
Ulf Samuelsso0n
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIdM8SAyRRH5cXxqwRAlB5AJ4/32+nRGhMZ6E/CNZNtxtbJjpepQCgiaG5
rIdprRbYHZ73onRlXG6eGMw=
=LCps
-----END PGP SIGNATURE-----



More information about the buildroot mailing list