[oe-commits] Andrea Adami : kexecboot-cfg: Deploy default icon. Bump PR.

git version control git at git.openembedded.org
Sun Nov 8 16:28:21 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: a719f3a73b2128ae28e13d1911256f883777af8c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a719f3a73b2128ae28e13d1911256f883777af8c

Author: Andrea Adami <andrea.adami at gmail.com>
Date:   Sun Nov  8 01:18:09 2009 +0100

kexecboot-cfg: Deploy default icon. Bump PR.

---

 recipes/kexecboot/files/angstrom/icon.xpm |   39 +++++++++++++++++++++++++++++
 recipes/kexecboot/files/icon.xpm          |   37 +++++++++++++++++++++++++++
 recipes/kexecboot/kexecboot-cfg_0.1.bb    |   14 ++++++---
 3 files changed, 85 insertions(+), 5 deletions(-)

diff --git a/recipes/kexecboot/files/angstrom/icon.xpm b/recipes/kexecboot/files/angstrom/icon.xpm
new file mode 100644
index 0000000..77b6710
--- /dev/null
+++ b/recipes/kexecboot/files/angstrom/icon.xpm
@@ -0,0 +1,39 @@
+/* XPM */
+static char * logo_xpm[] = {
+"32 32 4 1",
+" 	c None",
+".	c #729188",
+"+	c #93ACA4",
+"#	c #CCCCCC",
+"                                ",
+"               ++               ",
+"               ++               ",
+"               ++               ",
+"              .++.              ",
+"             .    .             ",
+"             .    .             ",
+"             . ++ .             ",
+"              ++++              ",
+"              ++++              ",
+"             +#++#+             ",
+"             +#++#+             ",
+"            +#+  +#+            ",
+"            +#+  +#+            ",
+"            ++ ++ ++            ",
+"           +#+ ++ +#+           ",
+"        ...+#+.++.+#+...        ",
+"        ...#+..++..+#...        ",
+"          +#+  ++  +#+          ",
+"          ++   ++   ++          ",
+"         +#+        +#+         ",
+"         ++          ++         ",
+"        +#+          +#+        ",
+"        ++            ++        ",
+"       +#+            +#+       ",
+"       +#+            +#+       ",
+"       ++              ++       ",
+"      +#+              +#+      ",
+"      +++              +++      ",
+"      .+                +.      ",
+"      .                  .      ",
+"                                "};
diff --git a/recipes/kexecboot/files/icon.xpm b/recipes/kexecboot/files/icon.xpm
new file mode 100644
index 0000000..26d4054
--- /dev/null
+++ b/recipes/kexecboot/files/icon.xpm
@@ -0,0 +1,37 @@
+/* XPM */
+static char * oe1_xpm[] = {
+"32 26 8 1",
+" 	c None",
+".	c #D6DBDE",
+"+	c #9BA6AE",
+"@	c #60727D",
+"#	c #B8BFC5",
+"$	c #A9E8F6",
+"%	c #12BCE4",
+"&	c #57D2EC",
+"           .++@@@@++.           ",
+"         +@@@@@@@@@@@@+         ",
+"       #@@@@@@@@@@@@@@@@#       ",
+"      +@@@@@@@@@@@@@@@@@@+      ",
+"    .@@@@@@@@++##+@@@@@@@@@.    ",
+"    @@@@@@@.        .@@@@@@@    ",
+"   +@@@@@+    $$$$    #@@@@@+   ",
+"  #@@@@@.  $%%%%%%%%$  .@@@@@#  ",
+"  @@@@@.  &%%%%%%%%%%&  .@@@@@  ",
+" #@@@@+  %%%%%%%%%%%%%%  +@@@@# ",
+" @@@@@  &%%%%%%%%%%%%%%&  @@@@@ ",
+".@@@@. $%%%%%&   $%%%%%&  .@@@@.",
+"+@@@@  %%%%%    $%%%%%&    @@@@+",
+"+@@@+  %%%%$   $%%%%%&  $$ +@@@+",
+"@@@@+ $%%%%   $%%%%%&  $%$ +@@@@",
+"@@@@# &%%%&   &%%%%&  $%%& #@@@@",
+"@@@@. &%%%&   %%%%&  $%%%& .@@@@",
+"@@@@# $%%%&   &%%&   &%%%$ #@@@@",
+"+@@@+ $%%%%          %%%%$ +@@@+",
+"+@@@@  %%%%&        &%%%%  @@@@+",
+"#@@@@  &%%%%&      &%%%%&  @@@@#",
+" @@@@+  %%%%%%&$$&%%%%%%  +@@@@ ",
+" +@@@@. $%%%%%%%%%%%%%%$ .@@@@+ ",
+" .@@@@@  $%%%%%%%%%%%%$  @@@@@. ",
+"  #++++.   &%%%%%%%%&   .++++#  ",
+"            $&&%%&&$            "};
diff --git a/recipes/kexecboot/kexecboot-cfg_0.1.bb b/recipes/kexecboot/kexecboot-cfg_0.1.bb
index 97407a8..f8172f4 100644
--- a/recipes/kexecboot/kexecboot-cfg_0.1.bb
+++ b/recipes/kexecboot/kexecboot-cfg_0.1.bb
@@ -2,9 +2,11 @@ LICENSE = "GPL"
 SECTION = "base"
 DESCRIPTION = "Configuration file for kexecboot"
 
-PR = "r5"
+PR = "r6"
 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"
@@ -29,18 +31,20 @@ CMDLINE += ${CMDLINE_DEBUG}
 
 FILES_${PN} += "/boot/*"
 
+do_configure_prepend () {
+    install -m 0644 ${WORKDIR}/icon.xpm ${S}
+}
+
 do_install_prepend () {
         echo "DEFAULT=${DISTRO}" > ${S}/boot.cfg
         echo "LABEL=${DISTRO}" >> ${S}/boot.cfg
         echo "KERNEL=/boot/${KERNEL_IMAGETYPE}" >> ${S}/boot.cfg
         echo "APPEND=${CMDLINE}" >> ${S}/boot.cfg
-        echo "#ICON=/boot/my_icon.xpm" >> ${S}/boot.cfg
+        echo "ICON=/boot/icon.xpm" >> ${S}/boot.cfg
 }
 
 do_install () {
 	install -d ${D}/boot
 	install -m 0644 boot.cfg ${D}/boot/boot.cfg
-
-	# old kexecboot versions < 0.52 were needing '/boot/kernel-cmdline'
-	# echo "${CMDLINE}"> ${D}/boot/kernel-cmdline
+	install -m 0644 icon.xpm ${D}/boot/icon.xpm
 }





More information about the Openembedded-commits mailing list