[oe-commits] Kumar Gala : kexec-tools: Add a git recipe
git version control
git at git.openembedded.org
Thu Apr 21 20:02:37 UTC 2011
Module: openembedded.git
Branch: testing-next
Commit: ace025266169c8fbeac35fc6eb4ac67768f13df3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ace025266169c8fbeac35fc6eb4ac67768f13df3
Author: Kumar Gala <kumar.gala at freescale.com>
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.
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
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(-)
diff --git a/recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb b/recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb
index 8a599c7..171ccdf 100644
--- a/recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb
+++ b/recipes/kexec-tools/kexec-tools-dietlibc_2.0.2.bb
@@ -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}:"
diff --git a/recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb b/recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb
index e799309..f14f0e6 100644
--- a/recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb
+++ b/recipes/kexec-tools/kexec-tools-klibc_2.0.2.bb
@@ -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}:"
diff --git a/recipes/kexec-tools/kexec-tools.inc b/recipes/kexec-tools/kexec-tools.inc
new file mode 100644
index 0000000..e7c51bc
--- /dev/null
+++ b/recipes/kexec-tools/kexec-tools.inc
@@ -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"
+
+inherit autotools
diff --git a/recipes/kexec-tools/kexec-tools_2.0.2.bb b/recipes/kexec-tools/kexec-tools_2.0.2.bb
index 28ab240..710ee93 100644
--- a/recipes/kexec-tools/kexec-tools_2.0.2.bb
+++ b/recipes/kexec-tools/kexec-tools_2.0.2.bb
@@ -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}"
diff --git a/recipes/kexec-tools/kexec-tools_2.0.2.inc b/recipes/kexec-tools/kexec-tools_2.0.2.inc
index 81fbe9b..0ba22e8 100644
--- a/recipes/kexec-tools/kexec-tools_2.0.2.inc
+++ b/recipes/kexec-tools/kexec-tools_2.0.2.inc
@@ -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"
diff --git a/recipes/kexec-tools/kexec-tools_git.bb b/recipes/kexec-tools/kexec-tools_git.bb
new file mode 100644
index 0000000..69625ac
--- /dev/null
+++ b/recipes/kexec-tools/kexec-tools_git.bb
@@ -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"
diff --git a/recipes/kexec-tools/kexec-tools_git.inc b/recipes/kexec-tools/kexec-tools_git.inc
new file mode 100644
index 0000000..511008c
--- /dev/null
+++ b/recipes/kexec-tools/kexec-tools_git.inc
@@ -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"
More information about the Openembedded-commits
mailing list