diff --git a/libreboot/reboot.c b/libreboot/reboot.c index 4908030..bff4597 100644 --- a/libreboot/reboot.c +++ b/libreboot/reboot.c @@ -72,10 +72,14 @@ int reboot_wrapper(const char* reason) { if (strlen(reason) > 8 && sscanf(reason, "%s %s", dummy, ext_reason) > 0) { // allow "bootmenu recovery" or "bootmenu shell" ret = fputs(ext_reason, config); - pr_debug("bootmenu %s " BOARD_BOOTMODE_CONFIG_FILE " (%d)\n", ext_reason, ret); + #if (DBG_LEVEL) + printf("reboot: %s->bootmenu " BOARD_BOOTMODE_CONFIG_FILE " (%d)\n", ext_reason, ret); + #endif } else { ret = fputs(reason, config); - pr_debug("%s->bootmenu " BOARD_BOOTMODE_CONFIG_FILE " (%d)\n", reason, ret); + #if (DBG_LEVEL) + printf("reboot: %s->bootmenu " BOARD_BOOTMODE_CONFIG_FILE " (%d)\n", reason, ret); + #endif } need_clear_reason = 1; diff --git a/minui/Android.mk b/minui/Android.mk index dc5ff7b..f282842 100644 --- a/minui/Android.mk +++ b/minui/Android.mk @@ -4,7 +4,14 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) -LOCAL_SRC_FILES := graphics.c events.c resources.c +LOCAL_SRC_FILES := events.c resources.c + +ifneq ($(BOARD_CUSTOM_BOOTMENU_GRAPHICS),) + LOCAL_SRC_FILES += $(BOARD_CUSTOM_BOOTMENU_GRAPHICS) +else + LOCAL_SRC_FILES += graphics.c +endif + LOCAL_C_INCLUDES +=\ external/libpng\