Skip to content

Commit

Permalink
build: put elf file in current directory
Browse files Browse the repository at this point in the history
makes it more obvious where the build ends up
  • Loading branch information
Andrew Tridgell committed Nov 13, 2014
1 parent f04f8e2 commit 75a5178
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mk/board_avr.mk
Expand Up @@ -124,6 +124,7 @@ endif

# The ELF file
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
BUILDELF = $(notdir $(SKETCHELF))

# HEX file
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
Expand Down Expand Up @@ -174,6 +175,8 @@ jtag-program:
$(SKETCHELF): $(SKETCHOBJS) $(LIBOBJS)
$(RULEHDR)
$(v)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
$(v)cp $(SKETCHELF) $(BUILDELF)
@echo "Firmware is in $(BUILDELF)"

# Create the hex file
$(SKETCHHEX): $(SKETCHELF)
Expand Down
3 changes: 3 additions & 0 deletions mk/board_flymaple.mk
Expand Up @@ -102,6 +102,7 @@ LIBOBJS := $(SKETCHLIBOBJS) $(COREOBJS)

# The ELF file
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
BUILDELF = $(notdir $(SKETCHELF))

# HEX file
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
Expand Down Expand Up @@ -157,6 +158,8 @@ jtag-program:
$(SKETCHELF): $(SKETCHOBJS) $(LIBOBJS)
$(RULEHDR)
$(v)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
$(v)cp $(SKETCHELF) .
@echo "Firmware is in $(BUILDELF)"

# Create the hex file
$(SKETCHHEX): $(SKETCHELF)
Expand Down
3 changes: 3 additions & 0 deletions mk/board_native.mk
Expand Up @@ -58,6 +58,7 @@ LIBOBJS := $(SKETCHLIBOBJS)

# The ELF file
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
BUILDELF = $(notdir $(SKETCHELF))

# HEX file
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
Expand Down Expand Up @@ -95,6 +96,8 @@ $(SKETCHELF): $(SKETCHOBJS) $(LIBOBJS)
@echo "Building $(SKETCHELF)"
$(RULEHDR)
$(v)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
$(v)cp $(SKETCHELF) .
@echo "Firmware is in $(BUILDELF)"

#
# Build sketch objects
Expand Down

0 comments on commit 75a5178

Please sign in to comment.