Difference between revisions of "Conf local.conf"
Jems.cheng (talk | contribs) |
Jems.cheng (talk | contribs) |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
ACCEPT_FSL_EULA = "1" | ACCEPT_FSL_EULA = "1" | ||
| + | |||
INHERIT += "rm_work" | INHERIT += "rm_work" | ||
| + | |||
RM_WORK_EXCLUDE += " spdlog dtc " | RM_WORK_EXCLUDE += " spdlog dtc " | ||
| + | |||
UBOOT_CONFIG = "2G" | UBOOT_CONFIG = "2G" | ||
| − | + | IMAGE_INSTALL_append = " tcpdump spdlog-dev qtserialport ethtool " | |
| − | |||
| − | |||
| − | #IMAGE_FEATURES += " dev-pkgs tools-sdk " | + | //#IMAGE_OVERHEAD_FACTOR = "1.5"<br/> //#IMAGE_ROOTFS_EXTRA_SPACE_append = "1024576"<br/> //#IMAGE_ROOTFS_EXTRA_SPACE = "1024576"<br/> //#IMAGE_FEATURES += " dev-pkgs tools-sdk "<br/> //#IMAGE_INSTALL_append = " vim busybox phoronix-test-suite packagegroup-core-base-utils "<br/> //#IMAGE_INSTALL_append += " vim xeyes xwininfo helloyocto hellogtk "<br/> //#IMAGE_INSTALL_append = " gtk+3 libzip-dev zlib zip php php-cgi lighttpd lighttpd-module-fastcgi "<br/> //#CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland "<br/> //#LICENSE_FLAGS_WHITELIST += " commercial_libav commercial_x264 "<br/> //#CORE_IMAGE_EXTRA_INSTALL += "chromium-x11 libexif"<br/> //#LICENSE_FLAGS_WHITELIST="commercial" |
| − | IMAGE_INSTALL_append = " | + | //#IMAGE_INSTALL_append = " vim "<br/> //#IMAGE_INSTALL_remove = " packagegroup-qt5-imx packagegroup-imx-ml "<br/> //#PACKAGE_EXCLUDE = " opencv " |
| + | |||
| + | | ||
| + | |||
| + | <code><font face="sans-serif, Arial, Verdana, Trebuchet MS">In </font>build/conf/local.conf. It can add parameter below to reduce the system resource usage.</code> | ||
| + | <pre _ngcontent-ng-c2761297687="">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></pre> | ||
| + | |||
| + | #1. Set BB_NUMBER_THREADS<br/> echo 'BB_NUMBER_THREADS = "8"' | sudo tee -a conf/local.conf | ||
| + | |||
| + | #2. Set PARALLEL_MAKE<br/> echo 'PARALLEL_MAKE = "-j 8"' | sudo tee -a conf/local.conf | ||
| + | |||
| + | | ||
| + | |||
| + | #適用於 build_ProjectA/conf/local.conf 和 build_ProjectB/conf/local.conf | ||
| + | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">SSTATE_DIR = "${BSPDIR}//sstate-cache"</div> <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">DL_DIR ?= "${BSPDIR}/downloads/"</div> | ||
| + | | ||
| + | |||
| + | Yocto2.1: | ||
| + | |||
| + | WARNING: Invalid protocol (\ftp) in MIRRORS: \[ftp://.*/.* ftp://.*/.*] [http://downloads.yoctoproject.org/mirror/sources/ http://downloads.yoctoproject.org/mirror/sources/]<br/> ERROR: OE-core's config sanity checker detected a potential misconfiguration.<br/> Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).<br/> Following is the list of potential problems / advisories: | ||
| − | + | Fetcher failure for URL: '[https://eula-downloads.yoctoproject.org/index.php' https://eula-downloads.yoctoproject.org/index.php']. URL [https://eula-downloads.yoctoproject.org/index.php https://eula-downloads.yoctoproject.org/index.php] doesn't work. Please ensure your network is configured correctly. | |
| − | + | <pre>touch conf/sanity.conf</pre> | |
| − | |||
| − | # | + | ### Use the following BitBake command form to fetch all the necessary sources without starting the build: |
| − | # | + | <div style="background:#eeeeee;border:1px solid #cccccc;padding:5px 10px;">$ bitbake target --runall=fetch</div> |
| − | # | ||
| − | |||
Latest revision as of 02:40, 10 December 2025
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 "
In build/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
- 2. Set PARALLEL_MAKE
echo 'PARALLEL_MAKE = "-j 8"' | sudo tee -a conf/local.conf
- 適用於 build_ProjectA/conf/local.conf 和 build_ProjectB/conf/local.conf
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
- Use the following BitBake command form to fetch all the necessary sources without starting the build: