Permalink
Browse files

Syncing up some things with the dual-binaries branch.

Signed-off-by: nubecoder <nubecoder@gmail.com>
  • Loading branch information...
nubecoder committed Aug 13, 2011
1 parent 70e5a0e commit 91f346ae6f2d57b19827f9f6629c9ff1ba5dc653
Showing with 28 additions and 23 deletions.
  1. +6 −8 README
  2. +1 −0 changelog
  3. +21 −15 createBootLogo.sh → createLogos.sh
  4. 0 makelogo.cpp → makebootlogo.cpp
View
14 README
@@ -1,17 +1,15 @@
-
Instructions:
-Create a 480x800 (24bit) RGB color image in gimp and save as "C source code header".
-Edit makelogo.cpp to include the path to the newly created "C source code header" file.
+Create a boot image in gimp (480x800 24bit RGB color) and save as "C source code header".
+Edit makebootlogo.cpp to include the path to the newly created "C source code header" file.
-Run the createBootLogo.sh script:
- ./createBootLogo.sh
+Run the createLogos.sh script:
+./createLogos.sh
Copy the file into the Kernel's source path:
- cp logo_rgb24_wvga_portrait_custom.h ../Kernel/drivers/video/samsung/logo_rgb24_wvga_portrait.h
+cp logo_rgb24_wvga_portrait_custom.h ../Kernel/drivers/video/samsung/logo_rgb24_wvga_portrait.h
Compile your kernel as usual.
-look at end_logo.h if you plan on replacing the charge image.
-I never got to just doing it all at once, that would be on my todo list.
+Look to the dual-binaries branch if you plan on replacing the charge image.
View
@@ -1,6 +1,7 @@
Changelog:
08-12-2011:
+Syncing up some things with the dual-binaries branch.
Minor changes to creatBootLogo.sh.
Ignoring output file (logo_rgb24_wvga_portrait_custom.h).
Added createBootLogo.sh script for ease of use.
@@ -16,9 +16,9 @@
#defines
DST_FILE="logo_rgb24_wvga_portrait_custom.h"
-BINARY="makelogo"
-BOOT_LOGO="boot_logo.h"
+BOOT_LOGO="custom_boot_logo.h"
CHARGE_LOGO="charge_logo.h"
+BOOT_BINARY="makebootlogo"
#functions
SPACER()
@@ -41,38 +41,44 @@ SHOW_COMPLETED()
}
BUILD_BINARY()
{
- echo "Building binary..."
+ echo "Building $1 binary..."
# remove old files
- rm -f $BINARY
+ rm -f $1
# build binary
- local RESULT=$(g++ -o $BINARY $BINARY.cpp 2>&1 >/dev/null)
+ local RESULT=$(g++ -o $1 $1.cpp 2>&1 >/dev/null)
# make binary executable
- chmod +x $BINARY
+ chmod +x $1
}
CREATE_LOGO()
{
- echo "Creating bootlogo..."
+ echo "Creating $1..."
+ # remove old files
+ rm -f $1
+ # generate usable data
+ ./$2 > $1
+}
+CREATE_DST_FILE()
+{
+ echo "Creating $DST_FILE..."
# remove old files
- rm -f $BOOT_LOGO
rm -f $DST_FILE
- # convert header to usable data
- ./$BINARY > $BOOT_LOGO
# output to file
- cat $BOOT_LOGO > $DST_FILE
- cat $CHARGE_LOGO >> $DST_FILE
+ cat $1 > $DST_FILE
+ cat $2 >> $DST_FILE
}
CLEANUP()
{
echo "Cleaning up files..."
# remove files
rm -f $BOOT_LOGO
- rm -f $BINARY
+ rm -f $BOOT_BINARY
}
#main
START_SCRIPT
-BUILD_BINARY
-CREATE_LOGO
+BUILD_BINARY "$BOOT_BINARY"
+CREATE_LOGO "$BOOT_LOGO" "$BOOT_BINARY"
+CREATE_DST_FILE "$BOOT_LOGO" "$CHARGE_LOGO"
CLEANUP
SHOW_COMPLETED
File renamed without changes.

0 comments on commit 91f346a

Please sign in to comment.