summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorSergio Rodriguez <sergio.sf.rodriguez@intel.com>2015-11-13 16:17:27 -0800
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:24:56 -0500
commit2e2ad8166e30345ffc0b9047b732f33b0c6c5d28 (patch)
tree79cd172a863d52419bdcbdb1c98c010d7482bac3 /Makefile.inc
parentba6f2d96174ee9b1d9f16d687e7e1008f9abe064 (diff)
qemu: Creation of QEMU specific platforms
Setting up new platforms to handle emulation, and make them the only ones able to run on QEMU from the Makefile "qemu" target to avoid confusion with other platforms. We have now platform qemu_x86 and platform qemu_cortex_m3, also modification to the sanity checks to have qemu support only on those platforms Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com> Change-Id: I9291918a1d58fea4f37750ada78234628f9a5d98 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 963eddfcc..1b36b2591 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -58,8 +58,13 @@ DOTCONFIG = $(O)/.config
all: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
+ifeq ($(findstring qemu_,$(PLATFORM_CONFIG)),)
+qemu:
+ @echo "Emulation not available for this platform"
+else
qemu: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
+endif
initconfig: $(DOTCONFIG)