1
0
Fork 0
forked from len0rd/rockbox

don't build UCL files for targets that don't support flashing

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5204 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2004-10-07 08:20:25 +00:00
parent a97fe2514d
commit 59bec2eaa0
2 changed files with 11 additions and 5 deletions

View file

@ -21,9 +21,6 @@ endif
SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
DIRS = . DIRS = .
# set the ROMTARGET here
ROMTARGET := $(ARCHOSROM)
ifdef APPEXTRA ifdef APPEXTRA
DIRS += $(APPEXTRA) DIRS += $(APPEXTRA)
INCLUDES += -I$(APPEXTRA) INCLUDES += -I$(APPEXTRA)
@ -42,7 +39,7 @@ MAXOUTFILE = $(OBJDIR)/romstart
ifdef DEBUG ifdef DEBUG
all: $(OBJDIR)/rockbox.elf rocks all: $(OBJDIR)/rockbox.elf rocks
else else
all: $(OBJDIR)/$(BINARY) $(OBJDIR)/rockbox.ucl rocks $(ROMTARGET) all: $(OBJDIR)/$(BINARY) $(FLASHFILE) rocks $(ARCHOSROM)
endif endif
dep: $(DEPFILE) dep: $(DEPFILE)
@ -101,7 +98,7 @@ $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin
echo "fake" > $@; \ echo "fake" > $@; \
fi fi
$(ARCHOSROM): $(OBJDIR)/rombox.bin $(MAXOUTFILE) $(OBJDIR)/rombox.ucl: $(OBJDIR)/rombox.bin $(MAXOUTFILE)
@a=`uclpack -h 2>/dev/null`; \ @a=`uclpack -h 2>/dev/null`; \
if test -n "$$a"; then \ if test -n "$$a"; then \
echo "UCLPACK rombox" ; \ echo "UCLPACK rombox" ; \

9
tools/configure vendored
View file

@ -269,6 +269,7 @@ if [ -z "$archos" ]; then
output="archos.mod" output="archos.mod"
appextra="player" appextra="player"
archosrom="" archosrom=""
flash=""
plugins="yes" plugins="yes"
;; ;;
@ -280,6 +281,7 @@ if [ -z "$archos" ]; then
output="ajbrec.ajz" output="ajbrec.ajz"
appextra="recorder" appextra="recorder"
archosrom="$pwd/rombox.ucl" archosrom="$pwd/rombox.ucl"
flash="$pwd/rockbox.ucl"
plugins="yes" plugins="yes"
;; ;;
@ -291,6 +293,7 @@ if [ -z "$archos" ]; then
output="ajbrec.ajz" output="ajbrec.ajz"
appextra="recorder" appextra="recorder"
archosrom="$pwd/rombox.ucl" archosrom="$pwd/rombox.ucl"
flash="$pwd/rockbox.ucl"
plugins="yes" plugins="yes"
;; ;;
@ -302,6 +305,7 @@ if [ -z "$archos" ]; then
output="ajbrec.ajz" output="ajbrec.ajz"
appextra="recorder" appextra="recorder"
archosrom="$pwd/rombox.ucl" archosrom="$pwd/rombox.ucl"
flash="$pwd/rockbox.ucl"
plugins="yes" plugins="yes"
;; ;;
@ -313,6 +317,7 @@ if [ -z "$archos" ]; then
output="ajbrec.ajz" output="ajbrec.ajz"
appextra="recorder" appextra="recorder"
archosrom="$pwd/rombox.ucl" archosrom="$pwd/rombox.ucl"
flash="$pwd/rockbox.ucl"
plugins="yes" plugins="yes"
;; ;;
@ -325,6 +330,7 @@ if [ -z "$archos" ]; then
output="rockbox.iriver" output="rockbox.iriver"
appextra="" appextra=""
archosrom="" archosrom=""
flash=""
plugins="yes" plugins="yes"
;; ;;
@ -336,6 +342,7 @@ if [ -z "$archos" ]; then
output="ajbrec.ajz" output="ajbrec.ajz"
appextra="recorder" appextra="recorder"
archosrom="$pwd/rombox.ucl" archosrom="$pwd/rombox.ucl"
flash="$pwd/rockbox.ucl"
plugins="yes" plugins="yes"
;; ;;
@ -431,6 +438,7 @@ sed > Makefile \
-e "s,@OUTPUT@,${output},g" \ -e "s,@OUTPUT@,${output},g" \
-e "s,@APPEXTRA@,${appextra},g" \ -e "s,@APPEXTRA@,${appextra},g" \
-e "s,@ARCHOSROM@,${archosrom},g" \ -e "s,@ARCHOSROM@,${archosrom},g" \
-e "s,@FLASHFILE@,${flash},g" \
-e "s,@PLUGINS@,${plugins},g" \ -e "s,@PLUGINS@,${plugins},g" \
-e "s,@GCCOPTS@,${GCCOPTS},g" \ -e "s,@GCCOPTS@,${GCCOPTS},g" \
<<EOF <<EOF
@ -444,6 +452,7 @@ export DOCSDIR=\$(ROOTDIR)/docs
export DEBUG=@DEBUG@ export DEBUG=@DEBUG@
export ARCHOS=@ARCHOS@ export ARCHOS=@ARCHOS@
export ARCHOSROM=@ARCHOSROM@ export ARCHOSROM=@ARCHOSROM@
export FLASHFILE=@FLASHFILE@
export TARGET=@TARGET@ export TARGET=@TARGET@
export OBJDIR=@PWD@ export OBJDIR=@PWD@
export LANGUAGE=@LANGUAGE@ export LANGUAGE=@LANGUAGE@