summaryrefslogtreecommitdiff
path: root/apps/plugins/plugins.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r--apps/plugins/plugins.make6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make
index 4bd0cc952e..d3c66c34ca 100644
--- a/apps/plugins/plugins.make
+++ b/apps/plugins/plugins.make
@@ -27,7 +27,7 @@ PLUGINLIB_OBJ := $(PLUGINLIB_OBJ:.S=.o)
27PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ)) 27PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ))
28 28
29### build data / rules 29### build data / rules
30ifndef SIMVER 30ifndef APP_TYPE
31CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h 31CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h
32PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds 32PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds
33PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link 33PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link
@@ -81,7 +81,7 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c
81 $(SILENT)mkdir -p $(dir $@) 81 $(SILENT)mkdir -p $(dir $@)
82 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@ 82 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@
83 83
84ifdef SIMVER 84ifdef APP_TYPE
85 PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile 85 PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile
86else 86else
87 PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map 87 PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
@@ -94,7 +94,7 @@ $(BUILDDIR)/%.rock:
94 $(filter %.o, $^) \ 94 $(filter %.o, $^) \
95 $(filter %.a, $+) \ 95 $(filter %.a, $+) \
96 -lgcc $(PLUGINLDFLAGS) 96 -lgcc $(PLUGINLDFLAGS)
97ifdef SIMVER 97ifdef APP_TYPE
98 $(SILENT)cp $(BUILDDIR)/$*.elf $@ 98 $(SILENT)cp $(BUILDDIR)/$*.elf $@
99else 99else
100 $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ 100 $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@