mirror of https://github.com/ArduPilot/ardupilot
build: update to build rules from master
This commit is contained in:
parent
e7dcb43407
commit
3761870544
|
@ -124,6 +124,7 @@ endif
|
|||
|
||||
# The ELF file
|
||||
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
|
||||
BUILDELF = $(notdir $(SKETCHELF))
|
||||
|
||||
# HEX file
|
||||
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
|
||||
|
@ -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)
|
||||
|
|
|
@ -102,6 +102,7 @@ LIBOBJS := $(SKETCHLIBOBJS) $(COREOBJS)
|
|||
|
||||
# The ELF file
|
||||
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
|
||||
BUILDELF = $(notdir $(SKETCHELF))
|
||||
|
||||
# HEX file
|
||||
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
|
||||
|
@ -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)
|
||||
|
|
|
@ -58,6 +58,7 @@ LIBOBJS := $(SKETCHLIBOBJS)
|
|||
|
||||
# The ELF file
|
||||
SKETCHELF = $(BUILDROOT)/$(SKETCH).elf
|
||||
BUILDELF = $(notdir $(SKETCHELF))
|
||||
|
||||
# HEX file
|
||||
SKETCHHEX = $(BUILDROOT)/$(SKETCH).hex
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue