kexecboot: split kexecboot-klibc recipe and oe-stylize
authorAndrea Adami <andrea.adami@gmail.com>
Sat, 9 Oct 2010 23:41:11 +0000 (01:41 +0200)
committerAndrea Adami <andrea.adami@gmail.com>
Wed, 20 Oct 2010 22:48:39 +0000 (00:48 +0200)
recipes/kexecboot/kexecboot-cfg_0.1.bb
recipes/kexecboot/kexecboot-klibc_git.bb [new file with mode: 0644]
recipes/kexecboot/kexecboot.inc
recipes/kexecboot/kexecboot_git.bb

index 0287cc9..ef16f31 100644 (file)
@@ -1,44 +1,32 @@
-LICENSE = "GPL"
-SECTION = "base"
 DESCRIPTION = "Configuration file for kexecboot"
-
+SECTION = "base"
+LICENSE = "GPL"
 PR = "r9"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 SRC_URI = "file://icon.xpm"
 
 CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd"
 CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd rw"
 CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd"
-
 CMDLINE_MEM = ""
 CMDLINE_MEM_collie = "mem=64M"
-
 CMDLINE_ROTATE = ""
 CMDLINE_ROTATE_spitz = "fbcon=rotate:1"
 CMDLINE_ROTATE_akita = "fbcon=rotate:1"
 CMDLINE_ROTATE_collie = "fbcon=rotate:1"
 CMDLINE_ROTATE_poodle = "fbcon=rotate:1"
-
-#CMDLINE_OTHER = "dyntick=enable"
 CMDLINE_OTHER = ""
-
-CMDLINE_DEBUG = '${@base_conditional("DISTRO_TYPE", "release", "quiet", "debug",d)}'
-
-CMDLINE = ${CMDLINE_CON}
-CMDLINE += ${CMDLINE_MEM}
-CMDLINE += ${CMDLINE_ROTATE}
-CMDLINE += ${CMDLINE_OTHER}
-CMDLINE += ${CMDLINE_DEBUG}
-
-FILES_${PN} += "/boot/*"
+CMDLINE_DEBUG = "${@base_conditional('DISTRO_TYPE', 'release', 'quiet', 'debug',d)}"
+CMDLINE = "${CMDLINE_CON}"
+CMDLINE += "${CMDLINE_MEM}"
+CMDLINE += "${CMDLINE_ROTATE}"
+CMDLINE += "${CMDLINE_OTHER}"
+CMDLINE += "${CMDLINE_DEBUG}"
 
 do_configure_prepend () {
     install -m 0644 ${WORKDIR}/icon.xpm ${S}
 }
-
 do_install_prepend () {
-
 echo '# Show this label in kexecboot menu.
 LABEL=${DISTRO}
 #
@@ -61,9 +49,12 @@ APPEND=${CMDLINE}
 # PRIORITY=10
 #' >> ${S}/boot.cfg
 }
-
 do_install () {
         install -d ${D}/boot
         install -m 0644 boot.cfg ${D}/boot/boot.cfg
         install -m 0644 icon.xpm ${D}/boot/icon.xpm
 }
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+FILES_${PN} += "/boot/*"
diff --git a/recipes/kexecboot/kexecboot-klibc_git.bb b/recipes/kexecboot/kexecboot-klibc_git.bb
new file mode 100644 (file)
index 0000000..d57f7e4
--- /dev/null
@@ -0,0 +1,13 @@
+RDEPENDS_${PN} = "kexec-klibc"
+PV = "0.5"
+PR = "r19+gitr${SRCREV}"
+
+SRC_URI = "git://git.linuxtogo.org/home/groups/kexecboot/kexecboot.git;protocol=git "
+
+SRCREV = "cd52db828d24a239698f142e9b028c6bc0d6a21a"
+S = "${WORKDIR}/git"
+
+# the binary is statically linked against klibc
+inherit klibc
+
+require kexecboot.inc
index bdbc3a5..a55ff83 100644 (file)
@@ -1,23 +1,13 @@
 LICENSE = "GPL"
 
-# the binary is statically linked against klibc
-inherit klibc
-inherit autotools
-
-RDEPENDS_${PN} = "kexec-klibc"
-
-# The binary itself is not machine-specific
-# but the EXTRA_OECONF overrides have this effect 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 # You can create your own *-img.h by doing
 # ./make-image-header.sh <file>.png HAND
+# Defaults as in ver 0.5+0.6b
 
-SRC_URI += "file://logo-img.h \
-        file://logo.png \
-        "
+SRC_URI += "file://logo-img.h file://logo.png"
+
+inherit autotools
 
-# Defaults as in ver 0.5+0.6b
 #############################
 # Optional Features:
 #  --disable-option-checking  ignore unrecognized --enable/--with options
@@ -54,22 +44,23 @@ EXTRA_OECONF_c7x0 = "--with-zaurus"
 EXTRA_OECONF_spitz = "--with-zaurus"
 EXTRA_OECONF_poodle = "--with-zaurus"
 EXTRA_OECONF_tosa = "--with-zaurus"
-
 EXTRA_OECONF_omap3 = "--with-uimage"
 
 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
 }
 
+# The binary itself is not machine-specific
+# but the EXTRA_OECONF overrides have this effect
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 FILES_${PN} += " ${bindir}/kexecboot /init /proc /mnt"
 
 pkg_postinst_${PN} () {
index 8a282a0..6a3f8fd 100644 (file)
@@ -1,9 +1,10 @@
+RDEPENDS_${PN} = "kexec"
 PV = "0.5"
 PR = "r19+gitr${SRCREV}"
 
 SRC_URI = "git://git.linuxtogo.org/home/groups/kexecboot/kexecboot.git;protocol=git "
-SRCREV = "cd52db828d24a239698f142e9b028c6bc0d6a21a"
 
+SRCREV = "cd52db828d24a239698f142e9b028c6bc0d6a21a"
 S = "${WORKDIR}/git"
 
 require kexecboot.inc