Skip to content

Commit

Permalink
Re-link APROM when SDK is rebuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
ReservedField committed Sep 15, 2016
1 parent a8762ee commit 44314f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ the linker map are targets (so you could `make bin/dbg/DEVICE/TARGET.elf`, for e

Note that APROMs for a certain device and flavor combination are built against the SDK for that
same device and flavor, so you'll need to have that SDK built for it to succeed. If you see linker
errors about missing `evicsdk-crt0.o`, `-levicsdk` or `-lnuvosdk` chances are you don't have the
needed SDK built.
errors about missing `evicsdk-crt0.o`, `-levicsdk` or `-lnuvosdk`, or you get
`No rule to make target 'EVICSDK/lib/FLAVOR/DEVICE'`, chances are you don't have the needed SDK built.

#### Parallel make

Expand Down
7 changes: 4 additions & 3 deletions make/Base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ $(call build-vars-rules,bin-dec-tmpl)
$(call build-vars-rules,bin-enc-tmpl)

# Rule to link objects into an ELF.
$(elf-all): $$(call tmpl-build,objs-tmpl,$$(OBJS)) | $$(@D)
$(elf-all): $$(call tmpl-build,sdkdir-tmpl,$(EVICSDK)) \
$$(call tmpl-build,objs-tmpl,$$(OBJS)) | $$(@D)
$(call info-cmd,LD)
@$(call trace, \
$(LD) $(call fixpath-bu,$^) $(LDFLAGS_LIBDIRS) $(LDFLAGS) \
-o $(call fixpath-bu,$@))
$(LD) $(call fixpath-bu,$(wordlist 2,$(words $^),$^)) \
$(LDFLAGS_LIBDIRS) $(LDFLAGS) -o $(call fixpath-bu,$@))

# Add the SDK to LDFLAGS_LIBDIRS for all ELF targets.
$(elf-all): LDFLAGS_LIBDIRS += \
Expand Down

0 comments on commit 44314f8

Please sign in to comment.