Objcopy text sections to irom0 (no more ICACHE_FLASH_ATTR, yay!)

This commit is contained in:
Angus Gratton 2015-05-06 18:44:41 +10:00
parent b3c674d89d
commit 5825ce763c

View file

@ -99,7 +99,7 @@ $1/%.o: %.c
$(vecho) "CC $$<" $(vecho) "CC $$<"
$(CC_ARGS) -c $$< -o $$@ $(CC_ARGS) -c $$< -o $$@
$(CC_ARGS) -MM -MT $$@ -MF $$(@:.o=.d) $$< $(CC_ARGS) -MM -MT $$@ -MF $$(@:.o=.d) $$<
# $(Q) $(OBJCOPY) --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $$@ $(Q) $(OBJCOPY) --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $$@
endef endef
.PHONY: all checkdirs clean .PHONY: all checkdirs clean