diff options
| author | Steve Kondik <shade@chemlab.org> | 2012-05-26 14:30:47 -0700 |
|---|---|---|
| committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 23:09:00 +0100 |
| commit | 910e55a75faac4f40e03622040ab0fc92b74f5b4 (patch) | |
| tree | 26a44ea844b8116df1f133cb746b7553ff39cd4b /init | |
| parent | 317413813f5fda9b329bf152ae053cbfac8ea996 (diff) | |
| download | system_core-910e55a75faac4f40e03622040ab0fc92b74f5b4.tar.gz system_core-910e55a75faac4f40e03622040ab0fc92b74f5b4.tar.bz2 system_core-910e55a75faac4f40e03622040ab0fc92b74f5b4.zip | |
init: Add option to disable the initlogo
* It looks like crap on some hardware due to different framebuffer
formats. Just disable it if the option is set.
Change-Id: Iad8ca25072fd16ca984050c6605bc1646821bee1
Diffstat (limited to 'init')
| -rw-r--r-- | init/Android.mk | 4 | ||||
| -rw-r--r-- | init/logo.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/init/Android.mk b/init/Android.mk index 0e2291ef..4c315cdc 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -26,6 +26,10 @@ ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) LOCAL_CFLAGS += -DALLOW_LOCAL_PROP_OVERRIDE=1 endif +ifeq ($(TARGET_NO_INITLOGO),true) +LOCAL_CFLAGS += -DNO_INITLOGO +endif + SYSTEM_CORE_INIT_DEFINES := BOARD_CHARGING_MODE_BOOTING_LPM $(foreach system_core_init_define,$(SYSTEM_CORE_INIT_DEFINES), \ diff --git a/init/logo.c b/init/logo.c index 614224c4..1b12f330 100644 --- a/init/logo.c +++ b/init/logo.c @@ -113,6 +113,7 @@ int load_565rle_image(char *fn) if (vt_set_mode(1)) return -1; +#ifndef NO_INITLOGO fd = open(fn, O_RDONLY); if (fd < 0) { ERROR("cannot open '%s'\n", fn); @@ -150,6 +151,7 @@ int load_565rle_image(char *fn) fb_close(&fb); close(fd); unlink(fn); +#endif return 0; fail_unmap_data: |
