Skip to content

Commit

Permalink
standard_app: allow URL to be defined in app makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Jul 31, 2023
1 parent 8dbc73d commit 4840638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile.standard_app
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ ifneq ($(DISABLE_STANDARD_USB), 1)
endif

ifneq ($(DISABLE_STANDARD_WEBUSB), 1)
DEFINES += HAVE_WEBUSB WEBUSB_URL_SIZE_B=0 WEBUSB_URL=""
URL ?= ""
WEBUSB_URL_SIZE_B = $(shell echo -n $(URL) | wc -c)
WEBUSB_URL=$(shell echo -n $(URL) | sed -e "s/./\\\'\0\\\',/g")
DEFINES += HAVE_WEBUSB WEBUSB_URL_SIZE_B=$(WEBUSB_URL_SIZE_B) WEBUSB_URL=$(WEBUSB_URL)
endif

ifneq ($(DISABLE_STANDARD_BAGL_UX_FLOW), 1)
Expand Down

0 comments on commit 4840638

Please sign in to comment.