Skip to contentSkip to conversation

ref-manual: remove unused example recipe source files

PATCH Michael Opdenacker 3 participants 9 messages Jul 27, 2021 – Aug 2, 2021 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello Quentin,

Quoted 100 lines · Michael Opdenacker

These files are not used to build to documentation

---
 .../examples/hello-autotools/hello_2.10.bb      |  9 ---------
 .../examples/hello-single/files/helloworld.c    |  8 --------
 .../ref-manual/examples/hello-single/hello.bb   | 17 -----------------
 .../ref-manual/examples/libxpm/libxpm_3.5.6.bb  | 14 --------------
 .../examples/mtd-makefile/mtd-utils_1.0.0.bb    | 15 ---------------
 5 files changed, 63 deletions(-)
 delete mode 100644 documentation/ref-manual/examples/hello-autotools/hello_2.10.bb
 delete mode 100644 documentation/ref-manual/examples/hello-single/files/helloworld.c
 delete mode 100644 documentation/ref-manual/examples/hello-single/hello.bb
 delete mode 100644 documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb
 delete mode 100644 documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb
documentation/ref-manual/examples/hello-autotools/hello_2.10.bb deleted +0 -9
deleted file mode 100644
index aa2beb9a9b..0000000000
@@ -1,9 +0,0 @@
-DESCRIPTION = "GNU Helloworld application"
-SECTION = "examples"
-LICENSE = "GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
-
-SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.gz"
-SRC_URI[sha256sum] = "31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b"
-
-inherit autotools-brokensep gettext
documentation/ref-manual/examples/hello-single/files/helloworld.c deleted +0 -8
deleted file mode 100644
index fc7169b7b8..0000000000
@@ -1,8 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
-	printf("Hello world!\n");
-
-	return 0;
-}
documentation/ref-manual/examples/hello-single/hello.bb deleted +0 -17
deleted file mode 100644
index 90d3aefd86..0000000000
@@ -1,17 +0,0 @@
-DESCRIPTION = "Simple helloworld application"
-SECTION = "examples"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI = "file://helloworld.c"
-
-S = "${WORKDIR}"
-
-do_compile() {
-	${CC} ${LDFLAGS} helloworld.c -o helloworld
-}
-
-do_install() {
-	install -d ${D}${bindir}
-	install -m 0755 helloworld ${D}${bindir}
-}
documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb deleted +0 -14
deleted file mode 100644
index c0c8986405..0000000000
@@ -1,14 +0,0 @@
-require recipes-graphics/xorg-lib/xorg-lib-common.inc
-
-DESCRIPTION = "X11 Pixmap library"
-LICENSE = "X-BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3e07763d16963c3af12db271a31abaa5"
-DEPENDS += "libxext"
-PR = "r2"
-PE = "1"
-
-XORG_PN = "libXpm"
-
-PACKAGES =+ "sxpm cxpm"
-FILES_cxpm = "${bindir}/cxpm"
-FILES_sxpm = "${bindir}/sxpm"
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -5
deleted file mode 100644
index 5d05a437a4..0000000000
@@ -1,15 +0,0 @@
-DESCRIPTION = "Tools for managing memory technology devices."
-SECTION = "base"
-DEPENDS = "zlib"
-HOMEPAGE = "http://www.linux-mtd.infradead.org/"
-LICENSE = "GPLv2"

documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb line 15

Quoted 10 lines
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -10
-LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
-                    file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
-
-SRC_URI = "ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-${PV}.tar.gz"
-
-CFLAGS_prepend = "-I ${S}/include "
-
-do_install() {
-	oe_runmake install DESTDIR=${D}
-}

This is probably a controversial commit. Rather than asking a question, I preferred to send a patch.

Apparently, you were the last one to touch these files, so don't hesitate to stop me and let us know why we should keep these files. Maybe to make sure that our examples still compile? However, I found at least one file that is not in sync with the contents of the documentation.

Thanks in advance,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hi Michael,

Quoted 117 lines · Michael Opdenacker

Hello Quentin,

Quoted 100 lines · Michael Opdenacker

These files are not used to build to documentation

