mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-22 21:30:56 +00:00
bootloader/loader: don't generate qstrdefs.generated.h in main Makefile
This commit is contained in:
parent
2b97f6729d
commit
2c1e0b8253
4
Makefile
4
Makefile
@ -29,13 +29,9 @@ build_firmware_debug: vendor res build_cross ## build firmware with frozen modul
|
||||
$(MAKE) -f Makefile.firmware $(TREZORHAL_PORT_OPTS) DEBUG=1
|
||||
|
||||
build_bootloader: vendor ## build bootloader
|
||||
mkdir -p $(BOOTLOADER_BUILD_DIR)/genhdr
|
||||
touch $(BOOTLOADER_BUILD_DIR)/genhdr/qstrdefs.generated.h
|
||||
$(MAKE) -f Makefile.bootloader $(TREZORHAL_PORT_OPTS)
|
||||
|
||||
build_loader: vendor ## build loader
|
||||
mkdir -p $(LOADER_BUILD_DIR)/genhdr
|
||||
touch $(LOADER_BUILD_DIR)/genhdr/qstrdefs.generated.h
|
||||
$(MAKE) -f Makefile.loader $(TREZORHAL_PORT_OPTS)
|
||||
|
||||
build_unix: vendor ## build unix port
|
||||
|
@ -12,6 +12,7 @@ SRCDIR_FW = micropython
|
||||
|
||||
BUILD_MP = $(BUILD)/$(SRCDIR_MP)
|
||||
BUILD_FW = $(BUILD)/$(SRCDIR_FW)
|
||||
BUILD_HDR = $(BUILD)/genhdr
|
||||
|
||||
# OBJ vendor/micropython
|
||||
OBJ_MP += $(addprefix $(BUILD_MP)/,\
|
||||
@ -162,6 +163,12 @@ $(OBJ): | $(OBJ_DIRS)
|
||||
$(OBJ_DIRS):
|
||||
$(MKDIR) -p $@
|
||||
|
||||
$(OBJ): | $(BUILD_HDR)/qstrdefs.generated.h
|
||||
|
||||
$(BUILD_HDR)/qstrdefs.generated.h:
|
||||
$(MKDIR) -p $(BUILD_HDR)
|
||||
touch $(BUILD_HDR)/qstrdefs.generated.h
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(BUILD)
|
||||
|
||||
|
@ -12,6 +12,7 @@ SRCDIR_FW = micropython
|
||||
|
||||
BUILD_MP = $(BUILD)/$(SRCDIR_MP)
|
||||
BUILD_FW = $(BUILD)/$(SRCDIR_FW)
|
||||
BUILD_HDR = $(BUILD)/genhdr
|
||||
|
||||
# OBJ vendor/micropython
|
||||
OBJ_MP += $(addprefix $(BUILD_MP)/,\
|
||||
@ -160,6 +161,12 @@ $(OBJ): | $(OBJ_DIRS)
|
||||
$(OBJ_DIRS):
|
||||
$(MKDIR) -p $@
|
||||
|
||||
$(OBJ): | $(BUILD_HDR)/qstrdefs.generated.h
|
||||
|
||||
$(BUILD_HDR)/qstrdefs.generated.h:
|
||||
$(MKDIR) -p $(BUILD_HDR)
|
||||
touch $(BUILD_HDR)/qstrdefs.generated.h
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(BUILD)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user