[Buildroot] [git commit branch/next] DOWNLOAD_WGET: use -O instead of -P to set output file

Spenser Gilliland spenser309 at gmail.com
Tue Feb 14 16:14:52 UTC 2012


This workaround works; however, the default is to prepend a / to the
front of the source name.  This leads to the following being
downloaded.

--2012-02-14 10:10:40--
http://git.xilinx.com/?p=xldk/microblaze_v2.0.git;a=blob;f=/microblaze-unknown-linux-gnu.tgz

instead of

--2012-02-14 10:10:40--
http://git.xilinx.com/?p=xldk/microblaze_v2.0.git;a=blob;f=microblaze-unknown-linux-gnu.tgz

Without the slash the download should work. Peter should the patch
remove the prepended slash as well?

Spenser

On Tue, Feb 14, 2012 at 10:01 AM, Peter Korsgaard <jacmet at sunsite.dk> wrote:
>>>>>> "Alvaro" == Alvaro Gamez <alvaro.gamez at hazent.com> writes:
>
>  Alvaro> Maybe it's possible to escape them?
>  Alvaro> TOOLCHAIN_EXTERNAL_SITE="http://git.xilinx.com/?p=xldk/microblaze_v2.0.git\;a=
>  Alvaro> blob;f="
>
> Yes, or use single quotes (') instead of double quotes (").
>
>  >>        test -e $(DL_DIR)/$(2) || \
>  >> -       $(WGET) -P $(DL_DIR) $(call qstrip,$(1))/$(2)
>  >> +       $(WGET) -O $(DL_DIR)/$(2) $(call qstrip,$(1))/$(2)
>
> We should probably change it to:
>
> $(WGET) -O $(DL_DIR)/$(2) '$(call qstrip,$(1))/$(2)'
>
> --
> Bye, Peter Korsgaard



-- 
Spenser Gilliland
Computer Engineer
Illinois Institute of Technology



More information about the buildroot mailing list