---
 .../examples/hello-autotools/hello_2.10.bb      |  9 ---------
 .../examples/hello-single/files/helloworld.c    |  8 --------
 .../ref-manual/examples/hello-single/hello.bb   | 17 -----------------
 .../ref-manual/examples/libxpm/libxpm_3.5.6.bb  | 14 --------------
 .../examples/mtd-makefile/mtd-utils_1.0.0.bb    | 15 ---------------
 5 files changed, 63 deletions(-)
 delete mode 100644 documentation/ref-manual/examples/hello-autotools/hello_2.10.bb
 delete mode 100644 documentation/ref-manual/examples/hello-single/files/helloworld.c
 delete mode 100644 documentation/ref-manual/examples/hello-single/hello.bb
 delete mode 100644 documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb
 delete mode 100644 documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb
documentation/ref-manual/examples/hello-autotools/hello_2.10.bb deleted +0 -9
deleted file mode 100644
index aa2beb9a9b..0000000000
@@ -1,9 +0,0 @@
-DESCRIPTION = "GNU Helloworld application"
-SECTION = "examples"
-LICENSE = "GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
-
-SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.gz"
-SRC_URI[sha256sum] = "31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b"
-
-inherit autotools-brokensep gettext
documentation/ref-manual/examples/hello-single/files/helloworld.c deleted +0 -8
deleted file mode 100644
index fc7169b7b8..0000000000
@@ -1,8 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
-	printf("Hello world!\n");
-
-	return 0;
-}
documentation/ref-manual/examples/hello-single/hello.bb deleted +0 -17
deleted file mode 100644
index 90d3aefd86..0000000000
@@ -1,17 +0,0 @@
-DESCRIPTION = "Simple helloworld application"
-SECTION = "examples"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI = "file://helloworld.c"
-
-S = "${WORKDIR}"
-
-do_compile() {
-	${CC} ${LDFLAGS} helloworld.c -o helloworld
-}
-
-do_install() {
-	install -d ${D}${bindir}
-	install -m 0755 helloworld ${D}${bindir}
-}
documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb deleted +0 -14
deleted file mode 100644
index c0c8986405..0000000000
@@ -1,14 +0,0 @@
-require recipes-graphics/xorg-lib/xorg-lib-common.inc
-
-DESCRIPTION = "X11 Pixmap library"
-LICENSE = "X-BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3e07763d16963c3af12db271a31abaa5"
-DEPENDS += "libxext"
-PR = "r2"
-PE = "1"
-
-XORG_PN = "libXpm"
-
-PACKAGES =+ "sxpm cxpm"
-FILES_cxpm = "${bindir}/cxpm"
-FILES_sxpm = "${bindir}/sxpm"
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -5
deleted file mode 100644
index 5d05a437a4..0000000000
@@ -1,15 +0,0 @@
-DESCRIPTION = "Tools for managing memory technology devices."
-SECTION = "base"
-DEPENDS = "zlib"
-HOMEPAGE = "https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linux-2Dmtd.infradead.org_&d=DwICaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=eyb4BYFT9E-HdgVPGQm8pJMdNlXGefc8FzxjWoAmrcs&s=rDxXZI7Evhz9_J8vJmFmp7sfSRycLIHpvHm2-rhxYYQ&e= "
-LICENSE = "GPLv2"

documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb line 15

Quoted 10 lines
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -10
-LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
-                    file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
-
-SRC_URI = "https://urldefense.proofpoint.com/v2/url?u=ftp-3A__ftp.infradead.org_pub_mtd-2Dutils_mtd-2Dutils-2D-24-257BPV-257D.tar.gz&d=DwICaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=eyb4BYFT9E-HdgVPGQm8pJMdNlXGefc8FzxjWoAmrcs&s=iW6rRvnv1zLX6sYtZjtYVLji9LdaUjp64SzvLGJhKC0&e= "
-
-CFLAGS_prepend = "-I ${S}/include "
-
-do_install() {
-	oe_runmake install DESTDIR=${D}
-}

This is probably a controversial commit. Rather than asking a question, I preferred to send a patch.

Quoted 5 lines

Apparently, you were the last one to touch these files, so don't hesitate to stop me and let us know why we should keep these files. Maybe to make sure that our examples still compile? However, I found at least one file that is not in sync with the contents of the documentation.

I wouldn't remove them as I find example recipes to be very welcomed as real life examples of what can/needs to be done. It shows also some gotchas and what a minimal recipe should look like.

What I have to complain about those files currently is that they are not built and they weren't working for a while, which is a bit of a shame for example recipes :)

