Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 910e55a7 authored by Steve Kondik's avatar Steve Kondik Committed by Ricardo Cerqueira
Browse files

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
parent 31741381
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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), \
+2 −0
Original line number Diff line number Diff line
@@ -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: