Skip to contentSkip to conversation

Kumar Gala : kexec-tools: Add a git recipe

oe-commits Martin Jansa 1 participant 1 message Apr 18, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 61 lines · git version control
Module: openembedded.git
Branch: master
Commit: ace025266169c8fbeac35fc6eb4ac67768f13df3
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ace025266169c8fbeac35fc6eb4ac67768f13df3
Author: Kumar Gala <[email protected]>
Date:   Mon Apr 18 12:48:34 2011 -0500

kexec-tools: Add a git recipe

(Initially from Kumar, further updated by Tom)
Add a recipe to build kexec-tools from git. While we're at it, make a new kexec-tools.inc for the very common bits and use that all around as well as switch to INC_PR.

---

 recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb |    2 +-
 recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb    |    2 +-
 recipes/kexec-tools/kexec-tools.inc               |    9 +++++++++
 recipes/kexec-tools/kexec-tools_2.0.2.bb          |    2 +-
 recipes/kexec-tools/kexec-tools_2.0.2.inc         |    9 +--------
 recipes/kexec-tools/kexec-tools_git.bb            |   11 +++++++++++
 recipes/kexec-tools/kexec-tools_git.inc           |   10 ++++++++++
 7 files changed, 34 insertions(+), 11 deletions(-)
recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb +1 -1
index 8a599c7..171ccdf 100644
@@ -1,7 +1,7 @@
 # the binaries are statically linked against dietlibc
 require kexec-tools_${PV}.inc
 
-PR = "r0"
+PR = "${INC_PR}.0"
 inherit dietlibc
 
 FILESPATHPKG =. "kexec-tools-${PV}:"
recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb +1 -1
index e799309..f14f0e6 100644
@@ -1,7 +1,7 @@
 # the binaries are statically linked against klibc
 require kexec-tools_${PV}.inc
 
-PR = "r3"
+PR = "${INC_PR}.0"
 inherit klibc
 
 FILESPATHPKG =. "kexec-tools-${PV}:"
recipes/kexec-tools/kexec-tools.inc new file +0 -0
new file mode 100644
index 0000000..e7c51bc

recipes/kexec-tools/kexec-tools.inc line 7

Quoted 7 lines
recipes/kexec-tools/kexec-tools.inc new file +7 -0
@@ -0,0 +1,9 @@
+DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel"
+AUTHOR = "Eric Biederman"
+HOMEPAGE = "http://www.xmission.com/~ebiederm/files/kexec/"
+SECTION = "kernel/userland"
+LICENSE = "GPL"
+DEPENDS = "virtual/kernel zlib"
+PR = "r4"

Where is INC_PR defined? I guess this should be INC_PR not PR..

Quoted 70 lines
recipes/kexec-tools/kexec-tools.inc new file +2 -0
+
+inherit autotools
recipes/kexec-tools/kexec-tools_2.0.2.bb +1 -1
index 28ab240..710ee93 100644
@@ -1,6 +1,6 @@
 require kexec-tools_${PV}.inc
 
-PR = "r1"
+PR = "${INC_PR}.0"
 
 EXTRA_OECONF = " --with-zlib=yes"
 export LDFLAGS = "-L${STAGING_LIBDIR}"
recipes/kexec-tools/kexec-tools_2.0.2.inc +1 -8
index 81fbe9b..0ba22e8 100644
@@ -1,11 +1,4 @@
-DESCRIPTION = "Kexec is a fast reboot feature that lets you reboot to a new Linux kernel"
-AUTHOR = "Eric Biederman"
-HOMEPAGE = "http://www.xmission.com/~ebiederm/files/kexec/"
-SECTION = "kernel/userland"
-LICENSE = "GPL"
-DEPENDS = "virtual/kernel zlib"
-
-inherit autotools
+require kexec-tools.inc
 
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz"
 
recipes/kexec-tools/kexec-tools_git.bb new file +11 -0
new file mode 100644
index 0000000..69625ac
@@ -0,0 +1,11 @@
+require kexec-tools_git.inc
+
+PR = "${INC_PR}.0"
+
+EXTRA_OECONF = " --with-zlib=yes"
+export LDFLAGS = "-L${STAGING_LIBDIR}"
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"
recipes/kexec-tools/kexec-tools_git.inc new file +10 -0
new file mode 100644
index 0000000..511008c
@@ -0,0 +1,10 @@
+require kexec-tools.inc
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
+SRCREV = "e3bb6ccd50e483d06bfeaca24c9107c31f1cf5d7"
+
+PV = "2.0.2+${PR}+gitr${SRCREV}"
+
+DEFAULT_PREFERENCE = "-1"
+
+S = "${WORKDIR}/git"

_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]