summaryrefslogtreecommitdiff
path: root/arch/m68k/platform/68328/bootlogo.pl
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2011-05-18 19:06:31 +0400
committerJiri Kosina <jkosina@suse.cz>2011-05-18 19:06:49 +0400
commit6b7b8e488bbdedeccabdd001a78ffcbe43bb8a3a (patch)
treef2f77cc31b4548745778fca6a51b09e1d8a49804 /arch/m68k/platform/68328/bootlogo.pl
parentb50f315cbb865079a16a12fd9ae6083f98fd592c (diff)
parentc1d10d18c542278b7fbc413c289d3cb6219da6b3 (diff)
downloadlinux-6b7b8e488bbdedeccabdd001a78ffcbe43bb8a3a.tar.xz
Merge branch 'master' into upstream.
This is sync with Linus' tree to receive KEY_IMAGES definition that went in through input tree.
Diffstat (limited to 'arch/m68k/platform/68328/bootlogo.pl')
-rw-r--r--arch/m68k/platform/68328/bootlogo.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/m68k/platform/68328/bootlogo.pl b/arch/m68k/platform/68328/bootlogo.pl
new file mode 100644
index 000000000000..b04ae3f50da5
--- /dev/null
+++ b/arch/m68k/platform/68328/bootlogo.pl
@@ -0,0 +1,10 @@
+
+$_ = join("", <>);
+
+s/(0x[0-9a-f]{2})/sprintf("0x%.2x",ord(pack("b8",unpack("B8",chr(hex($1))))))/gei;
+
+s/^ / .byte /gm;
+s/[,};]+$//gm;
+s/^static.*//gm;
+
+print $_;