]> rtime.felk.cvut.cz Git - arc.git/blobdiff - examples/build_example.mk
Fixed 5516it example temporarily.
[arc.git] / examples / build_example.mk
index 3ea6b2fb88b86db0caa092e86849576f78f2ac4e..a260cacc2fdf81bfd72ea581bfa38aa2f5ca6f01 100644 (file)
@@ -1,9 +1,15 @@
 \r
 \r
+ifeq ($(EXAMPLENAME),)\r
+$(error whyyyyyy)\r
+endif\r
+\r
 ifndef ROOTDIR\r
 $(error ROOTDIR is not set. This makefile is invoked the wrong way)\r
 endif\r
 \r
+#export EXAMPLENAME\r
+\r
 ifndef BOARDDIR\r
 # Assume in-tree-build \r
 boardpath=$(realpath $(CURDIR)/../..)\r
@@ -22,6 +28,7 @@ else
 endif\r
 \r
 ifeq ($(ugh),1) \r
+\r
 export example:=$(subst $(abspath $(CURDIR)/..)/,,$(CURDIR))\r
 \r
 .PHONY: all clean\r
@@ -46,7 +53,7 @@ ldcmdfile-y = linkscript_$(COMPILER).lcf
 vpath %.ldf $(ROOTDIR)/$(ARCH_PATH-y)/scripts\r
        \r
 # What I want to build\r
-build-exe-y = $(example).elf\r
+build-exe-y = $(EXAMPLENAME).elf\r
 \r
 endif\r
 \r