Hi @Jimmychea,
khang_letruong is correct, there's no real way to speed up the initial build, but as an exercise you can fetch all the packages using the bitbake fetch/fetch all command i.e. bitbake <image> -c fetchall. This simply fetches all the necessary packages before building. A lot of time can be lost by a slow internet connection fetching packages, however once all the packages are on your machine the build time reduces considerably for further builds. Rebuilds can take 1-4 hours depending on your machine and the image type.
Hi @Jimmychea,
For first bitbaking, packages are needed to be downloaded and this depends on the network status (both your network and the servers that host the packages). As a practical habit, I save the downloaded packages to a separate place (other than default DL_DIR ?= "${BSPDIR}/downloads/").
Regards,
K.
Hi @Jimmychea,
khang_letruong is correct, there's no real way to speed up the initial build, but as an exercise you can fetch all the packages using the bitbake fetch/fetch all command i.e. bitbake <image> -c fetchall. This simply fetches all the necessary packages before building. A lot of time can be lost by a slow internet connection fetching packages, however once all the packages are on your machine the build time reduces considerably for further builds. Rebuilds can take 1-4 hours depending on your machine and the image type.