mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Rename/change SIMVER to APP_TYPE in the Makefiles.
SIMVER was really only used to detect a simulator build. With APP_TYPE you can now differentiate between simulator, application, checkwps and database builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27372 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e87ff2bf91
commit
57613ea5fa
16 changed files with 99 additions and 71 deletions
|
@ -27,7 +27,7 @@ PLUGINLIB_OBJ := $(PLUGINLIB_OBJ:.S=.o)
|
|||
PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ))
|
||||
|
||||
### build data / rules
|
||||
ifndef SIMVER
|
||||
ifndef APP_TYPE
|
||||
CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h
|
||||
PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds
|
||||
PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link
|
||||
|
@ -81,7 +81,7 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c
|
|||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@
|
||||
|
||||
ifdef SIMVER
|
||||
ifdef APP_TYPE
|
||||
PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile
|
||||
else
|
||||
PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
|
||||
|
@ -94,7 +94,7 @@ $(BUILDDIR)/%.rock:
|
|||
$(filter %.o, $^) \
|
||||
$(filter %.a, $+) \
|
||||
-lgcc $(PLUGINLDFLAGS)
|
||||
ifdef SIMVER
|
||||
ifdef APP_TYPE
|
||||
$(SILENT)cp $(BUILDDIR)/$*.elf $@
|
||||
else
|
||||
$(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue