summaryrefslogtreecommitdiff
path: root/packages/kexec
diff options
context:
space:
mode:
Diffstat (limited to 'packages/kexec')
-rw-r--r--packages/kexec/files/.mtn2git_empty (renamed from packages/kexec/kexec-tools-1.101/.mtn2git_empty)0
-rw-r--r--packages/kexec/files/kexec-arm-atags.patch (renamed from packages/kexec/kexec-tools-1.101/kexec-arm-atags.patch)0
-rw-r--r--packages/kexec/files/kexec-static.patch12
-rw-r--r--packages/kexec/files/kexec-tools-arm.patch (renamed from packages/kexec/kexec-tools-1.101/kexec-tools-arm.patch)0
-rw-r--r--packages/kexec/kexec-tools-static_1.101.bb12
-rw-r--r--packages/kexec/kexec-tools.inc15
-rw-r--r--packages/kexec/kexec-tools_1.101.bb17
7 files changed, 41 insertions, 15 deletions
diff --git a/packages/kexec/kexec-tools-1.101/.mtn2git_empty b/packages/kexec/files/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/kexec/kexec-tools-1.101/.mtn2git_empty
+++ b/packages/kexec/files/.mtn2git_empty
diff --git a/packages/kexec/kexec-tools-1.101/kexec-arm-atags.patch b/packages/kexec/files/kexec-arm-atags.patch
index bf6f640035..bf6f640035 100644
--- a/packages/kexec/kexec-tools-1.101/kexec-arm-atags.patch
+++ b/packages/kexec/files/kexec-arm-atags.patch
diff --git a/packages/kexec/files/kexec-static.patch b/packages/kexec/files/kexec-static.patch
new file mode 100644
index 0000000000..549300576e
--- /dev/null
+++ b/packages/kexec/files/kexec-static.patch
@@ -0,0 +1,12 @@
+diff -ur kexec-tools-1.101.bak/configure.ac kexec-tools-1.101/configure.ac
+--- kexec-tools-1.101.bak/configure.ac 2008-02-03 00:05:59.577094746 +0100
++++ kexec-tools-1.101/configure.ac 2008-02-03 00:06:35.579146386 +0100
+@@ -96,7 +96,7 @@
+
+ dnl ---Hard codes
+
+-CFLAGS='-Wall -g -fno-strict-aliasing $(CPPFLAGS)'
++CFLAGS='-Wall -g -static -fno-strict-aliasing $(CPPFLAGS)'
+ BUILD_CFLAGS='-O2 -Wall $(CPPFLAGS)'
+
+ dnl ---Sanity checks
diff --git a/packages/kexec/kexec-tools-1.101/kexec-tools-arm.patch b/packages/kexec/files/kexec-tools-arm.patch
index 6e43b76096..6e43b76096 100644
--- a/packages/kexec/kexec-tools-1.101/kexec-tools-arm.patch
+++ b/packages/kexec/files/kexec-tools-arm.patch
diff --git a/packages/kexec/kexec-tools-static_1.101.bb b/packages/kexec/kexec-tools-static_1.101.bb
new file mode 100644
index 0000000000..ca23917a11
--- /dev/null
+++ b/packages/kexec/kexec-tools-static_1.101.bb
@@ -0,0 +1,12 @@
+require kexec-tools.inc
+
+PR = "r0"
+
+SRC_URI += "file://kexec-static.patch;patch=1"
+S = "${WORKDIR}/kexec-tools-${PV}"
+
+PACKAGES =+ "kexec-static kdump-static"
+
+FILES_kexec-static = "${sbindir}/kexec"
+FILES_kdump-static = "${sbindir}/kdump"
+
diff --git a/packages/kexec/kexec-tools.inc b/packages/kexec/kexec-tools.inc
new file mode 100644
index 0000000000..5649934a5b
--- /dev/null
+++ b/packages/kexec/kexec-tools.inc
@@ -0,0 +1,15 @@
+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
+
+export LDFLAGS = "-L${STAGING_LIBDIR}"
+EXTRA_OECONF = " --with-zlib=yes"
+
+SRC_URI = "http://www.xmission.com/~ebiederm/files/kexec/kexec-tools-${PV}.tar.gz \
+ file://kexec-tools-arm.patch;patch=1 \
+ file://kexec-arm-atags.patch;patch=1"
diff --git a/packages/kexec/kexec-tools_1.101.bb b/packages/kexec/kexec-tools_1.101.bb
index d152a678ed..366fad4978 100644
--- a/packages/kexec/kexec-tools_1.101.bb
+++ b/packages/kexec/kexec-tools_1.101.bb
@@ -1,16 +1,3 @@
-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"
-DEPENDS = "virtual/kernel zlib"
-LICENSE = "GPL"
-PR = "r3"
+require kexec-tools.inc
-inherit autotools
-
-export LDFLAGS = "-L${STAGING_LIBDIR}"
-EXTRA_OECONF = " --with-zlib=yes"
-
-SRC_URI = "http://www.xmission.com/~ebiederm/files/kexec/kexec-tools-${PV}.tar.gz \
- file://kexec-tools-arm.patch;patch=1 \
- file://kexec-arm-atags.patch;patch=1"
+PR = "r4"