openbmc工程化
作者:互联网
优化fetch阶段文件下载速度
- 修改git下载方式,只下载指定commit,且depth为1
- 使用git全局代理加速下载
复用download文件
- 指定DL_DIR复用下载文件
复用native package
- 获取当前工程用到的package name list
#bitbike obmc-phosphor-image -g
- 获取native package
#cat pn-buildlist|grep -e "-native" -e "\-cross\-" > pn-native
- 只编译native package
#cat pn-native|xargs bitbake
- 编译完成后提取tmp/sysroot-component,未来此基线工程编译无需再反复编译native package
- 复用后可减少原native包源码+编译约8.3G空间
- 复用后可减少native包的任务处理时间,bitbake统计的任务耗时排序后截取最耗时的task如下,单位秒
| Package Name/taskname | seconds |
| ------------------------------------------------------------- | ------- |
| nodejs-native-16.14.2-r0/do_compile | 1591.96 |
| gcc-cross-arm-11.3.0-r0/do_compile | 296.9 |
| gettext-native-0.21-r0/do_configure | 254.07 |
| gettext-native-0.21-r0/do_compile | 183.08 |
| cmake-native-3.23.1-r0/do_compile | 162.77 |
| python3-cython-native-0.29.28-r0/do_compile | 145.43 |
| perl-native-5.34.1-r0/do_configure | 127.37 |
| binutils-cross-arm-2.38-r0/do_compile | 119.5 |
| qemu-native-6.2.0-r0/do_compile | 118.99 |
| openssl-native-3.0.2-r0/do_install | 114.81 |
| libgpg-error-native-1.45-r0/do_compile | 112.88 |
| bison-native-3.8.2-r0/do_configure | 104.47 |
| ncurses-native-6.3-r0/do_configure | 99.59 |
| perl-native-5.34.1-r0/do_compile | 98.46 |
| icu-native-71.1-r0/do_compile | 93.3 |
| mtd-utils-native-2.1.4-r0/do_compile | 89.39 |
| mpfr-native-4.1.0-r0/do_configure | 86.6 |
| patch-native-2.7.6-r0/do_configure | 80.39 |
| util-linux-libuuid-native-2.37.4-r0/do_configure | 77.38 |
| groff-native-1.22.4-r1/do_compile | 75.12 |
| cpio-native-2.13-r0/do_configure | 72.71 |
| swig-native-4.0.2-r0/do_configure | 69.63 |
| gettext-native-0.21-r0/do_install | 67.86 |
| sqlite3-native-3_3.38.2-r0/do_compile | 65.98 |
| cmake-native-3.23.1-r0/do_configure | 65.61 |
| rpm-native-1_4.17.0-r0/do_configure | 63.61 |
| swig-native-4.0.2-r0/do_install | 62.86 |
| libarchive-native-3.6.1-r0/do_configure | 62.5 |
| libxslt-native-1.1.35-r0/do_configure | 61.78 |
| opkg-native-1_0.5.0-r0/do_configure | 59.31 |
| glib-2.0-native-1_2.72.1-r0/do_configure | 57.89 |
| make-native-4.3-r0/do_configure | 54.29 |
| pkgconfig-native-0.29.2+gitAUTOINC+d97db4fae4-r0/do_configure | 54.25 |
| python3-native-3.10.4-r0/do_install | 53.62 |
| util-linux-native-2.37.4-r0/do_configure | 51.98 |
| kmod-native-29-r0/do_configure | 50.02 |
| curl-native-7.83.0-r0/do_configure | 48.47 |
| ninja-native-1.10.2-r0/do_compile | 48.24 |
| gobject-introspection-native-1.72.0-r0/do_compile | 47.91 |
| rpm-native-1_4.17.0-r0/do_compile | 45.67 |
| m4-native-1.4.19-r0/do_configure | 45.36 |
| libxml2-native-2.9.13-r0/do_configure | 44.98 |
| libpcre-native-8.45-r0/do_configure | 44.5 |
复用rootfs
TODO
标签:do,r0,configure,复用,compile,工程化,openbmc,native 来源: https://www.cnblogs.com/zl-yang/p/16364898.html