Skip to content

Commit

Permalink
extmod/libmetal: Fix libmetal rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Sep 3, 2024
1 parent 57a6e3b commit d07377c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extmod/libmetal/libmetal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# This replicates the basic functionality of the pre-processor, including adding a "micropython"
# platform that is almost identical to the built-in "generic" platform with a few small changes
# provided by the files in extmod/libmetal.
$(BUILD)/openamp: $(BUILD)
$(BUILD)/openamp: | $(BUILD)
$(MKDIR) -p $@

$(BUILD)/openamp/metal: $(BUILD)/openamp
$(BUILD)/openamp/metal: | $(BUILD)/openamp
$(MKDIR) -p $@

$(BUILD)/openamp/metal/config.h: | $(BUILD)/openamp/metal $(TOP)/$(LIBMETAL_DIR)/lib/config.h
$(BUILD)/openamp/metal/config.h: $(TOP)/$(LIBMETAL_DIR)/lib/config.h | $(BUILD)/openamp/metal
@$(ECHO) "GEN $@"
@for file in $(TOP)/$(LIBMETAL_DIR)/lib/*.c $(TOP)/$(LIBMETAL_DIR)/lib/*.h; do $(SED) -e "s/@PROJECT_SYSTEM@/micropython/g" -e "s/@PROJECT_PROCESSOR@/arm/g" $$file > $(BUILD)/openamp/metal/$$(basename $$file); done
$(MKDIR) -p $(BUILD)/openamp/metal/processor/arm
Expand Down

0 comments on commit d07377c

Please sign in to comment.