From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH][meta-oe] crash: add native package
Date: Wed, 9 Mar 2016 20:06:00 +0100 [thread overview]
Message-ID: <20160309190600.GG2542@jama> (raw)
In-Reply-To: <1457509723-25302-2-git-send-email-kai.kang@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 3330 bytes --]
On Wed, Mar 09, 2016 at 03:48:43PM +0800, kai.kang@windriver.com wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> Add crash-native package.
>
> * append EXTRA_OEMAKE option to find ncurses library
> * pass right install DESTDIR
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
> meta-oe/recipes-kernel/crash/crash_7.1.3.bb | 17 ++++++++++++++---
> 1 file changed, 14 insertions(+), 3 deletions(-)
>
> diff --git a/meta-oe/recipes-kernel/crash/crash_7.1.3.bb b/meta-oe/recipes-kernel/crash/crash_7.1.3.bb
> index f6934f7..e085094 100644
> --- a/meta-oe/recipes-kernel/crash/crash_7.1.3.bb
> +++ b/meta-oe/recipes-kernel/crash/crash_7.1.3.bb
> @@ -32,6 +32,8 @@ SRC_URI[gdb.sha256sum] = "8070389a5dcc104eb0be483d582729f98ed4d761ad19cedd3f17b5
>
> inherit gettext
>
> +BBCLASSEXTEND = "native"
> +
> # crash 7.1.3 and before don't support mips64
> COMPATIBLE_HOST = "^(?!mips64).*"
>
> @@ -40,6 +42,7 @@ EXTRA_OEMAKE = 'RPMPKG="${PV}" \
> GDB_HOST="${BUILD_SYS}" \
> GDB_MAKE_JOBS="${PARALLEL_MAKE}" \
> '
> +EXTRA_OEMAKE_append_class-native = " LDFLAGS='${BUILD_LDFLAGS}'"
>
> do_configure() {
> :
> @@ -65,17 +68,25 @@ do_compile() {
> oe_runmake ${EXTRA_OEMAKE}
> }
>
> -do_install () {
> +do_install_prepend () {
> install -d ${D}${bindir}
> install -d ${D}/${mandir}/man8
> install -d ${D}${includedir}/crash
>
> - oe_runmake DESTDIR=${D} install
> install -m 0644 ${S}/crash.8 ${D}/${mandir}/man8/
> install -m 0644 ${S}/defs.h ${D}${includedir}/crash
> -}
> +}
> +
> +do_install_class-target () {
> + oe_runmake DESTDIR=${D} install
> +}
> +
> +do_install_class-native () {
> + oe_runmake DESTDIR=${D}${STAGING_DIR_NATIVE} install
> +}
>
> RDEPENDS_${PN} += "liblzma"
> +RDEPENDS_${PN}_class-native += "xz-native"
Why is this needed? native builds aren't creating any packages.
> # Causes gcc to get stuck and eat all available memory in qemuarm builds
> # jenkins 15161 100 12.5 10389596 10321284 ? R 11:40 28:17 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.2/cc1 -quiet -I . -I . -I ./common -I ./config -I ./../include/opcode -I ./../opcodes/.. -I ./../readline/.. -I ../bfd -I ./../bfd -I ./../include -I ../libdecnumber -I ./../libdecnumber -I ./gnulib/import -I build-gnulib/import -isysroot /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm -MMD eval.d -MF .deps/eval.Tpo -MP -MT eval.o -D LOCALEDIR="/usr/local/share/locale" -D CRASH_MERGE -D HAVE_CONFIG_H -D TUI=1 eval.c -quiet -dumpbase eval.c -march=armv5te -mthumb -mthumb-interwork -mtls-dialect=gnu -auxbase-strip eval.o -g -O2 -Wall -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -feliminate-unused-debug-types -o -
> --
> 2.6.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2016-03-09 19:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 7:48 [PATCH] Add native package for crash kai.kang
2016-03-09 7:48 ` [PATCH][meta-oe] crash: add native package kai.kang
2016-03-09 19:06 ` Martin Jansa [this message]
2016-03-10 8:20 ` Kang Kai
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=20160309190600.GG2542@jama \
--to=martin.jansa@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox