Skip to contentSkip to conversation

poky: fix typos

PATCH In review Vivien Didelot 2 participants 4 messages Mar 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 poky: fix typos

From: Vivien Didelot <[email protected]>

Fix fromw -> from typo in poky-world-exclude.inc, and confiruration -> configuration in poky-tiny.conf.

---
 meta-poky/conf/distro/include/poky-world-exclude.inc | 2 +-
 meta-poky/conf/distro/poky-tiny.conf                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-poky/conf/distro/include/poky-world-exclude.inc +1 -1
index 1a2dea5..f3ac59c 100644
@@ -1,4 +1,4 @@
 #
-# Things we exlude fromw world testing within the reference distro
+# Things we exlude from world testing within the reference distro
 #
 
meta-poky/conf/distro/poky-tiny.conf +1 -1
index 5a867b1..e4ff975 100644
@@ -26,7 +26,7 @@
 # [ ] Drop ldconfig from the installation
 # [ ] Modify the runqemu scripts to work with ext2 parameter:
 #     runqemu qemux86 qemuparams="-nographic" bootparams="console=ttyS0,115200 root=0800"
-# [ ] Modify busybox to allow for DISTRO_FEATURES-like confiruration
+# [ ] Modify busybox to allow for DISTRO_FEATURES-like configuration
 
 require conf/distro/poky.conf
 require conf/distro/include/gcsections.inc
Signature · 1 line
2.30.1
#1 lore raw

PATCH 2/3 poky: don't use space with +=

From: Vivien Didelot <[email protected]>

Bitbake variables are usually appended with one of:

FOO_append = " bar"
FOO += "bar"

While the space is mandatory in the "_append" variant, it doesn't hurt in the "+=" variant, but it can be misleading.

Remove the space to avoid confusion.

---
 meta-poky/conf/distro/poky.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-poky/conf/distro/poky.conf +2 -2
index 623f39d..4e416c0 100644
@@ -25,8 +25,8 @@ PREFERRED_VERSION_linux-yocto-rt ?= "5.10%"
 SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
 SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
 
-DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}"
-DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
+DISTRO_EXTRA_RDEPENDS += "${POKY_DEFAULT_EXTRA_RDEPENDS}"
+DISTRO_EXTRA_RRECOMMENDS += "${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
 
 TCLIBCAPPEND = ""
 
Signature · 1 line
2.30.1
#2 lore raw

PATCH 3/3 beaglebone-yocto: allow other virtual/bootloader

In reply to Vivien Didelot

From: Vivien Didelot <[email protected]>

The beaglebone-yocto machine currently hardcodes "u-boot" as a dependency for the image and the wic format, and this prevents one from choosing a different bootloader via:

PREFERRED_PROVIDER_virtual/bootloader = "non-u-boot-bootloader"

Depending on "virtual/bootloader" instead of "u-boot" fixes this.

Cc Denys Dmytriyenko <[email protected]>
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +2 -2
index f8368eb..04cbd3b 100644
@@ -9,7 +9,7 @@ XSERVER ?= "xserver-xorg \
 
 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
 
-EXTRA_IMAGEDEPENDS += "u-boot"
+EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
 DEFAULTTUNE ?= "cortexa8hf-neon"
 include conf/machine/include/tune-cortexa8.inc
@@ -18,7 +18,7 @@ IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 EXTRA_IMAGECMD_jffs2 = "-lnp "
 WKS_FILE ?= "beaglebone-yocto.wks"
 IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
-do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy"
+do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
Signature · 1 line
2.30.1
Reviewed-by on v1 3/3
#3 lore raw

Re: [poky] [meta-yocto][PATCH 3/3] beaglebone-yocto: allow other virtual/bootloader

Quoted 6 lines · Vivien Didelot

From: Vivien Didelot <[email protected]>

The beaglebone-yocto machine currently hardcodes "u-boot" as a dependency for the image and the wic format, and this prevents one from choosing a different bootloader via:

Quoted 6 lines

PREFERRED_PROVIDER_virtual/bootloader = "non-u-boot-bootloader"

Depending on "virtual/bootloader" instead of "u-boot" fixes this.

Cc Denys Dmytriyenko <[email protected]>
Quoted 29 lines
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-yocto-bsp/conf/machine/beaglebone-yocto.conf +2 -2
index f8368eb..04cbd3b 100644
@@ -9,7 +9,7 @@ XSERVER ?= "xserver-xorg \
 
 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree"
 
-EXTRA_IMAGEDEPENDS += "u-boot"
+EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
 DEFAULTTUNE ?= "cortexa8hf-neon"
 include conf/machine/include/tune-cortexa8.inc
@@ -18,7 +18,7 @@ IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
 EXTRA_IMAGECMD_jffs2 = "-lnp "
 WKS_FILE ?= "beaglebone-yocto.wks"
 IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
-do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy"
+do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
Signature · 1 line
2.30.1