diff options
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.rules b/Makefile.rules index 958e116311..96d2465078 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -45,7 +45,7 @@ cmd_elf_to_dis = $(OBJDUMP) -D $< > $@ cmd_elf_to_hex = $(OBJCOPY) -O ihex $< $@ cmd_bin_to_hex = $(OBJCOPY) -I binary -O ihex \ --change-addresses $(_flash_base) $^ $@ -cmd_elf = $(LD) $(objs) $(LDFLAGS) -o $@ -T $< -Map $(out)/$*.map +cmd_elf = $(CC) $(objs) $(LDFLAGS) -o $@ -Wl,-T,$< -Wl,-Map,$(out)/$*.map cmd_smap = $(NM) $< | sort > $@ cmd_exe = $(CC) $(objs) $(HOST_TEST_LDFLAGS) -o $@ cmd_c_to_o = $(CC) $(CFLAGS) -MMD -MF $@.d -c $< -o $@ @@ -251,9 +251,9 @@ $(npcx-flash-fw-bin): -@ mkdir -p $(@D) -@ $(CC) $(CFLAGS) -MMD -MF $(out)/$(npcx-lfw).d -c $(npcx-flash-fw).c \ -o $(out)/$(npcx-flash-fw).o - -@ $(LD) $(out)/$(npcx-flash-fw).o $(LDFLAGS) \ - -o $(out)/$(npcx-flash-fw).elf -T $(npcx-flash-fw).ld \ - -Map $(out)/$(npcx-flash-fw).map + -@ $(CC) $(out)/$(npcx-flash-fw).o $(LDFLAGS) \ + -o $(out)/$(npcx-flash-fw).elf -Wl,-T,$(npcx-flash-fw).ld \ + -Wl,-Map,$(out)/$(npcx-flash-fw).map -@ $(OBJCOPY) -O binary $(out)/$(npcx-flash-fw).elf $@ # TODO: optional make rules for PROJECT_EXTRA @@ -262,8 +262,8 @@ $(npcx-lfw-bin): -@ mkdir -p $(@D) -@ $(CC) $(CFLAGS) -MMD -MF $(out)/$(npcx-lfw).d -c $(npcx-lfw).c \ -o $(out)/$(npcx-lfw).o - -@ $(LD) $(out)/$(npcx-lfw).o $(LDFLAGS) -o $(out)/$(npcx-lfw).elf \ - -T $(npcx-lfw).ld -Map $(out)/$(npcx-lfw).map + -@ $(CC) $(out)/$(npcx-lfw).o $(LDFLAGS) -o $(out)/$(npcx-lfw).elf \ + -Wl,-T,$(npcx-lfw).ld -Wl,-Map,$(out)/$(npcx-lfw).map -@ $(OBJCOPY) -O binary $(out)/$(npcx-lfw).elf $@ .PHONY: xrefs |