diff --git a/README.md b/README.md index 830621b..58ab828 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/make/Base.mk b/make/Base.mk index 874641d..8f68452 100644 --- a/make/Base.mk +++ b/make/Base.mk @@ -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)