linux-ti-staging: fix missing kernel image in /boot
PATCH 1/1 linux-ti-staging: fix missing kernel image in /boot
From: Denys Dmytriyenko <[email protected]>
We rely on kernel-base having run-time dependency on kernel-image, which normally would pull uImage/zImage into /boot directory of rootfs. Thanks to Chase for pointing me in the right direction by noticing that our addition of cm3 firmware breaks that dependency for ti33x.
The reason for that is RDEPENDS is being conditionally assigned with ?= in kernel.bbclass and using += with that is unsafe/racy and _append should be used instead.
--- recipes-kernel/linux/linux-ti-staging_3.8.bb | 2 +- recipes-kernel/linux/linux-ti-staging_git.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti-staging_3.8.bb +1 -1
@@ -11,7 +11,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript" # Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.
recipes-kernel/linux/linux-ti-staging_git.bb +1 -1
@@ -10,7 +10,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript" # Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.
Signature · 1 line
1.8.3.2
Quoted 67 lines
-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, September 25, 2013 1:58 PM
To: [email protected]
Subject: [meta-ti] [PATCH] linux-ti-staging: fix missing kernel image in /bootFrom: Denys Dmytriyenko <[email protected]>
We rely on kernel-base having run-time dependency on kernel-image, which
normally would pull uImage/zImage into /boot directory of rootfs. Thanks to Chase for pointing me in the right direction by noticing that our
addition of cm3 firmware breaks that dependency for ti33x. The reason for that is RDEPENDS is being conditionally assigned with ?=
in kernel.bbclass and using += with that is unsafe/racy and_appendshould
be used instead.Signed-off-by Denys Dmytriyenko <[email protected]>---
recipes-kernel/linux/linux-ti-staging_3.8.bb | 2 +- recipes-kernel/linux/linux-ti-staging_git.bb | 2 +-2 files changed, 2 insertions(+), 2 deletions(-)recipes-kernel/linux/linux-ti-staging_3.8.bb +1
-1@@ -11,7 +11,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript"
# Default is to package all dtb files for ti33x devices unless building
# for the specific beaglebone machine.recipes-kernel/linux/linux-ti-staging_git.bb +1
-1@@ -10,7 +10,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript"
# Default is to package all dtb files for ti33x devices unless building
# for the specific beaglebone machine. -- 1.8.3.2_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Cooper Jr., Franklin
Acked-byQuoted 76 lines
-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Maupin, Chase
Sent: Wednesday, September 25, 2013 2:07 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti-staging: fix missing kernel image in /bootAcked-by Chase Maupin <[email protected]>Quoted 57 lines
-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Wednesday, September 25, 2013 1:58 PM
To: [email protected]
Subject: [meta-ti] [PATCH] linux-ti-staging: fix missing kernel image in /bootFrom: Denys Dmytriyenko <[email protected]>
We rely on kernel-base having run-time dependency on kernel-image, which normally would pull uImage/zImage into /boot directory of rootfs. Thanks to Chase for pointing me in the right direction by noticing that our addition of cm3 firmware breaks that dependency for ti33x. The reason for that is RDEPENDS is being conditionally assigned with ?= in kernel.bbclass and using += with that is unsafe/racy and
_appendshould be used instead.Signed-off-by Denys Dmytriyenko <[email protected]>---
recipes-kernel/linux/linux-ti-staging_3.8.bb | 2 +- recipes-kernel/linux/linux-ti-staging_git.bb | 2 +-2 files changed, 2 insertions(+), 2 deletions(-)recipes-kernel/linux/linux-ti-staging_3.8.bb +0
-0@@ -11,7 +11,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # onthe target file system.
recipes-kernel/linux/linux-ti-staging_3.8.bb +1
-1-RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript"
# Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.
recipes-kernel/linux/linux-ti-staging_git.bb +0
-0@@ -10,7 +10,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # onthe target file system.
recipes-kernel/linux/linux-ti-staging_git.bb +1
-1-RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript"
# Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.
--
1.8.3.2Quoted 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Quoted 8 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
We rely on kernel-base having run-time dependency on kernel-image, which normally would pull uImage/zImage into /boot directory of rootfs. Thanks to Chase for pointing me in the right direction by noticing that our addition of cm3 firmware breaks that dependency for ti33x.
The reason for that is RDEPENDS is being conditionally assigned with ?= in kernel.bbclass and using += with that is unsafe/racy and_appendshould
A tiny clarification I lost here - using += together with machine-override on top of that ?= conditional is what is broken. _append makes it all work :)
Quoted 37 lines
be used instead.
Signed-off-by Denys Dmytriyenko <[email protected]>--- recipes-kernel/linux/linux-ti-staging_3.8.bb | 2 +- recipes-kernel/linux/linux-ti-staging_git.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)recipes-kernel/linux/linux-ti-staging_3.8.bb +1
-1@@ -11,7 +11,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript" # Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.recipes-kernel/linux/linux-ti-staging_git.bb +1
-1@@ -10,7 +10,7 @@ require recipes-kernel/linux/setup-defconfig.inc # Add a run-time dependency for the PM firmware to be installed # on the target file system. -RDEPENDS_kernel-base_ti33x += "am33x-cm3 am33x-cm3-initscript" +RDEPENDS_kernel-base_append_ti33x = " am33x-cm3 am33x-cm3-initscript" # Default is to package all dtb files for ti33x devices unless building # for the specific beaglebone machine.Signature · 1 line
1.8.3.2