SDK编译时间超级长

  • 您好,在百度云盘中有一个dl文件夹可以替换<SDK>/sysdrv/source/buildroot/buildroot-2023.02.6 下的dl文件夹,这样可以免去下载的工作。
    目前最新的SDK在下载buildroot软件包时会根据网络环境配置软件包的镜像站,您可以检查下载软件包的源地址判断是否有使用镜像站,改了配置后重新编译并不是重新开启编译而是在原有的基础上重新下载新的软件包再对相关依赖软件重新编译。
    linux本身生态丰富,在使用上也有很多软件包选择,和esp32是两种完全不一样的平台,如果将完整的buildroot软件包都放在本地需要占用接近500G的存储空间,从使用上也很难确定哪些软件包需要保留哪些可以裁剪,从维护和luckfox pico的定位来说都不会选择出离线版本的SDK,其他使用buildroot构建根文件系统的开发平台也没有类似的使用,希望您能够理解。
  • 在有代理条件的环境下,可以考虑配置 git 和 wget 的代理,参考命令如下
    实测在 4C4G 的腾讯云轻量机上 docker 容器内全量编译 IPC_EMMC_BUILDROOT_RV1106_LUCKFOX_PICO_ULTRA_W 镜像耗时不超过 2h

    Code: Select all

    root@58a452e40f34:/home# git config --global http.https://github.com.proxy socks5://10.0.2.2:1080
    root@58a452e40f34:/home# git config --global http.https://git.code.sf.net.proxy socks5://10.0.2.2:1080
    root@58a452e40f34:/home# cat ~/.wgetrc 
    # You can set the default proxies for Wget to use for http, https, and ftp.
    # They will override the value in the environment.
    https_proxy = http://10.0.2.2:1081/
    http_proxy = http://10.0.2.2:1081/
    ftp_proxy = http://10.0.2.2:1081/
    
    # If you do not want to use proxy at all, set this to off.
    use_proxy = on
    
    Attachments
    Pasted Graphic 2.png
  • 好的,非常感谢