diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2024-11-30 08:31:36 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-12-10 10:25:02 +1100 |
commit | a118cf9ab0d44a69b4af23e2f42a49c2abafca41 (patch) | |
tree | 184ad242064eb973140424153ec8a21d8acbacdd /extmod | |
parent | 2c80d369988a84d85efe0483f9cf469ff27b70f9 (diff) | |
download | micropython-a118cf9ab0d44a69b4af23e2f42a49c2abafca41.tar.gz micropython-a118cf9ab0d44a69b4af23e2f42a49c2abafca41.zip |
extmod/extmod.mk: Fix libmetal build prefix.
libmetal source files already have the build directory prefix, because
they're auto-generated inside the build directory. When they're added
to `SRC_THIRDPARTY_C`, another build directory prefix is added resulting
in the object files being generated in a nested build directory.
This patch strips the build directory prefix before adding libmetal's
source files.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Diffstat (limited to 'extmod')
-rw-r--r-- | extmod/extmod.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/extmod.mk b/extmod/extmod.mk index 514197d6b9..f2ae3ad692 100644 --- a/extmod/extmod.mk +++ b/extmod/extmod.mk @@ -616,6 +616,6 @@ $(BUILD)/$(OPENAMP_DIR)/lib/virtio_mmio/virtio_mmio_drv.o: CFLAGS += -Wno-unused # We need to have generated libmetal before compiling OpenAMP. $(addprefix $(BUILD)/, $(SRC_OPENAMP_C:.c=.o)): $(BUILD)/openamp/metal/config.h -SRC_THIRDPARTY_C += $(SRC_LIBMETAL_C) $(SRC_OPENAMP_C) +SRC_THIRDPARTY_C += $(SRC_OPENAMP_C) $(SRC_LIBMETAL_C:$(BUILD)/%=%) endif # MICROPY_PY_OPENAMP |