diff options
author | Nathaniel Graff <nathaniel.graff@sifive.com> | 2019-06-21 16:29:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 16:29:49 +0000 |
commit | ad16a7c83bbc6d0eea84013ce66529113168557c (patch) | |
tree | eace86ff01d14cd8befdad607334cb00d3179b78 /Makefile | |
parent | e52f5c4ad0c3ad3db876a895c926aab0b2f663b1 (diff) | |
parent | b2cd8661e19c693c9d8cfd59c6ac5e786e540618 (diff) |
Merge pull request #289 from sifive/fix-list-targets
Fix list targets
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -56,6 +56,11 @@ PROGRAM_LST = $(SRC_DIR)/$(CONFIGURATION)/$(PROGRAM).lst # Finds the directory in which this BSP is located, ensuring that there is # exactly one. BSP_DIR := $(wildcard $(TARGET_ROOT)/bsp/$(TARGET)) + +# Only perform these error checks and include the standalone.mk fragment +# if we're not processing one of the "list-" targets +ifneq ($@,$(filter $@, list-targets list-target-tags list-programs list-options)) + ifeq ($(words $(BSP_DIR)),0) $(error Unable to find BSP for $(TARGET), expected to find "bsp/$(TARGET)") endif @@ -77,6 +82,9 @@ endif include scripts/standalone.mk +# End of exclusion when procesinng "list-" targets. +endif + ############################################################# # Prints help message ############################################################# |