Difference between revisions of "Conf local.conf"

From ESS-WIKI
Jump to: navigation, search
 
(9 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
IMAGE_INSTALL_append = " tcpdump spdlog-dev qtserialport ethtool "
 
IMAGE_INSTALL_append = " tcpdump spdlog-dev qtserialport ethtool "
  
//#IMAGE_OVERHEAD_FACTOR = "1.5"
+
//#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_ROOTFS_EXTRA_SPACE_append = "1024576"
+
//#IMAGE_INSTALL_append = " vim "<br/> //#IMAGE_INSTALL_remove = " packagegroup-qt5-imx packagegroup-imx-ml "<br/> //#PACKAGE_EXCLUDE = " &nbsp;opencv "
  
//#IMAGE_ROOTFS_EXTRA_SPACE = "1024576"
+
&nbsp;
  
//#IMAGE_FEATURES += " dev-pkgs tools-sdk "
+
<code><font face="sans-serif, Arial, Verdana, Trebuchet MS">In&nbsp;</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>
  
//#IMAGE_INSTALL_append = " vim busybox phoronix-test-suite packagegroup-core-base-utils "
+
#1. Set&nbsp;BB_NUMBER_THREADS<br/> echo 'BB_NUMBER_THREADS = "8"' | sudo tee -a conf/local.conf
  
//#IMAGE_INSTALL_append += " vim xeyes xwininfo helloyocto hellogtk "
+
#2. Set&nbsp;PARALLEL_MAKE<br/> echo 'PARALLEL_MAKE = "-j 8"' | sudo tee -a conf/local.conf
  
//#IMAGE_INSTALL_append = " gtk+3 libzip-dev zlib zip php php-cgi lighttpd lighttpd-module-fastcgi "
+
&nbsp;
  
//#CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland "
+
#適用於 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&nbsp;?= "${BSPDIR}/downloads/"</div>
 +
&nbsp;
  
//#LICENSE_FLAGS_WHITELIST += " commercial_libav commercial_x264 "
+
Yocto2.1:
  
//#CORE_IMAGE_EXTRA_INSTALL += "chromium-x11 libexif"
+
WARNING: Invalid protocol (\ftp) in MIRRORS: \[ftp://.*/.* ftp://.*/.*] &nbsp; &nbsp; &nbsp;[http://downloads.yoctoproject.org/mirror/sources/ http://downloads.yoctoproject.org/mirror/sources/]<br/> ERROR: &nbsp;OE-core's config sanity checker detected a potential misconfiguration.<br/> &nbsp; &nbsp; Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).<br/> &nbsp; &nbsp; Following is the list of potential problems / advisories:
  
//#LICENSE_FLAGS_WHITELIST="commercial"
+
&nbsp; &nbsp; 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. 1. Set BB_NUMBER_THREADS
    echo 'BB_NUMBER_THREADS = "8"' | sudo tee -a conf/local.conf
  1. 2. 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