All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Ebenfeld <sven.ebenfeld@gmail.com>
To: Daiane Angolini <daiane.list@gmail.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm][PATCH] linux-mfgtool: Prevent overwriting linux-imx deployments
Date: Fri, 21 Nov 2014 07:06:58 +0100	[thread overview]
Message-ID: <546ED682.1020103@gmail.com> (raw)
In-Reply-To: <CA+jg_OXjXGZc1MHUWfG5LpGZkfOyZ0ot8hUUvUe=4tA4ntYSsA@mail.gmail.com>

Hi Daiane, Thanks for your comments.

Am 19.11.2014 um 16:07 schrieb Daiane Angolini:
> Hi Sven Ebenfeld, sorry for delay.
> 
> On Tue, Nov 11, 2014 at 7:56 AM, Sven Ebenfeld <sven.ebenfeld@gmail.com> wrote:
>> When I try building fsl-image-mfgtool-initramfs it builds both,
> 
> Could you, please, use "When building blablabla" instead of using
> "When I try building blablabla"?
> 
> Who is the "person" behind "I" in a commit log?

Okay, I will not use this wording in my next commit logs.

> 
>> linux-imx and linux-mfgtool. Both recipes are trying to write
>> the README... file and KERNEL_IMAGETYPE-file into deploy dir.
> 
> I don´t understand why you add the ... after the README file name.
> Would it be possibly avoided?

The README file name is quite a long name I tried to avoid mentioning
the whole name.
But if it's better to mention the whole name for better understanding, I
will mention it. Or even leave the whole name away.

> 
>> This leads to an error, that one recipe wants to write files that
>> already exist. This patch prevents linux-mfgtool from overwriting
>> linux-imx's results.
>>
>> Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com>
>> ---
>>  recipes-kernel/linux/linux-mfgtool.inc | 26 ++++++++++++++++++++++++++
>>  1 file changed, 26 insertions(+)
>>
>> diff --git a/recipes-kernel/linux/linux-mfgtool.inc b/recipes-kernel/linux/linux-mfgtool.inc
>> index 106a7d9..eaccb44 100644
>> --- a/recipes-kernel/linux/linux-mfgtool.inc
>> +++ b/recipes-kernel/linux/linux-mfgtool.inc
>> @@ -79,3 +79,29 @@ do_install_append() {
>>  sysroot_stage_all() {
>>      :
>>  }
>> +
>> +# FIXME: Overwrite kernel_do_deploy as it tries to overwrite (u/z)Image symlink
>> +#        and DO_NOT...DELETE.txt file. This leads to an error that this recipe
> 
> Here again you use ...
> Would you be trying to replace a long file name?
> 
> I understand this is only a workaround for the problem, am I right?

Yes, it's only a workaround. Unfortunately I don't know a better way for
fixing this, yet.
The same problem exists with u-boot.

Do you think it's possible to get it merged with a better commit log or
do you have a proposal where I should look for a better fix?

> 
> 
> Daiane
> 
>> +#        is trying to install files into an area where those files already exist.
>> +kernel_do_deploy() {
>> +       install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>> +       if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
>> +               mkdir -p ${D}/lib
>> +               tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib
>> +               ln -sf ${MODULE_TARBALL_BASE_NAME} ${DEPLOYDIR}/${MODULE_TARBALL_SYMLINK_NAME}
>> +       fi
>> +
>> +       ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_IMAGE_SYMLINK_NAME}.bin
>> +       ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/mfgtool-${KERNEL_IMAGETYPE}
>> +
>> +       cd ${B}
>> +       # Update deploy directory
>> +       if [ -e "${KERNEL_OUTPUT}.initramfs" ]; then
>> +               echo "Copying deploy kernel-initramfs image and setting up links..."
>> +               initramfs_base_name=${INITRAMFS_BASE_NAME}
>> +               initramfs_symlink_name=mfgtool-${KERNEL_IMAGETYPE}-initramfs-${MACHINE}
>> +               install -m 0644 ${KERNEL_OUTPUT}.initramfs ${DEPLOYDIR}/${initramfs_base_name}.bin
>> +               cd ${DEPLOYDIR}
>> +               ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
>> +       fi
>> +}
>> --
>> 1.8.1.rc3
>>
>> --
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale


  reply	other threads:[~2014-11-21  6:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-11  9:56 [meta-fsl-arm][PATCH] linux-mfgtool: Prevent overwriting linux-imx deployments Sven Ebenfeld
2014-11-19 15:07 ` Daiane Angolini
2014-11-21  6:06   ` Sven Ebenfeld [this message]
2014-11-21 10:48     ` Daiane Angolini
2014-11-21 11:11       ` Otavio Salvador
2014-12-12 12:50         ` Otavio Salvador
2014-12-16 19:51           ` Sven Ebenfeld
2014-12-16 19:52             ` Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=546ED682.1020103@gmail.com \
    --to=sven.ebenfeld@gmail.com \
    --cc=daiane.list@gmail.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.