I don't think keeping them in the yocto-docs is something we want to push for (at least I won't), but I feel like we should keep them somewhere they are built so we maintain them along other recipes.

I can see that we have a recipe for an out-of-tree kernel drievr recipe available in poky/meta-skeleton layer (called hello-mod). I guess this is a place we could put the examples you want to remove from yocto-docs?

Cheers,
Quentin

#3 lore raw
Quoted 134 lines · Quentin Schulz

Hi Michael,

Quoted 117 lines · Michael Opdenacker

Hello Quentin,

Quoted 100 lines · Michael Opdenacker

These files are not used to build to documentation

---

 .../examples/hello-autotools/hello_2.10.bb      |  9 ---------
 .../examples/hello-single/files/helloworld.c    |  8 --------
 .../ref-manual/examples/hello-single/hello.bb   | 17 -----------------
 .../ref-manual/examples/libxpm/libxpm_3.5.6.bb  | 14 --------------
 .../examples/mtd-makefile/mtd-utils_1.0.0.bb    | 15 ---------------
 5 files changed, 63 deletions(-)

 delete mode 100644 documentation/ref-manual/examples/hello-autotools/hello_2.10.bb delete mode 100644 documentation/ref-manual/examples/hello-single/files/helloworld.c delete mode 100644 documentation/ref-manual/examples/hello-single/hello.bb delete mode 100644 documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb delete mode 100644 documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb

documentation/ref-manual/examples/hello-autotools/hello_2.10.bb deleted +0 -9
deleted file mode 100644
index aa2beb9a9b..0000000000
@@ -1,9 +0,0 @@
-DESCRIPTION = "GNU Helloworld application"
-SECTION = "examples"
-LICENSE = "GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
-
-SRC_URI = "${GNU_MIRROR}/hello/hello-${PV}.tar.gz"
-SRC_URI[sha256sum] = "31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b"
-
-inherit autotools-brokensep gettext
documentation/ref-manual/examples/hello-single/files/helloworld.c deleted +0 -8
deleted file mode 100644
index fc7169b7b8..0000000000
@@ -1,8 +0,0 @@
-#include <stdio.h>
-
-int main(void)
-{
-	printf("Hello world!\n");
-
-	return 0;
-}
documentation/ref-manual/examples/hello-single/hello.bb deleted +0 -17
deleted file mode 100644
index 90d3aefd86..0000000000
@@ -1,17 +0,0 @@
-DESCRIPTION = "Simple helloworld application"
-SECTION = "examples"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI = "file://helloworld.c"
-
-S = "${WORKDIR}"
-
-do_compile() {
-	${CC} ${LDFLAGS} helloworld.c -o helloworld
-}
-
-do_install() {
-	install -d ${D}${bindir}
-	install -m 0755 helloworld ${D}${bindir}
-}
documentation/ref-manual/examples/libxpm/libxpm_3.5.6.bb deleted +0 -14
deleted file mode 100644
index c0c8986405..0000000000
@@ -1,14 +0,0 @@
-require recipes-graphics/xorg-lib/xorg-lib-common.inc
-
-DESCRIPTION = "X11 Pixmap library"
-LICENSE = "X-BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=3e07763d16963c3af12db271a31abaa5"
-DEPENDS += "libxext"
-PR = "r2"
-PE = "1"
-
-XORG_PN = "libXpm"
-
-PACKAGES =+ "sxpm cxpm"
-FILES_cxpm = "${bindir}/cxpm"
-FILES_sxpm = "${bindir}/sxpm"
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -5
deleted file mode 100644
index 5d05a437a4..0000000000
@@ -1,15 +0,0 @@
-DESCRIPTION = "Tools for managing memory technology devices."
-SECTION = "base"
-DEPENDS = "zlib"
-HOMEPAGE = "https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linux-2Dmtd.infradead.org_&d=DwICaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=eyb4BYFT9E-HdgVPGQm8pJMdNlXGefc8FzxjWoAmrcs&s=rDxXZI7Evhz9_J8vJmFmp7sfSRycLIHpvHm2-rhxYYQ&e= "
-LICENSE = "GPLv2"

documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb line 15

Quoted 10 lines
documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb deleted +0 -10
-LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
-                    file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
-
-SRC_URI = "https://urldefense.proofpoint.com/v2/url?u=ftp-3A__ftp.infradead.org_pub_mtd-2Dutils_mtd-2Dutils-2D-24-257BPV-257D.tar.gz&d=DwICaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=eyb4BYFT9E-HdgVPGQm8pJMdNlXGefc8FzxjWoAmrcs&s=iW6rRvnv1zLX6sYtZjtYVLji9LdaUjp64SzvLGJhKC0&e= "
-
-CFLAGS_prepend = "-I ${S}/include "
-
-do_install() {
-	oe_runmake install DESTDIR=${D}
-}

This is probably a controversial commit. Rather than asking a question, I preferred to send a patch.

Quoted 5 lines

Apparently, you were the last one to touch these files, so don't hesitate to stop me and let us know why we should keep these files. Maybe to make sure that our examples still compile? However, I found at least one file that is not in sync with the contents of the documentation.

I wouldn't remove them as I find example recipes to be very welcomed as real life examples of what can/needs to be done. It shows also some gotchas and what a minimal recipe should look like.

What I have to complain about those files currently is that they are not built and they weren't working for a while, which is a bit of a shame for example recipes :)

Quoted 7 lines

I don't think keeping them in the yocto-docs is something we want to push for (at least I won't), but I feel like we should keep them somewhere they are built so we maintain them along other recipes.

I can see that we have a recipe for an out-of-tree kernel drievr recipe available in poky/meta-skeleton layer (called hello-mod). I guess this is a place we could put the examples you want to remove from yocto-docs?

If they were in meta-skeleton we could build/test them...

Cheers,

Richard

#4 lore raw

Richard, Quentin,

Many thanks for your feedback.

Quoted 9 lines · Richard Purdie
Quoted 8 lines · Quentin Schulz

I wouldn't remove them as I find example recipes to be very welcomed as real life examples of what can/needs to be done. It shows also some gotchas and what a minimal recipe should look like.

What I have to complain about those files currently is that they are not built and they weren't working for a while, which is a bit of a shame for example recipes :)

Quoted 8 lines
Quoted 7 lines

I don't think keeping them in the yocto-docs is something we want to push for (at least I won't), but I feel like we should keep them somewhere they are built so we maintain them along other recipes.

I can see that we have a recipe for an out-of-tree kernel drievr recipe available in poky/meta-skeleton layer (called hello-mod). I guess this is a place we could put the examples you want to remove from yocto-docs?

If they were in meta-skeleton we could build/test them...

Thanks for the suggestion! I'll propose a patch doing this.

Cheers,

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Richard, Quentin, Nicolas and others,

Quoted 18 lines · Michael Opdenacker

Richard, Quentin,

Many thanks for your feedback.

Quoted 13 lines · Richard Purdie
Quoted 12 lines · Quentin Schulz

I wouldn't remove them as I find example recipes to be very welcomed as real life examples of what can/needs to be done. It shows also some gotchas and what a minimal recipe should look like.

What I have to complain about those files currently is that they are not built and they weren't working for a while, which is a bit of a shame for example recipes :)

I don't think keeping them in the yocto-docs is something we want to push for (at least I won't), but I feel like we should keep them somewhere they are built so we maintain them along other recipes.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

I can see that we have a recipe for an out-of-tree kernel drievr recipe available in poky/meta-skeleton layer (called hello-mod). I guess this is a place we could put the examples you want to remove from yocto-docs?

If they were in meta-skeleton we could build/test them...

Thanks for the suggestion! I'll propose a patch doing this.

While I had no problem moving and testing the "hello-single", "hello-autotools"  (GNU hello actually) and "libxpm" recipe examples, I'm struggling with the "mtd-utils" one.

Neither the example recipe (version 1.0.0:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb)
nor the one which source code is directly in the documentation (version 1.5.1+:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/dev-manual/common-tasks.rst#n2307)
compile any more.

Given that we have an upstream mtd-utils recipe that works, what's the point of trying to fix a broken example? This seems like a waste of effort to me...

So, may I drop that old mtd-utils example?

Thanks in advance for your advice.
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw
Quoted 39 lines · Michael Opdenacker

Richard, Quentin, Nicolas and others,

Quoted 18 lines · Michael Opdenacker

Richard, Quentin,

Many thanks for your feedback.

Quoted 13 lines · Richard Purdie
Quoted 12 lines · Quentin Schulz

I wouldn't remove them as I find example recipes to be very welcomed as real life examples of what can/needs to be done. It shows also some gotchas and what a minimal recipe should look like.

What I have to complain about those files currently is that they are not built and they weren't working for a while, which is a bit of a shame for example recipes :)

I don't think keeping them in the yocto-docs is something we want to push for (at least I won't), but I feel like we should keep them somewhere they are built so we maintain them along other recipes.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

