Skip to content

Commit

Permalink
buildArchive (only) option
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Nov 19, 2023
1 parent 12f4b32 commit 1918979
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/mcconfig/make.esp32.mk
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,11 @@ precursor: idfVersionCheck prepareOutput $(PROJ_DIR_FILES) bootloaderCheck $(BLE
cp $(BIN_DIR)/xs_$(ESP32_SUBCLASS).a $(BLD_DIR)/.
touch $(PROJ_DIR)/main/main.c

buildArchive: precursor
echo "#"
echo "# Built archive at $(BIN_DIR)"
echo "#"

build: precursor
-cd $(PROJ_DIR) ; $(BUILD_CMD)
$(OBJDUMP) -t $(BLD_DIR)/xs_esp32.elf > $(BIN_DIR)/xs_$(ESP32_SUBCLASS).sym 2> /dev/null
Expand Down Expand Up @@ -596,7 +601,7 @@ $(LIB_DIR):
mkdir -p $(LIB_DIR)

$(BIN_DIR)/xs_$(ESP32_SUBCLASS).a: $(TMP_DIR)/buildinfo.h $(SDK_OBJ) $(XS_OBJ) $(TMP_DIR)/xsPlatform.c.o $(TMP_DIR)/xsHost.c.o $(TMP_DIR)/xsHosts.c.o $(TMP_DIR)/mc.xs.c.o $(TMP_DIR)/mc.resources.c.o $(OBJECTS)
@echo "# ld xs_esp32.bin"
@echo "# ar xs_$(ESP32_SUBCLASS).a"
$(CC) $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) $(TMP_DIR)/buildinfo.c -o $(TMP_DIR)/buildinfo.c.o
$(AR) $(AR_FLAGS) $(BIN_DIR)/xs_$(ESP32_SUBCLASS).a $^ $(TMP_DIR)/buildinfo.c.o

Expand Down

0 comments on commit 1918979

Please sign in to comment.