kexecboot: new recipe and refactoring
authorAndrea Adami <andrea.adami@gmail.com>
Wed, 4 Feb 2009 00:20:19 +0000 (01:20 +0100)
committerAndrea Adami <andrea.adami@gmail.com>
Wed, 4 Feb 2009 00:23:11 +0000 (01:23 +0100)
- added kexecboot_git.bb
- moved most of shared things in kexecboot.inc
- reworked kexecboot_0.4.bb -> PR bumped

packages/kexecboot/kexecboot.inc [new file with mode: 0644]
packages/kexecboot/kexecboot_0.4.bb
packages/kexecboot/kexecboot_git.bb [new file with mode: 0644]

diff --git a/packages/kexecboot/kexecboot.inc b/packages/kexecboot/kexecboot.inc
new file mode 100644 (file)
index 0000000..201d311
--- /dev/null
@@ -0,0 +1,39 @@
+LICENSE = "GPL"
+
+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 += "file://logo-img.h \
+           file://logo.png \
+           "
+
+export CC=${TARGET_PREFIX}klcc
+
+# standard oe cflags don't work with klcc
+export CFLAGS = ""
+export CPPFLAGS = ""
+export LDFLAGS = ""
+
+do_configure_prepend () {
+    install -m 0644 ${WORKDIR}/logo-img.h ${S}/res/
+    install -m 0644 ${WORKDIR}/logo.png ${S}/res/
+}
+
+do_install () {
+       install -d ${D}${bindir}
+       install -m 0755 kexecboot ${D}${bindir}/
+
+       install -d ${D}/proc
+       install -d ${D}/mnt
+}
+
+FILES_${PN} += " ${bindir}/kexecboot /init /proc /mnt"
+
+pkg_postinst_${PN} () {
+       ln -sf ${bindir}/kexecboot $D/init
+}
\ No newline at end of file
index 4eed4d0..c38b2b4 100644 (file)
@@ -1,12 +1,4 @@
-LICENSE = "GPL"
-PR = "r4"
-DEPENDS = "klibc"
-RDEPENDS = "kexec-static"
-
-inherit autotools
-
-# You can create your own *-img.h by doing
-# ./make-image-header.sh <file>.png HAND
+PR = "r5"
 
 SRC_URI = "http://projects.linuxtogo.org/~jay7/kexecboot-${PV}.tar.gz \
        file://add-reboot-option.patch;patch=1 \
@@ -16,35 +8,8 @@ SRC_URI = "http://projects.linuxtogo.org/~jay7/kexecboot-${PV}.tar.gz \
        file://add-sleep.patch;patch=1 \
        file://silent-output-hack.patch;patch=1 \
        file://kexecboot-tosa.patch;patch=1 \
-       file://fb-render-16bit.patch;patch=1 \
-       file://logo-img.h \
-       file://logo.png \
-       "
+       file://fb-render-16bit.patch;patch=1"
 
 S = "${WORKDIR}/kexecboot-${PV}"
 
-export CC=${TARGET_PREFIX}klcc
-
-# standard oe cflags don't work with klcc
-export CFLAGS = ""
-export CPPFLAGS = ""
-export LDFLAGS = ""
-
-do_configure_prepend () {
-    install -m 0644 ${WORKDIR}/logo-img.h ${S}/res/
-    install -m 0644 ${WORKDIR}/logo.png ${S}/res/
-}
-
-do_install () {
-       install -d ${D}${bindir}
-       install -m 0755 kexecboot ${D}${bindir}/
-
-       install -d ${D}/proc
-       install -d ${D}/mnt
-}
-
-FILES_${PN} += " ${bindir}/kexecboot /init /proc /mnt"
-
-pkg_postinst_${PN} () {
-       ln -sf ${bindir}/kexecboot $D/init
-}
+require kexecboot.inc
diff --git a/packages/kexecboot/kexecboot_git.bb b/packages/kexecboot/kexecboot_git.bb
new file mode 100644 (file)
index 0000000..97a3f27
--- /dev/null
@@ -0,0 +1,15 @@
+PR = "r0"
+DEFAULT_PREFERENCE = "-1"
+
+SRC_URI = "git://git.linuxtogo.org/home/thesing/kexecboot.git;protocol=git "
+SRCREV = "8823a939a38a8a3287f90dee062e8ab8569f884f"
+
+# v0.5
+#tag=8823a939a38a8a3287f90dee062e8ab8569f884f
+
+# v0.4
+#tag=d7af5356df4f25203831403c69f1a263c163f31a
+
+S = "${WORKDIR}/git"
+
+require kexecboot.inc