Skip to content

Commit

Permalink
Add meaningful error for missing SDK build
Browse files Browse the repository at this point in the history
  • Loading branch information
ReservedField committed Sep 15, 2016
1 parent 44314f8 commit 0ac5cbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ 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`, or you get
`No rule to make target 'EVICSDK/lib/FLAVOR/DEVICE'`, chances are you don't have the needed SDK built.
`No SDK found for DEVICE-FLAVOR`, chances are you don't have the needed SDK built.

#### Parallel make

Expand Down
4 changes: 4 additions & 0 deletions make/Base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ $(objs-all): | $$(@D)
$(call mkdir-rules,objs-dirs-tmpl,$(OBJS))
$(call mkdir-rules,bindir-tmpl)

# If this is remade the SDK output directory doesn't exist.
$(sdk-all):
$(error No SDK found for $(BUILD_DEVICE)-$(BUILD_FLAVOR))

# Mark all release ELFs and unencrypted binaries as intermediate files.
.INTERMEDIATE: $(elf-rel) $(bin-dec-rel)

Expand Down

0 comments on commit 0ac5cbc

Please sign in to comment.