Skip to main content

Conf local.conf

ACCEPT_FSL_EULA = "1"

INHERIT += "rm_work"

RM_WORK_EXCLUDE += " spdlog dtc "

UBOOT_CONFIG = "2G"

IMAGE_INSTALL_append = " tcpdump spdlog-dev qtserialport ethtool "

//#IMAGE_OVERHEAD_FACTOR = "1.5" //#IMAGE_ROOTFS_EXTRA_SPACE_append = "1024576" //#IMAGE_ROOTFS_EXTRA_SPACE = "1024576" //#IMAGE_FEATURES += " dev-pkgs tools-sdk " //#IMAGE_INSTALL_append = " vim busybox phoronix-test-suite packagegroup-core-base-utils " //#IMAGE_INSTALL_append += " vim xeyes xwininfo helloyocto hellogtk " //#IMAGE_INSTALL_append = " gtk+3 libzip-dev zlib zip php php-cgi lighttpd lighttpd-module-fastcgi " //#CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland " //#LICENSE_FLAGS_WHITELIST += " commercial_libav commercial_x264 " //#CORE_IMAGE_EXTRA_INSTALL += "chromium-x11 libexif" //#LICENSE_FLAGS_WHITELIST="commercial"

//#IMAGE_INSTALL_append = " vim " //#IMAGE_INSTALL_remove = " packagegroup-qt5-imx packagegroup-imx-ml " //#PACKAGE_EXCLUDE = "  opencv "

Inbuild/conf/local.conf. It can add parameter below to reduce the system resource usage.

BB_NUMBER_THREADS = "Half of you CPU core"  # Ex. 8 core CPU, it can set 4
PARALLEL_MAKE = "-j Half of your CPU core" # Ex. 8 core CPU, it can set 4</code>
    1. Set BB_NUMBER_THREADS echo 'BB_NUMBER_THREADS = "8"' | sudo tee -a conf/local.conf
    1. Set PARALLEL_MAKE echo 'PARALLEL_MAKE = "-j 8"' | sudo tee -a conf/local.conf
  1. 適用於 build_ProjectA/conf/local.conf 和 build_ProjectB/conf/local.conf

SSTATE_DIR = "${BSPDIR}//sstate-cache" DL_DIR ?= "${BSPDIR}/downloads/"

Yocto2.1:

WARNING: Invalid protocol (\ftp) in MIRRORS: \ ftp://./. http://downloads.yoctoproject.org/mirror/sources/ ERROR:  OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:

Fetcher failure for URL: ' https://eula-downloads.yoctoproject.org/index.php' . URL https://eula-downloads.yoctoproject.org/index.php doesn't work. Please ensure your network is configured correctly.

touch conf/sanity.conf
  1. Use the following BitBake command form to fetch all the necessary sources without starting the build:

$ bitbake target --runall=fetch