kernel bbclass: return to original directory in do_deploy
PATCH 1/1 kernel bbclass: return to original directory in do_deploy
* During the base kernel_do_deploy function the directory is changed to DEPLOYDIR in order to do some cleanup and symlinking. However, the directory is not changed back to the original starting directory ${S} at the end. For append functions this means that the starting directory is not ${S} as expected but instead ${DEPLOYDIR}.
For functions like the do_deploy_append in recipes-kernel/linux/linux-dtb.inc there is an assumption that you are still in the source directory and not the DEPLOYDIR. Without this change the .dtb files are not copied because the check for the existence of ${DTS_FILE} which is a relative path from the ${S} directory fails. This means that the .dtb files are not copied into the deploy directory and subsequently the deploy/images directory.
In the log.do_deploy file you will see lines like:
Warning: arch/arm/boot/dts/xxxxx.dts is not available!
--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/kernel.bbclass +1 -0
@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt + cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}"
Signature · 1 line
1.7.0.4
Ping.
Ross, is it in your queue for your next danny merge?
Signature · 1 line
Denys
Quoted 45 lines · Chase Maupin
* During the base
kernel_do_deployfunction the directory is changed to DEPLOYDIR in order to do some cleanup and symlinking. However, the directory is not changed back to the original starting directory ${S} at the end. For append functions this means that the starting directory is not ${S} as expected but instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin recipes-kernel/linux/linux-dtb.inc there is an assumption that you are still in the source directory and not the DEPLOYDIR. Without this change the .dtb files are not copied because the check for the existence of ${DTS_FILE} which is a relative path from the ${S} directory fails. This means that the .dtb files are not copied into the deploy directory and subsequently the deploy/images directory.In the log.do_deploy file you will see lines like:
Warning:
arch/arm/boot/dts/xxxxx.dtsis not available!Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/kernel.bbclass +1
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt + cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}"Signature · 7 lines
1.7.0.4 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 11 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, April 10, 2013 6:02 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass: return to original directory indo_deployPing.
Ross, is it in your queue for your next danny merge?
I see that one as already being commited to danny
Quoted 58 lines
--
DenysQuoted 2 lines · Chase Maupin
* During the base
kernel_do_deployfunction the directory is changed to DEPLOYDIR in order to do some cleanup andsymlinking.
Quoted 2 lines
However, the directory is not changed back to the original starting directory ${S} at the end. For append functions
this
Quoted 5 lines
means that the starting directory is not ${S} as expected but instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin recipes-kernel/linux/linux-dtb.inc there is an assumptionthat
Quoted 5 lines
you are still in the source directory and not the DEPLOYDIR. Without this change the .dtb files are not copied because the check for the existence of ${DTS_FILE} which is a relative path from the ${S} directory fails. This means that the .dtb files are not copied into the deploy directory and
subsequently
Quoted 4 lines
the deploy/images directory.
In the log.do_deploy file you will see lines like:
Review
Quoted 8 lines
Warning:
arch/arm/boot/dts/xxxxx.dtsis not available!Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/meta/classes/kernel.bbclass
meta/classes/kernel.bbclass kernel_do_deploy() { · line 531
Quoted 7 lines
index 88ce561..9691c25 100644
meta/classes/kernel.bbclass +0
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt
${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txtQuoted 8 lines
meta/classes/kernel.bbclass +1
-1+ cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" --1.7.0.4
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 8 lines · Chase
Quoted 8 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, April 10, 2013 6:02 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass: return to original directory indo_deploy
Quoted 5 lines
Quoted 3 lines
Ping.
Ross, is it in your queue for your next danny merge?
I see that one as already being commited to danny
Hmm, where? I don't see it here:
http://cgit.openembedded.org/openembedded-core/log/?h=danny
Quoted 54 lines
Quoted 53 lines · Chase Maupin
Quoted 2 lines
* During the base
kernel_do_deployfunction the directory is changed to DEPLOYDIR in order to do some cleanup andsymlinking.
Quoted 2 lines
However, the directory is not changed back to the original starting directory ${S} at the end. For append functions
this
Quoted 5 lines
means that the starting directory is not ${S} as expected but instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin recipes-kernel/linux/linux-dtb.inc there is an assumptionthat
Quoted 5 lines
you are still in the source directory and not the DEPLOYDIR. Without this change the .dtb files are not copied because the check for the existence of ${DTS_FILE} which is a relative path from the ${S} directory fails. This means that the .dtb files are not copied into the deploy directory and
subsequently
Quoted 4 lines
the deploy/images directory.
In the log.do_deploy file you will see lines like:
Review
Quoted 8 lines
Warning:
arch/arm/boot/dts/xxxxx.dtsis not available!Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/meta/classes/kernel.bbclass
meta/classes/kernel.bbclass kernel_do_deploy() { · line 531
Quoted 7 lines
index 88ce561..9691c25 100644
meta/classes/kernel.bbclass +0
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt
${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txtQuoted 8 lines
meta/classes/kernel.bbclass +1
-1+ cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" --1.7.0.4
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 20 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Thursday, April 11, 2013 8:14 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass: return to original directory indo_deployQuoted 6 lines · Chase
Quoted 6 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, April 10, 2013 6:02 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 4 lines
Quoted 4 lines
to original directory in
do_deployPing.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Ross, is it in your queue for your next danny merge?
I see that one as already being commited to danny
Hmm, where? I don't see it here:
http://cgit.openembedded.org/meta-openembedded/commit/?id=0738c3c8089480dec9e26d7de08c35ba8106b15a
Quoted 65 lines
Quoted 4 lines
Quoted 4 lines · Chase Maupin
Quoted 1 line
* During the base
kernel_do_deployfunction the directoryis
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
changed to DEPLOYDIR in order to do some cleanup and
symlinking.
Quoted 1 line
However, the directory is not changed back to the
original
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
starting directory ${S} at the end. For append functionsthis
Quoted 1 line
means that the starting directory is not ${S} as expectedbut
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin recipes-kernel/linux/linux-dtb.inc there is an assumptionthat
Quoted 1 line
you are still in the source directory and not the
DEPLOYDIR.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Without this change the .dtb files are not copied because
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
check for the existence of ${DTS_FILE} which is arelative
Quoted 1 line
Quoted 1 line
Quoted 1 line
path from the ${S} directory fails. This means that the.dtb
Quoted 13 lines
Quoted 13 lines
Quoted 1 line
files are not copied into the deploy directory and
subsequently
Quoted 11 lines
the deploy/images directory.
In the log.do_deploy file you will see lines like:
Warning:
arch/arm/boot/dts/xxxxx.dtsis not available!Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Quoted 7 lines
Quoted 7 lines
Review
Quoted 1 line
(quoted diff) +0
-0b/meta/classes/kernel.bbclass
meta/classes/kernel.bbclass kernel_do_deploy() { · line 529
Quoted 5 lines
index 88ce561..9691c25 100644
meta/classes/kernel.bbclass +0
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin${KERNEL_IMAGETYPE}
Quoted 3 lines
Quoted 3 lines
meta/classes/kernel.bbclass kernel_do_deploy() { · line 530
Quoted 2 lines
meta/classes/kernel.bbclass +0
-0cp ${COREBASE}/meta/files/deploydir_readme.txt${DEPLOYDIR}/README_-
_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
Quoted 14 lines
Quoted 13 lines
Quoted 8 lines
meta/classes/kernel.bbclass +1
-1+ cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" --1.7.0.4
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 33 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Thursday, April 11, 2013 8:41 AM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass: return to original directory indo_deployQuoted 6 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Thursday, April 11, 2013 8:14 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 16 lines
to original directory in
do_deployQuoted 6 lines · Chase
Quoted 6 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, April 10, 2013 6:02 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 6 lines
Quoted 5 lines
to original directory in
do_deployPing.
Ross, is it in your queue for your next danny merge?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
I see that one as already being commited to danny
Hmm, where? I don't see it here:
http://cgit.openembedded.org/meta-
openembedded/commit/?id=0738c3c8089480dec9e26d7de08c35ba8106b15a
Nevermind. I remember now that this was in 3 places.
Oe-core master
Oe-core danny
Meta-openembedded danny
So you are right that the oe-core danny commit seems to be missing.
Quoted 79 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
On Mon, Mar 18, 2013 at 12:39:19PM -0500, Chase Maupin
Quoted 7 lines · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
* During the base
kernel_do_deployfunction the directoryis
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
changed to DEPLOYDIR in order to do some cleanup and
symlinking.
Quoted 1 line
However, the directory is not changed back to the
original
Quoted 1 line
Quoted 1 line
Quoted 1 line
starting directory ${S} at the end. For appendfunctions
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
this
Quoted 1 line
means that the starting directory is not ${S} asexpected
Quoted 5 lines
but
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin
recipes-kernel/linux/linux-dtb.inc there is anassumption
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
that
Quoted 1 line
you are still in the source directory and not the
DEPLOYDIR.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Without this change the .dtb files are not copied
because
Quoted 4 lines
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
check for the existence of ${DTS_FILE} which is arelative
Quoted 1 line
Quoted 1 line
Quoted 1 line
path from the ${S} directory fails. This means thatthe
Quoted 8 lines
.dtb
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
files are not copied into the deploy directory and
subsequently
Quoted 5 lines
the deploy/images directory.
In the log.do_deploy file you will see lines like:
Warning:
arch/arm/boot/dts/xxxxx.dtsis notavailable!
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Quoted 7 lines
Quoted 7 lines
Review
Quoted 1 line
(quoted diff) +0
-0b/meta/classes/kernel.bbclass
meta/classes/kernel.bbclass kernel_do_deploy() { · line 529
Quoted 5 lines
index 88ce561..9691c25 100644
meta/classes/kernel.bbclass +0
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin${KERNEL_IMAGETYPE}
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
cp
${COREBASE}/meta/files/deploydir_readme.txt${DEPLOYDIR}/README_-
_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
Quoted 14 lines
Quoted 13 lines
Quoted 8 lines
meta/classes/kernel.bbclass +1
-1+ cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" --1.7.0.4
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-
core
Quoted 53 lines
-----Original Message-----
From: Maupin, Chase
Sent: Thursday, April 11, 2013 8:44 AM
To: Maupin, Chase; Denys Dmytriyenko
Cc: [email protected]
Subject: RE: [OE-core] [PATCH][for-danny] kernel bbclass: return to original directory indo_deployQuoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maupin, Chase
Sent: Thursday, April 11, 2013 8:41 AM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 12 lines
to original directory in
do_deployQuoted 6 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Thursday, April 11, 2013 8:14 AM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 3 lines
to original directory in
do_deployOn Thu, Apr 11, 2013 at 12:43:30PM +0000, Maupin, Chase
Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 6 lines
Quoted 6 lines
-----Original Message-----
From: Denys Dmytriyenko [mailto:[email protected]]
Sent: Wednesday, April 10, 2013 6:02 PM
To: Maupin, Chase
Cc: [email protected]
Subject: Re: [OE-core] [PATCH][for-danny] kernel bbclass:return
Quoted 6 lines
Quoted 5 lines
to original directory in
do_deployPing.
Ross, is it in your queue for your next danny merge?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
I see that one as already being commited to danny
Hmm, where? I don't see it here:
openembedded/commit/?id=0738c3c8089480dec9e26d7de08c35ba8106b15a
Quoted 8 lines
Nevermind. I remember now that this was in 3 places.
Oe-core master
Oe-core danny
Meta-openembedded dannySo you are right that the oe-core danny commit seems to be missing.
So the ping from Denys stands. Any update on this?
Quoted 82 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
On Mon, Mar 18, 2013 at 12:39:19PM -0500, Chase Maupin
Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
* During the base
kernel_do_deployfunction thedirectory
Quoted 68 lines
Quoted 6 lines
is
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
changed to DEPLOYDIR in order to do some cleanup and
symlinking.
Quoted 1 line
However, the directory is not changed back to the
original
Quoted 1 line
Quoted 1 line
Quoted 1 line
starting directory ${S} at the end. For appendfunctions
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
this
Quoted 1 line
means that the starting directory is not ${S} asexpected
Quoted 5 lines
but
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
instead ${DEPLOYDIR}.For functions like the
do_deploy_appendin
recipes-kernel/linux/linux-dtb.inc there is anassumption
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
that
Quoted 1 line
you are still in the source directory and not the
DEPLOYDIR.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Without this change the .dtb files are not copied
because
Quoted 4 lines
the
Quoted 1 line
Quoted 1 line
Quoted 1 line
check for the existence of ${DTS_FILE} which is arelative
Quoted 1 line
Quoted 1 line
Quoted 1 line
path from the ${S} directory fails. This means thatthe
Quoted 8 lines
.dtb
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
files are not copied into the deploy directory and
subsequently
Quoted 5 lines
the deploy/images directory.
In the log.do_deploy file you will see lines like:
Warning:
arch/arm/boot/dts/xxxxx.dtsis notavailable!
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Chase Maupin <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Quoted 7 lines
Quoted 7 lines
Review
Quoted 1 line
(quoted diff) +0
-0b/meta/classes/kernel.bbclass
meta/classes/kernel.bbclass kernel_do_deploy() { · line 529
Quoted 5 lines
index 88ce561..9691c25 100644
meta/classes/kernel.bbclass +0
-0@@ -529,6 +529,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin${KERNEL_IMAGETYPE}
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 17 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
cp
${COREBASE}/meta/files/deploydir_readme.txt${DEPLOYDIR}/README_-
_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
Quoted 14 lines
Quoted 13 lines
Quoted 8 lines
meta/classes/kernel.bbclass +1
-1+ cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" --1.7.0.4
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-
Quoted 1 line
core