From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Mon, 07 Jul 2008 15:47:11 +0200 Subject: [Buildroot] svn commit: trunk/buildroot In-Reply-To: <20080707134115.GF15840@mx.loc> References: <20080704222950.E76B63C61F@busybox.net> <873aml7ru0.fsf@macbook.be.48ers.dk> <48721947.9020804@atmel.com> <20080707134115.GF15840@mx.loc> Message-ID: <48721E5F.3030306@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bernhard Fischer skrev: > On Mon, Jul 07, 2008 at 03:25:27PM +0200, Ulf Samuelsson wrote: > [snip ugly log target] >>> As mentioned earlier, it doesn't work with Makefile.autotools.in using >>> packages. >>> >> Yes, but that is really not a good implementation. >> The MAKELEVEL has really nothing to do with what you >> want to use it for, it just happens to work, but >> this implementation is easily broken. > > I have to agree to Ulf in this respect, fwiw. > Peter, why did you have to take MAKELEVEL into account? Perhaps we can > fix this in a better way.. (pointing me to a detailed commit-message or > to the ML archives is sufficient) This is my proposal (which started this thread), but I would like you guys to comment. Index: Makefile =================================================================== - --- Makefile (revision 22671) +++ Makefile (arbetskopia) @@ -346,10 +346,10 @@ source: $(TARGETS_SOURCE) $(HOST_SOURCE) _source-check: - - $(MAKE) SPIDER=--spider source + $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider source external-deps: - - @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \ + @$(MAKE) FORCE_DOWNLOAD=y -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \ source Index: package/Makefile.autotools.in =================================================================== - --- package/Makefile.autotools.in (revision 22671) +++ package/Makefile.autotools.in (arbetskopia) @@ -131,7 +131,7 @@ # Retrieve and unpack the archive $(BUILD_DIR)/%/.stamp_downloaded: # support make source-check/external-deps - -ifeq ($(MAKELEVEL),1) +ifeq ($(FORCE_DOWNLOAD),y) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) else ############################################################# BR Ulf > _______________________________________________ > buildroot mailing list > buildroot at uclibc.org > http://busybox.net/mailman/listinfo/buildroot -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIch5fAyRRH5cXxqwRAsNbAJ9vWvVqUecx+xwpmykwrOaRbAlWfgCeLBNj Djwd8wUNMHoWAcei4qdw2HI= =K+Qq -----END PGP SIGNATURE-----