All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Krause" <voltamund@gmail.com>
To: <yocto@yoctoproject.org>
Subject: Add additional file with execute permission to SDK
Date: Mon, 2 Jul 2018 13:51:56 +0200	[thread overview]
Message-ID: <000301d411fb$14798a00$3d6c9e00$@gmail.com> (raw)

Hello

I try to add an additional shell script to a Yocto SDK (release rocko). The
file should be installed directly in the target directory of the SDK (same
directory where the environment-setup-* file is installed). I added a
meta-environment.bbappend and do something like this:

create_sdk_files_append() {
    cp script.sh ${SDK_OUTPUT}/${SDKPATH}/
}

do_install_append() {
    # This makes populate_sdk fail
    chmod +x ${D}/${SDKPATH}/script.sh
}

The create_sdk_files_append is enough to include the file in the SDK. The
SDK is successfully generated but script.sh has no execute permission after
SDK installation. To add the execute permission I used do_install_append.
But then populate_sdk fails.

Problem: package
packagegroup-cross-canadian-raspberrypi3-1.0-r0.x86_64_nativesdk requires
meta-environment-raspberrypi3, but none of the providers can be installed
  - conflicting requests
  - nothing provides /bin/bash needed by
meta-environment-raspberrypi3-1.0-r8.x86_64_nativesdk
  
How can I fix this problem?

Regards
Jan



                 reply	other threads:[~2018-07-02 11:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='000301d411fb$14798a00$3d6c9e00$@gmail.com' \
    --to=voltamund@gmail.com \
    --cc=yocto@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.