From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andrea Adami <andrea.adami@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-initramfs][PATCH] klcc_cross: move in target sysroot as crosscript
Date: Fri, 02 May 2014 09:21:13 +0100 [thread overview]
Message-ID: <1399018873.12731.21.camel@ted> (raw)
In-Reply-To: <1398986009-20163-1-git-send-email-andrea.adami@gmail.com>
On Fri, 2014-05-02 at 01:13 +0200, Andrea Adami wrote:
> Klcc-cross is properly a crosscript so avoid to
> inherit cross.bbclass and stage it in target sysroot
> under usr/bin/crossscripts.
> Minor adjustment is necessary for INSTALLDIR.
>
> Finally some optional magic mangling is added to better match the perl syntax:
> let it commented for future reference.
Why is this commented? Its not optional and the recipe will not work
properly without that change.
Cheers,
Richard
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
> ---
> .../recipes-devtools/klibc/klcc-cross_2.0.3.bb | 40 +++++++++++++---------
> 1 file changed, 23 insertions(+), 17 deletions(-)
>
> diff --git a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.3.bb b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.3.bb
> index 7ff9c2e..5e767c1 100644
> --- a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.3.bb
> +++ b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.3.bb
> @@ -7,28 +7,34 @@ FILESPATH =. "${FILE_DIRNAME}/klibc-${PV}:"
>
> SRC_URI += "file://use-env-for-perl.patch"
>
> -inherit cross
> -
> # disable task already run in klibc recipe
> do_configure[noexec] = "1"
> +
> do_compile() {
> - oe_runmake 'INSTALLDIR=${STAGING_DIR_TARGET}${target_libdir}/klibc' klcc
> + oe_runmake 'INSTALLDIR=${STAGING_DIR_TARGET}${libdir}/klibc' klcc
> }
> -# The linux-libc-headers and klibc custom headers are not machine-specific
> -# but are installed into machine sysroot.
> -# Klcc wrapper is hardcoding some of these paths thus, to keep the recipe
> -# arch-specific, we force the rebuild of klcc-cross for each machine.
> -do_compile[vardeps] += "MACHINE"
> +
> do_install() {
> - install -d ${D}${bindir}
> - install -m 0755 klcc/klcc ${D}${bindir}/${TARGET_PREFIX}klcc
> + install -d ${D}${bindir_crossscripts}/
> + install -m 0755 klcc/klcc ${D}${bindir_crossscripts}/${TARGET_PREFIX}klcc
> + # Insert an unencoded path as a comment to trigger the sstate renaming functions
> + sed -i '2i #${STAGING_DIR_TARGET}' ${D}${bindir_crossscripts}/${TARGET_PREFIX}klcc
> +}
> +
> +SYSROOT_PREPROCESS_FUNCS += "klcc_sysroot_preprocess"
> +
> +klcc_sysroot_preprocess () {
> + sysroot_stage_dir ${D}${bindir_crossscripts} ${SYSROOT_DESTDIR}${bindir_crossscripts}
> }
>
> +deltask do_package
> +deltask do_packagedata
> +deltask do_package_write_ipk
> +deltask do_package_write_rpm
> +deltask do_package_write_deb
> +deltask do_package_write_tar
>
> -# disable unneeded tasks
> -do_package[noexec] = "1"
> -do_packagedata[noexec] = "1"
> -do_package_write_ipk[noexec] = "1"
> -do_package_write_rpm[noexec] = "1"
> -do_package_write_deb[noexec] = "1"
> -do_package_write_tar[noexec] = "1"
> +SSTATE_SCAN_FILES = "*"
> +#EXTRA_STAGING_FIXMES = "MANGLEDSTAGINGDIRTARGET MANGLEDSTAGINGDIR"
> +#MANGLEDSTAGINGDIR = "${@d.getVar("STAGING_DIR", True).replace("/", "\\\\/").replace("-", "\\-")}"
> +#MANGLEDSTAGINGDIRTARGET = "${@d.getVar("STAGING_DIR_TARGET", True).replace("/", "\\\\/").replace("-", "\\-")}"
next prev parent reply other threads:[~2014-05-02 8:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 23:13 [meta-initramfs][PATCH] klcc_cross: move in target sysroot as crosscript Andrea Adami
2014-05-01 23:13 ` [meta-initramfs][PATCH] kexecboot: fix build when S != B Andrea Adami
2014-05-02 8:21 ` Richard Purdie [this message]
2014-05-02 8:34 ` [meta-initramfs][PATCH] klcc_cross: move in target sysroot as crosscript Andrea Adami
2014-05-02 8:38 ` Richard Purdie
2014-05-02 8:45 ` Andrea Adami
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=1399018873.12731.21.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=andrea.adami@gmail.com \
--cc=openembedded-devel@lists.openembedded.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.