build-setup: Add .wgetrc and .curlrc

Some repos invokes wget or curl to download files during the configure
or compile time.
From Yocto's wiki:
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

> Proxy environment variables are not propagated to all stages of the
> Yocto build process so sometimes wget cannot pick them up.

The workaround is to add .wgetrc and .curlrc to force wget/curl to use
the proxy.

Be noted that it sets .rc files in ${HOME}. So if ${HOME} is shared
between different projects it will affect other projects.
But the script already sets ~/.subversion/servers, so this change just
follows the solution.

It's suggested to use a separated ${HOME} for projects that require
proxy.

Tested: Set the proxy and verify the build is OK.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Id237ca84c3fa749bf2c473e94bc0466a9b386d02
1 file changed