mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
c318c89453
This commit removes the dependency on portUSING_MPU_WRAPPERS on the Xtensa port of IDF FreeRTOS. This dependency was added due to a hack implemented in the upstream port that required the usage of the "xMPUSettings" member of the TCB. The "xMPUSettings" would be used as a pointer to the task's coprocessor save area on the stack, even though FreeRTOS MPU support was not available. The hack has now been removed, and the CPSA pointer is now calculated using a combination of constant offsets values and the pxEndOfStack member of the TCB. Note: This impelemtation was copied from the Xtensa port of Amazon SMP FreeRTOS.
29 lines
746 B
Makefile
29 lines
746 B
Makefile
# The purpose of this Makefile is to build dummy ELF files required to run idf_monitor tests.
|
|
|
|
# Make sure the toolchains are in the PATH:
|
|
PREFIX_XTENSA ?= xtensa-esp32-elf-
|
|
PREFIX_RISCV ?= riscv32-esp-elf-
|
|
|
|
PROG_XTENSA := dummy_xtensa.elf
|
|
PROG_RISCV := dummy_riscv.elf
|
|
|
|
CPPFLAGS_XTENSA := -DTASK_NAME_OFFSET=52
|
|
CPPFLAGS_RISCV := -DTASK_NAME_OFFSET=52
|
|
|
|
all: $(PROG_XTENSA) $(PROG_RISCV)
|
|
|
|
$(PROG_XTENSA): dummy.c
|
|
$(PREFIX_XTENSA)gcc $(CPPFLAGS_XTENSA) --specs=nosys.specs -o $@ -g $^
|
|
chmod -x $@
|
|
|
|
# ^ chmod is there so that we don't have to add ELF files to executables list
|
|
|
|
$(PROG_RISCV): dummy.c
|
|
$(PREFIX_RISCV)gcc $(CPPFLAGS_RISCV) --specs=nosys.specs -o $@ -g $^
|
|
chmod -x $@
|
|
|
|
clean:
|
|
rm -f $(PROG_XTENSA) $(PROG_RISCV)
|
|
|
|
.PHONY: clean all
|