Skip to contentSkip to conversation

Add native package for crash

PATCH New [email protected] 2 participants 4 messages Mar 9, 2016 – Mar 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add native package for crash

From: Kai Kang <[email protected]>

The following changes since commit a1e135a499998add7575682bf53db5e02e753580:

Revert "toybox: upgrade to 0.7.0" (2016-03-07 13:02:19 +0100)

are available in the git repository at:

[email protected]:parr0tr1ver/meta-openembedded.git crash-native

for you to fetch changes up to 5c95179d2897a02f390165c59b2fdb55e9c3e959:

crash: add native package (2016-03-09 15:21:04 +0800)

----------------------------------------------------------------
Kai Kang (1):
crash: add native package

 meta-oe/recipes-kernel/crash/crash_7.1.3.bb | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
Signature · 1 line
2.6.1
#1 lore raw

PATCH 1/1 crash: add native package

From: Kai Kang <[email protected]>

Add crash-native package.

* append EXTRA_OEMAKE option to find ncurses library
* pass right install DESTDIR

---
 meta-oe/recipes-kernel/crash/crash_7.1.3.bb | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +14 -3
index f6934f7..e085094 100644
@@ -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"
 
 # 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 -
Signature · 1 line
2.6.1
#2 lore raw

Re: [PATCH][meta-oe] crash: add native package

Quoted 49 lines · On Wed, Mar 09, 2016 at 03:48:43PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Add crash-native package.

* append EXTRA_OEMAKE option to find ncurses library
* pass right install DESTDIR

---
 meta-oe/recipes-kernel/crash/crash_7.1.3.bb | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +6 -3
index f6934f7..e085094 100644
@@ -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
-}   
+}
+

meta-oe/recipes-kernel/crash/crash_7.1.3.bb do_compile() { · line 89

Quoted 10 lines
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +8 -0
+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.

Quoted 10 lines
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +0 -0
 # 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 -
Signature · 7 lines
2.6.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#3 lore raw

Re: [PATCH][meta-oe] crash: add native package

Quoted 58 lines · Martin Jansa
Quoted 57 lines · On Wed, Mar 09, 2016 at 03:48:43PM +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

Add crash-native package.

* append EXTRA_OEMAKE option to find ncurses library
* pass right install DESTDIR

---
  meta-oe/recipes-kernel/crash/crash_7.1.3.bb | 17 ++++++++++++++---
  1 file changed, 14 insertions(+), 3 deletions(-)
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +13 -3
index f6934f7..e085094 100644
@@ -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
+}
 
Quoted 3 lines

meta-oe/recipes-kernel/crash/crash_7.1.3.bb do_compile() { · line 89

Quoted 2 lines
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +1 -0
  RDEPENDS_${PN} += "liblzma"
+RDEPENDS_${PN}_class-native += "xz-native"

Why is this needed? native builds aren't creating any packages.

My fault. It should be empty for native package.

Thanks. V2 will be sent.

--Kai

Quoted 13 lines
Quoted 11 lines
meta-oe/recipes-kernel/crash/crash_7.1.3.bb +0 -0
  # 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 -
Signature · 7 lines
2.6.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Regards,
Neil | Kai Kang