I can see that we have a recipe for an out-of-tree kernel drievr recipe available in poky/meta-skeleton layer (called hello-mod). I guess this is a place we could put the examples you want to remove from yocto-docs?

If they were in meta-skeleton we could build/test them...

Thanks for the suggestion! I'll propose a patch doing this.

While I had no problem moving and testing the "hello-single", "hello-autotools"  (GNU hello actually) and "libxpm" recipe examples, I'm struggling with the "mtd-utils" one.

Neither the example recipe (version 1.0.0:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb)
nor the one which source code is directly in the documentation (version 1.5.1+:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/dev-manual/common-tasks.rst#n2307)
compile any more.

Quoted 5 lines

Given that we have an upstream mtd-utils recipe that works, what's the point of trying to fix a broken example? This seems like a waste of effort to me...

So, may I drop that old mtd-utils example?

I'd say yes, that one isn't adding value.

Cheers,

Richard

#8 lore raw

Hi Richard,

Quoted 12 lines · Richard Purdie
Quoted 12 lines

While I had no problem moving and testing the "hello-single", "hello-autotools"  (GNU hello actually) and "libxpm" recipe examples, I'm struggling with the "mtd-utils" one.

Neither the example recipe (version 1.0.0:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb)
nor the one which source code is directly in the documentation (version 1.5.1+:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/dev-manual/common-tasks.rst#n2307)
compile any more.

Quoted 6 lines
Quoted 5 lines

Given that we have an upstream mtd-utils recipe that works, what's the point of trying to fix a broken example? This seems like a waste of effort to me...

So, may I drop that old mtd-utils example?

I'd say yes, that one isn't adding value.

Thanks for confirming this.

I'm waiting for you to merge my oe-core patch
(https://lists.openembedded.org/g/openembedded-core/message/154245) to remove these examples from the documentation.

Thank you in advance,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 18 lines · Michael Opdenacker

Hi Richard,

Quoted 15 lines · Richard Purdie
Quoted 15 lines

While I had no problem moving and testing the "hello-single", "hello-autotools"  (GNU hello actually) and "libxpm" recipe examples, I'm struggling with the "mtd-utils" one.

Neither the example recipe (version 1.0.0:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb)
nor the one which source code is directly in the documentation (version 1.5.1+:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/dev-manual/common-tasks.rst#n2307)
compile any more.

Given that we have an upstream mtd-utils recipe that works, what's the point of trying to fix a broken example? This seems like a waste of effort to me...

Quoted 7 lines
Quoted 2 lines
Quoted 1 line

So, may I drop that old mtd-utils example?

I'd say yes, that one isn't adding value.

Thanks for confirming this.

I'm waiting for you to merge my oe-core patch
(https://lists.openembedded.org/g/openembedded-core/message/154245) to remove these examples from the documentation.

This is done now (thanks Richard!).
The description of this change has been updated and the commit is in master-next now.

Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#12 lore raw

Greetings,

Quoted 11 lines · Michael Opdenacker

While I had no problem moving and testing the "hello-single", "hello-autotools"  (GNU hello actually) and "libxpm" recipe examples, I'm struggling with the "mtd-utils" one.

Neither the example recipe (version 1.0.0:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/ref-manual/examples/mtd-makefile/mtd-utils_1.0.0.bb)
nor the one which source code is directly in the documentation (version 1.5.1+:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/tree/documentation/dev-manual/common-tasks.rst#n2307)
compile any more.

Quoted 5 lines

Given that we have an upstream mtd-utils recipe that works, what's the point of trying to fix a broken example? This seems like a waste of effort to me...

So, may I drop that old mtd-utils example?

Following this thread, I posted a patch for OE-core to add the 3 examples that are still working fine:
https://lists.openembedded.org/g/openembedded-core/message/154245

I'll remove the files from the documentation (including the broken "mtd-utils" one) once this patch is accepted.

Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com