Skip to contentSkip to conversation

u-boot-fw-utils: Allow target-specific fw_env.config

RFC In review Brad Mouring 5 participants 11 messages Jun 20, 2017 – Jun 21, 2017

lore
Share & tools
lore
#1 lore raw
In reply to Brad Mouring
Quoted 29 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for a board- or distro-specific fw_env.config override, instead opting to include the default (commented, example-filled) fw_env.config from the u-boot source. This change introduces a variable that allows for overriding this, while defaulting to the example config file from the u-boot source.

---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +5 -0
index c2e8f0fb84..b06282ac03 100644
@@ -7,6 +7,11 @@ INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
 EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
 
+# U-Boot environment configuration file variables. This file is used
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
 
 do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 4 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +0 -0
 }
 
 do_install_class-cross () {
Signature · 2 lines
Best regards,
Marek Vasut
#2 lore raw
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
Quoted 11 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 7 lines

do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream. I was unsure of the acceptability of a do_install_append.*() clobbering a file of the original do_install().

Thanks for the input.

Quoted 9 lines
Quoted 4 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +0 -0
 }
 
 do_install_class-cross () {
Signature · 2 lines
Best regards,
Marek Vasut

- Brad

#3 lore raw
Quoted 22 lines · Brad Mouring
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
Quoted 11 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 7 lines

do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
    install -d ${D}${sysconfdir}
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-   install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+   install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 6 lines

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream. I was unsure of the acceptability of a do_install_append.*() clobbering a file of the original do_install().

Thanks for the input.

Or split up the configuration to u-boot-fw-utils-config package and make u-boot-fw-utils generic? So we can have the configuration in a specific package.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#6 lore raw
In reply to Brad Mouring
Quoted 22 lines · Brad Mouring
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
Quoted 11 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 7 lines

do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 2 lines

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream.

Link?

Quoted 3 lines

I was unsure of the
acceptability of a do_install_append.*() clobbering a file of the original do_install().

That's probably what really needs to be discussed.

We can probably add some task which by default installs the fw_env.config example and can be overridden in meta-whatever . Maybe the others can jump into here and explain how to handle overriding the default config file best.

Signature · 2 lines
Best regards,
Marek Vasut
#0 lore raw

RFC 1/1 u-boot-fw-utils: Allow target-specific fw_env.config

As implemented currently, the fw-utils recipe does not allow for a board- or distro-specific fw_env.config override, instead opting to include the default (commented, example-filled) fw_env.config from the u-boot source. This change introduces a variable that allows for overriding this, while defaulting to the example config file from the u-boot source.

---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +6 -1
index c2e8f0fb84..b06282ac03 100644
@@ -7,6 +7,11 @@ INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
 EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
 
+# U-Boot environment configuration file variables. This file is used
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
 
 do_compile () {
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config
 }
 
 do_install_class-cross () {
Signature · 1 line
2.13.1
#4 lore raw
In reply to Otavio Salvador
Quoted 28 lines · Otavio Salvador
Quoted 27 lines · Brad Mouring
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
Quoted 11 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 7 lines

do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
    install -d ${D}${sysconfdir}
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-   install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+   install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream. I was unsure of the acceptability of a do_install_append.*() clobbering a file of the original do_install().

Quoted 5 lines
Quoted 1 line

Thanks for the input.

Or split up the configuration to u-boot-fw-utils-config package and make u-boot-fw-utils generic? So we can have the configuration in a specific package.

Keep in mind that u-boot-fw-utils is actually built for particular machine (it contains ie. the default env for that machine) so bundling the config file with it is IMO OK. No need to introduce additional packages for every simple file.

Signature · 2 lines
Best regards,
Marek Vasut
#5 lore raw
Quoted 31 lines · Marek Vasut
Quoted 30 lines · Otavio Salvador
Quoted 28 lines · Brad Mouring
Quoted 9 lines · Marek Vasut
Quoted 8 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
Quoted 11 lines

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 7 lines

do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
    install -d ${D}${sysconfdir}
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
    install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-   install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+   install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream. I was unsure of the acceptability of a do_install_append.*() clobbering a file of the original do_install().

Thanks for the input.

Quoted 8 lines
Quoted 3 lines

Or split up the configuration to u-boot-fw-utils-config package and make u-boot-fw-utils generic? So we can have the configuration in a specific package.

Keep in mind that u-boot-fw-utils is actually built for particular machine (it contains ie. the default env for that machine) so bundling the config file with it is IMO OK. No need to introduce additional packages for every simple file.

I will propose one patch. See what you think ...

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw
In reply to Marek Vasut
Quoted 23 lines · Marek Vasut
Quoted 22 lines · Brad Mouring
Quoted 20 lines · Marek Vasut
Quoted 10 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
 
 do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 4 lines
Quoted 2 lines

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream.

Link?

I know it's not a great answer, but we've not pushed the version of the branch where these changes are going in. Eventually, they'll end up in this repo:

https://github.com/ni/meta-nilrt

Quoted 10 lines
Quoted 3 lines

I was unsure of the
acceptability of a do_install_append.*() clobbering a file of the original do_install().

That's probably what really needs to be discussed.

We can probably add some task which by default installs the fw_env.config example and can be overridden in meta-whatever . Maybe the others can jump into here and explain how to handle overriding the default config file best.

That sounds like a solution that would certainly work for this use-case, if no one pipes up with objections or a currently-unseen silver bullet solution, I'll try to whip something together tomorrow and post. Thanks for the idea.

Denys, I know you keep pushing the "shove it in a do_install_append()", but to me and my under-informed sensibilities, this seems weird and unclean to clobber a file in a _append(), would it cause some QA failure?

Quoted 3 lines
Signature · 2 lines
Best regards,
Marek Vasut

Regards,
Brad Mouring

#8 lore raw
Quoted 46 lines · Brad Mouring
Quoted 23 lines · Marek Vasut
Quoted 22 lines · Brad Mouring
Quoted 20 lines · Marek Vasut
Quoted 10 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
 inherit uboot-config
 
 do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
 	install -d ${D}${sysconfdir}
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
 	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 4 lines
Quoted 2 lines

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream.

Link?

I know it's not a great answer, but we've not pushed the version of the branch where these changes are going in. Eventually, they'll end up in this repo:

https://github.com/ni/meta-nilrt

Quoted 10 lines
Quoted 3 lines

I was unsure of the
acceptability of a do_install_append.*() clobbering a file of the original do_install().

That's probably what really needs to be discussed.

We can probably add some task which by default installs the fw_env.config example and can be overridden in meta-whatever . Maybe the others can jump into here and explain how to handle overriding the default config file best.

Quoted 8 lines

That sounds like a solution that would certainly work for this use-case, if no one pipes up with objections or a currently-unseen silver bullet solution, I'll try to whip something together tomorrow and post. Thanks for the idea.

Denys, I know you keep pushing the "shove it in a do_install_append()", but to me and my under-informed sensibilities, this seems weird and unclean to clobber a file in a _append(), would it cause some QA failure?

Hmm, I mentioned it only once... To a patch that does already mention appending stuff...

Signature · 1 line
Denys
#9 lore raw
Quoted 52 lines · Denys Dmytriyenko
Quoted 51 lines · Brad Mouring
Quoted 23 lines · Marek Vasut
Quoted 22 lines · Brad Mouring
Quoted 20 lines · Marek Vasut
Quoted 10 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +4 -0
+# by the U-Boot environment utilities "fw_printenv" and "fw_setenv".
+# By default, use the default included in the U-Boot source
+UBOOT_FW_ENV_CONFIG ??= "${S}/tools/env/fw_env.config"
+
  inherit uboot-config
 
  do_compile () {

meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb do_install () { · line 27

Quoted 5 lines
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.05.bb +1 -1
@@ -19,7 +24,7 @@ do_install () {
  	install -d ${D}${sysconfdir}
  	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
  	install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
-	install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config
+	install -m 0644 ${UBOOT_FW_ENV_CONFIG} ${D}${sysconfdir}/fw_env.config

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

Quoted 4 lines
Quoted 2 lines

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream.

Link?

I know it's not a great answer, but we've not pushed the version of the branch where these changes are going in. Eventually, they'll end up in this repo:

https://github.com/ni/meta-nilrt

Quoted 10 lines
Quoted 3 lines

I was unsure of the
acceptability of a do_install_append.*() clobbering a file of the original do_install().

That's probably what really needs to be discussed.

We can probably add some task which by default installs the fw_env.config example and can be overridden in meta-whatever . Maybe the others can jump into here and explain how to handle overriding the default config file best.

That sounds like a solution that would certainly work for this use-case, if no one pipes up with objections or a currently-unseen silver bullet solution, I'll try to whip something together tomorrow and post. Thanks for the idea.

Quoted 7 lines
Quoted 3 lines

Denys, I know you keep pushing the "shove it in a do_install_append()", but to me and my under-informed sensibilities, this seems weird and unclean to clobber a file in a _append(), would it cause some QA failure?

Hmm, I mentioned it only once... To a patch that does already mention appending stuff...

We do this all the time for this recipe. It just takes a simple .bbappend like this one.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://fw_env.config \
"

do_install_append() {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
}

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "${MACHINE}"

#10 lore raw
In reply to Denys Dmytriyenko
Quoted 39 lines · Denys Dmytriyenko
Quoted 38 lines · Brad Mouring
Quoted 6 lines · Marek Vasut
Quoted 5 lines · Brad Mouring
Quoted 4 lines · Marek Vasut
Quoted 2 lines · Brad Mouring

As implemented currently, the fw-utils recipe does not allow for
...

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Do we really need yet another variable ? Wouldn't it make more sense to add do_install_append_yourmachine() {} in your meta-whatever to u-boot-fw-utils_%.bbappend and install whatever additional files you need ?

This is (kinda) what we were doing, there was some discussion as to whether or not this made sense upstream.

Link?

I know it's not a great answer, but we've not pushed the version of the branch where these changes are going in. Eventually, they'll end up in this repo:

https://github.com/ni/meta-nilrt

Quoted 10 lines
Quoted 3 lines

I was unsure of the
acceptability of a do_install_append.*() clobbering a file of the original do_install().

That's probably what really needs to be discussed.

We can probably add some task which by default installs the fw_env.config example and can be overridden in meta-whatever . Maybe the others can jump into here and explain how to handle overriding the default config file best.

That sounds like a solution that would certainly work for this use-case, if no one pipes up with objections or a currently-unseen silver bullet solution, I'll try to whip something together tomorrow and post. Thanks for the idea.

Quoted 6 lines
Quoted 3 lines

Denys, I know you keep pushing the "shove it in a do_install_append()", but to me and my under-informed sensibilities, this seems weird and unclean to clobber a file in a _append(), would it cause some QA failure?

Hmm, I mentioned it only once... To a patch that does already mention appending stuff...

Fair. I thought you'd also mentioned it on irc, but it doesn't really matter. After sleeping on it, I think I've gotten over my distaste for overwriting a file when we're already glomming changes atop the original recipe. I'll just take that approach.

Thanks,
Brad Mouring