Skip to content

Commit

Permalink
aboot: Use lk2nd's own menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TravMurav committed Aug 30, 2023
1 parent a089418 commit 89aa777
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions app/aboot/aboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
#if WITH_LK2ND_DEVICE
#include <lk2nd/device.h>
#endif
#if WITH_LK2ND_DISPLAY_MENU
#include <lk2nd/menu.h>
#endif

extern bool target_use_signed_kernel(void);
extern void platform_uninit(void);
Expand Down Expand Up @@ -5715,6 +5718,10 @@ void aboot_init(const struct app_descriptor *app)
#if FBCON_DISPLAY_MSG
display_fastboot_menu();
#endif

#if WITH_LK2ND_DISPLAY_MENU
lk2nd_fastboot_menu();
#endif
}

uint32_t get_page_size(void)
Expand Down
6 changes: 4 additions & 2 deletions lk2nd/project/base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ LK2ND_SMP_OPTIONAL := 1

ifeq ($(ENABLE_DISPLAY), 1)
ifneq ($(LK2ND_DISPLAY),)
MODULES += lk2nd/display
ENABLE_FBCON_DISPLAY_MSG := 1
MODULES += \
lk2nd/display \
lk2nd/display/menu
ENABLE_FBCON_DISPLAY_MSG := 0
else
ENABLE_DISPLAY := 0
$(info NOTE: Display support is disabled without display/panel selection)
Expand Down

0 comments on commit 89aa777

Please sign in to comment.