diff options
author | Alistair Francis <alistair@alistair23.me> | 2019-02-15 15:02:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 15:02:19 -0800 |
commit | 3c53950b003af585de66c6eeddcf8cc17eb6c890 (patch) | |
tree | 47a04fd9495663eb08adabb7fc5909e15f85e9b2 /Makefile | |
parent | 5cd69a496b380da3194664b7ff09411c9ce7da0b (diff) | |
parent | 868e20df8b302c20782026a806dda317b76655e9 (diff) | |
download | opensbi-3c53950b003af585de66c6eeddcf8cc17eb6c890.zip opensbi-3c53950b003af585de66c6eeddcf8cc17eb6c890.tar.gz opensbi-3c53950b003af585de66c6eeddcf8cc17eb6c890.tar.bz2 |
Merge pull request #59 from avpatel/make-run
Add 'make run' command for platform specific run
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -316,6 +316,21 @@ all-deps-2 = $(if $(findstring clean,$(MAKECMDGOALS)),,$(all-deps-1)) # Include external dependency of firmwares after default Makefile rules include $(src_dir)/firmware/external_deps.mk +# Convenient "make run" command for emulated platforms +.PHONY: run +run: all +ifneq ($(platform-runcmd),) + $(platform-runcmd) $(RUN_ARGS) +else +ifdef PLATFORM + @echo Platform $(PLATFORM) doesn't specify a run command + @false +else + @echo Run command only available when targeting a platform + @false +endif +endif + install_targets-y = install_libsbi ifdef PLATFORM install_targets-y += install_libplatsbi |