Skip to content

Commit

Permalink
[build] add a vim tag to some build generated files
Browse files Browse the repository at this point in the history
Set the tab stop to 8 and turn off listing characters to look proper on
some editors that have that set to something else.
  • Loading branch information
travisg committed Apr 24, 2024
1 parent 284bf10 commit 78fa76a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions make/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,32 @@ $(OUTELF): $(ALLMODULE_OBJS) $(EXTRA_OBJS) $(LINKER_SCRIPT) $(EXTRA_LINKER_SCRIP
$(OUTELF).sym: $(OUTELF)
$(info generating symbols: $@)
$(NOECHO)$(OBJDUMP) -t $< | $(CPPFILT) > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

$(OUTELF).sym.sorted: $(OUTELF)
$(info generating sorted symbols: $@)
$(NOECHO)$(OBJDUMP) -t $< | $(CPPFILT) | sort > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

$(OUTELF).lst: $(OUTELF)
$(info generating listing: $@)
$(NOECHO)$(OBJDUMP) $(ARCH_OBJDUMP_FLAGS) -d $< | $(CPPFILT) > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

$(OUTELF).debug.lst: $(OUTELF)
$(info generating listing: $@)
$(NOECHO)$(OBJDUMP) $(ARCH_OBJDUMP_FLAGS) -S $< | $(CPPFILT) > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

$(OUTELF).dump: $(OUTELF)
$(info generating objdump: $@)
$(NOECHO)$(OBJDUMP) -x $< | $(CPPFILT) > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

$(OUTELF).size: $(OUTELF)
$(info generating size map: $@)
$(NOECHO)$(NM) -S --size-sort $< | $(CPPFILT) > $@
$(NOECHO)echo "# vim: ts=8 nolist nowrap" >> $@

# print some information about the build
$(BUILDDIR)/srcfiles.txt: $(OUTELF)
Expand Down

0 comments on commit 78fa76a

Please sign in to comment.