Skip to content

Commit

Permalink
Fix UI disabler for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Oct 27, 2023
1 parent 7498063 commit fc47544
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 6 additions & 2 deletions Makefile.defines
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,12 @@ LDFLAGS += -L$(BOLOS_SDK)/arch/st33k1/lib/
AFLAGS += -mcpu=cortex-m35p+nodsp -mthumb
endif

NO_UI ?= 0
ifeq ($(NO_UI), 0)
DISABLE_UI ?= 0
# Not compatible with debug builds
ifneq ($(DEBUG),0)
DISABLE_UI = 0
endif
ifeq ($(DISABLE_UI), 0)
ifeq ($(TARGET_NAME),TARGET_STAX)
DEFINES += HAVE_BAGL_FONT_INTER_REGULAR_24PX
DEFINES += HAVE_BAGL_FONT_INTER_SEMIBOLD_24PX
Expand Down
14 changes: 6 additions & 8 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
#*******************************************************************************

# temporary redef, to ensure wider compliance of the SDK with pre-1.6 apps
ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_NANOS TARGET_NANOX TARGET_NANOS2))
ifeq ($(NO_UI), 0)
SDK_SOURCE_PATH += lib_bagl lib_ux
endif
else ifeq ($(TARGET_NAME),TARGET_STAX)
ifeq ($(NO_UI), 0)
SDK_SOURCE_PATH += lib_nbgl lib_ux_stax
endif
ifeq ($(DISABLE_UI), 0)
ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_NANOS TARGET_NANOX TARGET_NANOS2))
SDK_SOURCE_PATH += lib_bagl lib_ux
else ifeq ($(TARGET_NAME),TARGET_STAX)
SDK_SOURCE_PATH += lib_nbgl lib_ux_stax
endif
endif

# adding the correct target header to sources
Expand Down

0 comments on commit fc47544

Please sign in to comment.