diff options
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r-- | apps/plugins/plugins.make | 6 |
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) | |||
27 | PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ)) | 27 | PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ)) |
28 | 28 | ||
29 | ### build data / rules | 29 | ### build data / rules |
30 | ifndef SIMVER | 30 | ifndef APP_TYPE |
31 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h | 31 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h |
32 | PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds | 32 | PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds |
33 | PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link | 33 | PLUGINLINK_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 | ||
84 | ifdef SIMVER | 84 | ifdef APP_TYPE |
85 | PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile | 85 | PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile |
86 | else | 86 | else |
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) |
97 | ifdef SIMVER | 97 | ifdef APP_TYPE |
98 | $(SILENT)cp $(BUILDDIR)/$*.elf $@ | 98 | $(SILENT)cp $(BUILDDIR)/$*.elf $@ |
99 | else | 99 | else |
100 | $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ | 100 | $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ |