diff options
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 7c6f31847a..c2144617eb 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -566,6 +566,20 @@ $(npcx-monitor-hdr-rw-bin):$(out)/$(npcx-monitor-hdr)_rw.o $(if $(V),,@echo ' EXTBIN ' $(subst $(out)/,,$@) ; ) -@ $(OBJCOPY) -O binary $< $@ +# rules for building ISH aon task fw +$(ish-aontask-fw-bin):$(out)/$(ish-aontask-fw).ld + $(if $(V),,@echo ' EXTBIN ' $(subst $(out)/,,$@) ; ) + -@ $(CC) $(CFLAGS) -MMD -MF $(out)/$(ish-aontask-fw).d -c $(ish-aontask-fw).c \ + -o $(out)/$(ish-aontask-fw).o + -@ $(CC) $(out)/$(ish-aontask-fw).o $(LDFLAGS) \ + -o $(out)/$(ish-aontask-fw).elf -Wl,-T,$(out)/$(ish-aontask-fw).ld \ + -Wl,-Map,$(out)/$(ish-aontask-fw).map + -@ $(OBJCOPY) -O binary $(out)/$(ish-aontask-fw).elf $@ + +$(out)/$(ish-aontask-fw).ld:$(ish-aontask-fw).ld.in + -@ mkdir -p $(@D) + @ $(CC) $(CFLAGS) -x assembler-with-cpp -E -P $< -o $@ + .PHONY: xrefs xrefs: $(call targ_if_prog,etags,$(out)/TAGS) \ $(call targ_if_prog,ctags,$(out)/tags) |