Skip to contentSkip to conversation

overview-manual/concepts.rst: fix sayhello hardcoded bindir

PATCH New Antonin Godard 1 participant 1 message Jul 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 overview-manual/concepts.rst: fix sayhello hardcoded bindir

Replace the hardcoded /usr/bin by ${bindir}, as it should be.

---
 documentation/overview-manual/concepts.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
documentation/overview-manual/concepts.rst +2 -2
index b34de4d36..c61dcdde1 100644
@@ -2393,8 +2393,8 @@ The contents of ``sayhello_0.1.bb`` are::
    RDEPENDS:${PN} += "libhello"
 
    do_install(){
-      install -d ${D}/usr/bin
-      install -m 0700 sayhello ${D}/usr/bin
+      install -d ${D}${bindir}
+      install -m 0700 sayhello ${D}${bindir}
    }
 
 After placing the recipes in a custom layer we can run ``bitbake sayhello``

---
base-commit: 161a8549441e8c38791ab7f63001b2a15a39d2f2
change-id: 20250709-bindir-docs-a6b0d0325571

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>