From a580f673d8120c96b9a854cd70ae2ebc8a048c57 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 18 Jul 2024 18:01:55 +0800 Subject: [PATCH] Yocto:IGKBoard-All: Update example local.conf to add build task number configure support --- yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf | 12 ++++++++++-- yocto/meta-igkboard/images/yocto-image-full.bb | 8 +++----- yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb | 2 +- yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf | 11 +++++++++-- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf b/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf index 5fb8429..cdf460d 100644 --- a/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf +++ b/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf @@ -1,7 +1,7 @@ MACHINE ??= 'igkboard-imx6ull' DISTRO ?= 'fsl-imx-wayland' PACKAGE_CLASSES ?= 'package_deb' -EXTRA_IMAGE_FEATURES ?= "debug-tweaks" +EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-sdk tools-debug" USER_CLASSES ?= "buildstats" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ @@ -16,7 +16,7 @@ PACKAGECONFIG:append_pn-qemu-system-native = " sdl" CONF_VERSION = "2" -#DL_DIR ?= "${HOME}/oe-sources-yocto/" +#DL_DIR ?= "${HOME}/downloads/" ACCEPT_FSL_EULA = "1" LICENSE_FLAGS_ACCEPTED = "commercial" @@ -24,3 +24,10 @@ # Switch to Debian packaging and include package-management in the image PACKAGE_CLASSES = "package_deb" EXTRA_IMAGE_FEATURES += "package-management" + +# uncomment these lines, you can set the parallel jobs to build +#BB_NUMBER_THREADS = "16" +#PARALLEL_MAKE = "-j 16" + +# don't install u-boot and linux kernel images to /boot +IMAGE_INSTALL:remove = " u-boot-imx linux-imx " diff --git a/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf b/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf index 0b9c6f2..d22a65f 100644 --- a/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf +++ b/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf @@ -1,7 +1,7 @@ MACHINE ??= 'igkboard-imx8mp' DISTRO ?= 'fsl-imx-wayland' PACKAGE_CLASSES ?= 'package_deb' -EXTRA_IMAGE_FEATURES ?= "debug-tweaks" +EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-sdk tools-debug" USER_CLASSES ?= "buildstats" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ @@ -16,11 +16,19 @@ PACKAGECONFIG:append_pn-qemu-system-native = " sdl" CONF_VERSION = "2" -#DL_DIR ?= "${HOME}/oe-sources-yocto/" +#DL_DIR ?= "${HOME}/downloads/" ACCEPT_FSL_EULA = "1" LICENSE_FLAGS_ACCEPTED = "commercial" +PACKAGECONFIG:pn-gstreamer1.0-plugins-ugly += "x264" # Switch to Debian packaging and include package-management in the image PACKAGE_CLASSES = "package_deb" EXTRA_IMAGE_FEATURES += "package-management" + +# uncomment these lines, you can set the parallel jobs to build +#BB_NUMBER_THREADS = "16" +#PARALLEL_MAKE = "-j 16" + +# don't install u-boot and linux kernel images to /boot +IMAGE_INSTALL:remove = " u-boot-imx linux-imx " diff --git a/yocto/meta-igkboard/images/yocto-image-full.bb b/yocto/meta-igkboard/images/yocto-image-full.bb index c31a3f9..d08d1f2 100644 --- a/yocto/meta-igkboard/images/yocto-image-full.bb +++ b/yocto/meta-igkboard/images/yocto-image-full.bb @@ -8,12 +8,10 @@ #IMAGE_ROOTFS_EXTRA_SPACE = "512000" inherit extrausers -# Create the password hash with following command on host: -# >> mkpasswd -m sha256crypt password -S abcd6789 -# Remember to escape the character $ in the resulting hash -# Set the root password: -#PASSWD="\$5\$abcd6789\$Vuv1aLz04ZwhxgsB3lOQbwy1XUS6PJ.8h2A7.9HoUd3" +# Set the root password: >> mkpasswd -m sha256crypt 123456 -S abcd6789 +# Remember to escape the character $ in the resulting hash +#PASSWD="\$5\$abcd6789\$2ayD.ZPdq5xejNiyE3XC3qCpkGZ.brSE5H0zSECVBSB" EXTRA_USERS_PARAMS = "\ usermod -p '${PASSWD}' root; \ " diff --git a/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb b/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb index bcba75d..7156849 100644 --- a/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb +++ b/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" # recipe version -PV = "1" +PV = "1.0" PR = "r0" # There is /usr/bin/hello link to hello.lmbench, so can not use application name 'hello' here -- Gitblit v1.9.1