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
diff --git a/build-setup.sh b/build-setup.sh
index c5733cd..44c068a 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -349,6 +349,16 @@
   http-proxy-host = ${PROXY_HOST}
   http-proxy-port = ${PROXY_PORT}
 EOF_SVN
+
+  cat > ~/.wgetrc << EOF_WGETRC
+  https_proxy = ${http_proxy}
+  http_proxy = ${http_proxy}
+  use_proxy = on
+EOF_WGETRC
+
+  cat > ~/.curlrc << EOF_CURLRC
+  proxy = ${PROXY_HOST}:${PROXY_PORT}
+EOF_CURLRC
 fi
 
 # Source our build env