[oe] [PATCH 04/14] kexecboot: add new recipe for kexecboot-0.4

Andrea Adami andrea.adami at gmail.com
Sun Jan 18 02:24:24 UTC 2009


- kexecboot can now be used as init
---
 conf/checksums.ini                  |    3 ++
 packages/kexecboot/kexecboot_0.4.bb |   37 +++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 packages/kexecboot/kexecboot_0.4.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 5467494..abb74ef 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -24622,3 +24622,6 @@ sha256=5cc1a53bb909922596bdd0fa967b654fe1bfbe0dcf1d34608f0b7c90e0c27867
 md5=5f7b88ebb2bcd7e8044328482d079661
 sha256=f57c4e33eb2cdd87a6c2f01bfa4794340fbe61ea1a1cfc7dac3b6671e1dd22af
 
+[http://projects.linuxtogo.org/~jay7/kexecboot-0.4.tar.gz]
+md5=b4a4509ca3f546cfedd23aa6f99ab81d
+sha256=b8c9d3a51f04bdecabbb4135079d408e02c98cdf3156bab8418a6830cb64b890
diff --git a/packages/kexecboot/kexecboot_0.4.bb b/packages/kexecboot/kexecboot_0.4.bb
new file mode 100644
index 0000000..19c2372
--- /dev/null
+++ b/packages/kexecboot/kexecboot_0.4.bb
@@ -0,0 +1,37 @@
+LICENSE = "GPL"
+PR = "r0"
+DEPENDS = "klibc"
+RDEPENDS = "kexec-static"
+
+inherit autotools
+
+# You can create your own *-img.h by doing
+# ./make-image-header.sh <file>.png HAND
+
+SRC_URI = "http://projects.linuxtogo.org/~jay7/kexecboot-${PV}.tar.gz"
+
+S = "${WORKDIR}/kexecboot-${PV}"
+
+export CC=${TARGET_PREFIX}klcc
+
+# standard oe cflags don't work with klcc
+export CFLAGS = ""
+export CPPFLAGS = ""
+export LDFLAGS = ""
+
+do_install () {
+
+# hard way
+#        install -d ${D}
+#        install -m 0755 kexecboot ${D}/init
+
+        install -d ${D}${bindir}
+        install -m 0755 kexecboot ${D}${bindir}/
+        install -d ${D}
+        ln -sf ${bindir}/kexecboot ${D}/init
+
+        install -d ${D}/proc
+        install -d ${D}/mnt
+}
+
+FILES_${PN} = "/init /usr/bin/kexecboot /proc /mnt"
-- 
1.6.0.6





More information about the Openembedded-devel mailing list