khadas / fenix

One-stop script set to build Ubuntu/Debian images
GNU General Public License v2.0
208 stars 135 forks source link

Noble: reduce build time #285

Closed viraniac closed 1 month ago

viraniac commented 1 month ago

Build configuration

***********************PARAMETERS************************
Fenix Version:         1.6.6
Khadas Board:          Edge2
Uboot Version:         2017.09
Uboot Configuration:   khadas-edge2-rk3588s_defconfig
Uboot Branch:          khadas-edges-v2017.09
Linux Version:         5.10
Linux Configuration:   kedges_defconfig
Linux DTB:             /home/viraniac.linux/fenix/build/linux/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dtb
Linux Branch:          khadas-edges-5.10.y
Distribution:          Ubuntu
Distribution Release:  noble
Distribution Type:     minimal
Distribution Arch:     arm64
Install Type:          SD-USB
Final Image:           edge2-ubuntu-24.04-minimal-linux-5.10-fenix-1.6.6-240520-develop.img
*********************************************************

I had done make debs before doing further testing to ensure kernel and u-boot compilation will not take much time. For testing I ran the following command to make the build

FORCE_CREATE_ROOTFS_CACHE=yes make

Time taken by the build before this change: ~54 minutes Time taken by the build after this change: ~24 minutes

I have not observed any change in build time required for building Jammy image after this change. Building a jammy image took ~23 minutes on my build system both with and without this change.

numbqq commented 1 month ago

cherry-picked.