summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/codecs.make6
-rw-r--r--apps/codecs/lib/tlsf/libtlsf.make2
-rw-r--r--apps/codecs/libwmapro/libwmapro.make2
-rw-r--r--apps/plugins/doom/doom.make2
-rw-r--r--apps/plugins/goban/goban.make2
-rw-r--r--apps/plugins/lua/Makefile6
-rw-r--r--apps/plugins/lua/lua.make2
-rw-r--r--apps/plugins/pdbox/pdbox.make4
-rw-r--r--apps/plugins/pictureflow/pictureflow.make2
-rw-r--r--apps/plugins/plugins.make6
-rw-r--r--apps/plugins/zxbox/zxbox.make2
11 files changed, 18 insertions, 18 deletions
diff --git a/apps/codecs/codecs.make b/apps/codecs/codecs.make
index aab23b01a2..c137426591 100644
--- a/apps/codecs/codecs.make
+++ b/apps/codecs/codecs.make
@@ -47,7 +47,7 @@ include $(APPSDIR)/codecs/libtta/libtta.make
47CODECFLAGS = $(CFLAGS) -fstrict-aliasing -I$(APPSDIR)/codecs \ 47CODECFLAGS = $(CFLAGS) -fstrict-aliasing -I$(APPSDIR)/codecs \
48 -I$(APPSDIR)/codecs/lib -DCODEC 48 -I$(APPSDIR)/codecs/lib -DCODEC
49 49
50ifndef SIMVER 50ifndef APP_TYPE
51 CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h 51 CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h
52 CODEC_LDS := $(APPSDIR)/plugins/plugin.lds # codecs and plugins use same file 52 CODEC_LDS := $(APPSDIR)/plugins/plugin.lds # codecs and plugins use same file
53 CODECLINK_LDS := $(CODECDIR)/codec.link 53 CODECLINK_LDS := $(CODECDIR)/codec.link
@@ -115,7 +115,7 @@ $(CODECDIR)/%.o: $(ROOTDIR)/apps/codecs/%.S
115 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \ 115 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \
116 -I$(dir $<) $(CODECFLAGS) -c $< -o $@ 116 -I$(dir $<) $(CODECFLAGS) -c $< -o $@
117 117
118ifdef SIMVER 118ifdef APP_TYPE
119 CODECLDFLAGS = $(SHARED_FLAG) # <-- from Makefile 119 CODECLDFLAGS = $(SHARED_FLAG) # <-- from Makefile
120else 120else
121 CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map 121 CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
@@ -135,7 +135,7 @@ $(CODECDIR)/%.codec: $(CODECDIR)/%.o
135 $(filter %.o, $^) \ 135 $(filter %.o, $^) \
136 $(filter %.a, $+) \ 136 $(filter %.a, $+) \
137 -lgcc $(CODECLDFLAGS) 137 -lgcc $(CODECLDFLAGS)
138ifdef SIMVER 138ifdef APP_TYPE
139 $(SILENT)cp $(CODECDIR)/$*.elf $@ 139 $(SILENT)cp $(CODECDIR)/$*.elf $@
140else 140else
141 $(SILENT)$(OC) -O binary $(CODECDIR)/$*.elf $@ 141 $(SILENT)$(OC) -O binary $(CODECDIR)/$*.elf $@
diff --git a/apps/codecs/lib/tlsf/libtlsf.make b/apps/codecs/lib/tlsf/libtlsf.make
index 464487f87f..7d37d29b21 100644
--- a/apps/codecs/lib/tlsf/libtlsf.make
+++ b/apps/codecs/lib/tlsf/libtlsf.make
@@ -18,7 +18,7 @@ $(TLSFLIB): $(TLSFLIB_OBJ)
18 18
19TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections 19TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections
20 20
21ifdef SIMVER 21ifdef APP_TYPE
22 TLSFLIBFLAGS += -DTLSF_STATISTIC=1 22 TLSFLIBFLAGS += -DTLSF_STATISTIC=1
23endif 23endif
24 24
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make
index 42086a637a..0e8df7e9cb 100644
--- a/apps/codecs/libwmapro/libwmapro.make
+++ b/apps/codecs/libwmapro/libwmapro.make
@@ -17,7 +17,7 @@ $(WMAPROLIB): $(WMAPROLIB_OBJ)
17 $(SILENT)$(shell rm -f $@) 17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19 19
20ifdef SIMVER 20ifdef APP_TYPE
21# wmapro needs libm in the simulator 21# wmapro needs libm in the simulator
22$(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o 22$(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o
23 $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \ 23 $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make
index 2f52da4a4e..58a4708819 100644
--- a/apps/plugins/doom/doom.make
+++ b/apps/plugins/doom/doom.make
@@ -21,7 +21,7 @@ OTHER_SRC += $(DOOM_SRC)
21 21
22DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing 22DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
23 23
24ifndef SIMVER 24ifndef APP_TYPE
25ifeq ($(TARGET), IRIVER_H100) 25ifeq ($(TARGET), IRIVER_H100)
26 DOOMCCFLAGS += -mstructure-size-boundary=8 26 DOOMCCFLAGS += -mstructure-size-boundary=8
27endif 27endif
diff --git a/apps/plugins/goban/goban.make b/apps/plugins/goban/goban.make
index 03f2276659..2bc85ad8e1 100644
--- a/apps/plugins/goban/goban.make
+++ b/apps/plugins/goban/goban.make
@@ -15,7 +15,7 @@ GOBAN_OBJ := $(call c2obj, $(GOBAN_SRC))
15 15
16OTHER_SRC += $(GOBAN_SRC) 16OTHER_SRC += $(GOBAN_SRC)
17 17
18ifndef SIMVER 18ifndef APP_TYPE
19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) 19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
20 ### lowmem targets 20 ### lowmem targets
21 ROCKS += $(GOBAN_BUILDDIR)/goban.ovl 21 ROCKS += $(GOBAN_BUILDDIR)/goban.ovl
diff --git a/apps/plugins/lua/Makefile b/apps/plugins/lua/Makefile
index 6a4e497801..09535ac530 100644
--- a/apps/plugins/lua/Makefile
+++ b/apps/plugins/lua/Makefile
@@ -27,7 +27,7 @@ OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o)
27OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) 27OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
28DIRS = . 28DIRS = .
29 29
30ifndef SIMVER 30ifndef APP_TYPE
31ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) 31ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
32 LDS := archos.lds 32 LDS := archos.lds
33 OUTPUT = $(OUTDIR)/lua.ovl 33 OUTPUT = $(OUTDIR)/lua.ovl
@@ -41,7 +41,7 @@ endif
41 41
42all: $(OUTPUT) 42all: $(OUTPUT)
43 43
44ifndef SIMVER 44ifndef APP_TYPE
45$(OBJDIR)/lua.elf: $(OBJS) $(LINKFILE) 45$(OBJDIR)/lua.elf: $(OBJS) $(LINKFILE)
46 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ 46 $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \
47 -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/lua.map 47 -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/lua.map
@@ -50,7 +50,7 @@ $(OUTPUT): $(OBJDIR)/lua.elf
50 $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ 50 $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@
51else 51else
52 52
53ifeq ($(SIMVER), sdl) 53ifdef APP_TYPE
54################################################### 54###################################################
55# This is the SDL simulator version 55# This is the SDL simulator version
56 56
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make
index 93139dc8d4..f4dd7710c9 100644
--- a/apps/plugins/lua/lua.make
+++ b/apps/plugins/lua/lua.make
@@ -15,7 +15,7 @@ LUA_OBJ := $(call c2obj, $(LUA_SRC))
15 15
16OTHER_SRC += $(LUA_SRC) 16OTHER_SRC += $(LUA_SRC)
17 17
18ifndef SIMVER 18ifndef APP_TYPE
19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) 19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
20 ### lowmem targets 20 ### lowmem targets
21 ROCKS += $(LUA_BUILDDIR)/lua.ovl 21 ROCKS += $(LUA_BUILDDIR)/lua.ovl
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make
index d39d9fde1e..d2c836f513 100644
--- a/apps/plugins/pdbox/pdbox.make
+++ b/apps/plugins/pdbox/pdbox.make
@@ -22,7 +22,7 @@ $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) $(CODECDIR)/libtlsf.a
22 22
23PDBOXFLAGS = $(PLUGINFLAGS) 23PDBOXFLAGS = $(PLUGINFLAGS)
24PDBOXLDFLAGS = $(PLUGINLDFLAGS) 24PDBOXLDFLAGS = $(PLUGINLDFLAGS)
25ifdef SIMVER 25ifdef APP_TYPE
26PDBOXLDFLAGS += -lm 26PDBOXLDFLAGS += -lm
27endif 27endif
28 28
@@ -36,7 +36,7 @@ $(PDBOXBUILDDIR)/pdbox.rock:
36 $(filter %.o, $^) \ 36 $(filter %.o, $^) \
37 $(filter %.a, $+) \ 37 $(filter %.a, $+) \
38 -lgcc $(PDBOXLDFLAGS) 38 -lgcc $(PDBOXLDFLAGS)
39ifdef SIMVER 39ifdef APP_TYPE
40 $(SILENT)cp $*.elf $@ 40 $(SILENT)cp $*.elf $@
41else 41else
42 $(SILENT)$(OC) -O binary $*.elf $@ 42 $(SILENT)$(OC) -O binary $*.elf $@
diff --git a/apps/plugins/pictureflow/pictureflow.make b/apps/plugins/pictureflow/pictureflow.make
index 28ad2aa39e..e3d4544e07 100644
--- a/apps/plugins/pictureflow/pictureflow.make
+++ b/apps/plugins/pictureflow/pictureflow.make
@@ -15,7 +15,7 @@ PICTUREFLOW_OBJ := $(call c2obj, $(PICTUREFLOW_SRC))
15 15
16OTHER_SRC += $(PICTUREFLOW_SRC) 16OTHER_SRC += $(PICTUREFLOW_SRC)
17 17
18ifndef SIMVER 18ifndef APP_TYPE
19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) 19ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))
20 ### lowmem targets 20 ### lowmem targets
21 ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.ovl 21 ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.ovl
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 $@
diff --git a/apps/plugins/zxbox/zxbox.make b/apps/plugins/zxbox/zxbox.make
index de7312e009..a04801aa31 100644
--- a/apps/plugins/zxbox/zxbox.make
+++ b/apps/plugins/zxbox/zxbox.make
@@ -15,7 +15,7 @@ ZXBOX_OBJ := $(call c2obj, $(ZXBOX_SRC))
15 15
16OTHER_SRC += $(ZXBOX_SRC) 16OTHER_SRC += $(ZXBOX_SRC)
17 17
18ifndef SIMVER 18ifndef APP_TYPE
19ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES) 19ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES)
20 ## lowmem targets 20 ## lowmem targets
21 ROCKS += $(ZXBOX_OBJDIR)/zxbox.ovl 21 ROCKS += $(ZXBOX_OBJDIR)/zxbox.ovl