mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Repair build-all.sh and clean-all.sh.
Make it so that it runs ../configure and make for each target. This makes the wrapper-Makefile obsolete. It moves the binaries to tools/checkwps/output. NOTE: Something is fishy with the creative players (it builds them, but can't move them), because the configure target name and modelname differs (not sure how to fix that). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22696 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c0f1c49178
commit
022463b46c
5 changed files with 53 additions and 44 deletions
|
@ -1,36 +0,0 @@
|
||||||
# __________ __ ___.
|
|
||||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
||||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
||||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
||||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
||||||
# \/ \/ \/ \/ \/
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
|
|
||||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
|
||||||
CFLAGS+=-mno-cygwin
|
|
||||||
EXT = .exe
|
|
||||||
else
|
|
||||||
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
|
||||||
EXT = .exe
|
|
||||||
CC = mingw32-gcc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# This is a wrapper for checkwps.make
|
|
||||||
APPSDIR=.
|
|
||||||
ROOTDIR=../..
|
|
||||||
BUILDDIR=.
|
|
||||||
BINARY=checkwps.$(MODELNAME)$(EXT)
|
|
||||||
HOSTCC=$(CC)
|
|
||||||
TARGET=-D$(TARGETNAME)
|
|
||||||
include checkwps.make
|
|
||||||
|
|
||||||
all:
|
|
||||||
@echo To build, run the buildall.sh script
|
|
||||||
|
|
||||||
checkwps: $(BUILDDIR)/$(BINARY)
|
|
||||||
@echo foo > /dev/null
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f checkwps.$(MODELNAME)$(EXT)
|
|
|
@ -1,11 +1,51 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
rootdir=`dirname $0`
|
rootdir=`dirname $0`
|
||||||
|
toolsdir=$rootdir/..
|
||||||
|
outdir=$rootdir/output
|
||||||
|
jobs="1"
|
||||||
|
err="0"
|
||||||
|
|
||||||
|
mkdir -p $outdir
|
||||||
|
|
||||||
|
print_help() {
|
||||||
|
echo "Build Checkwps for every target in targets.txt."
|
||||||
|
echo "The binaries are put into in '$outdir'"
|
||||||
|
echo ""
|
||||||
|
cat <<EOF
|
||||||
|
Usage: build-all.sh [OPTION]...
|
||||||
|
Options:
|
||||||
|
--jobs=NUMBER Let make use NUMBER jobs (default is 1)
|
||||||
|
|
||||||
|
EOF
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
for arg in "$@"; do
|
||||||
|
case "$arg" in
|
||||||
|
--jobs=*) jobs=`echo "$arg" | cut -d = -f 2`;;
|
||||||
|
-h|--help) print_help;;
|
||||||
|
*) err="1"; echo "[ERROR] Option '$arg' unsupported";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z $jobs ] || [ $jobs -le "0" ]
|
||||||
|
then
|
||||||
|
echo "[ERROR] jobs must be a positive number"
|
||||||
|
err="1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $err -ge "1" ]
|
||||||
|
then
|
||||||
|
echo "An error occured. Aborting"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
cat $rootdir/targets.txt | (
|
cat $rootdir/targets.txt | (
|
||||||
while read target model
|
while read target model
|
||||||
do
|
do
|
||||||
rm -f checkwps.$model
|
make -j $jobs clean
|
||||||
make -s -C $rootdir MODELNAME=$model TARGETNAME=$target checkwps
|
$toolsdir/configure --target=$model --type=C --ram=32 # 32 should always give default RAM
|
||||||
mv $rootdir/checkwps.$model ./checkwps.$model > /dev/null 2>&1
|
make -j $jobs
|
||||||
|
mv checkwps.$model $outdir
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
rootdir=`dirname $0`
|
rootdir=`dirname $0`
|
||||||
|
outdir=$rootdir/output
|
||||||
|
|
||||||
|
make clean # make clean the build dir first
|
||||||
|
rm -f autoconf.h
|
||||||
|
rm -f Makefile
|
||||||
cat $rootdir/targets.txt | (
|
cat $rootdir/targets.txt | (
|
||||||
while read target model
|
while read target model
|
||||||
do
|
do
|
||||||
rm -f checkwps.$model
|
rm -f $outdir/checkwps.$model # then delete any output/checkwps.*
|
||||||
|
rmdir $outdir > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,9 +26,9 @@ GIGABEAT_S gigabeats
|
||||||
MROBE_500 mrobe500
|
MROBE_500 mrobe500
|
||||||
MROBE_100 mrobe100
|
MROBE_100 mrobe100
|
||||||
LOGIK_DAX logikdax
|
LOGIK_DAX logikdax
|
||||||
CREATIVE_ZVM creativezvm
|
CREATIVE_ZVM creativezvm30gb
|
||||||
CREATIVE_ZVM60GB creativezvm60
|
CREATIVE_ZVM60GB creativezvm60gb
|
||||||
CREATIVE_ZV creativezv
|
CREATIVE_ZV creativezenvision
|
||||||
SANSA_E200 e200
|
SANSA_E200 e200
|
||||||
SANSA_E200 e200r
|
SANSA_E200 e200r
|
||||||
SANSA_C200 c200
|
SANSA_C200 c200
|
||||||
|
|
|
@ -118,7 +118,7 @@ veryclean: clean
|
||||||
clean:
|
clean:
|
||||||
$(SILENT)echo Cleaning build directory
|
$(SILENT)echo Cleaning build directory
|
||||||
$(SILENT)rm -rf rockbox.zip rockbox.7z rockbox.tar rockbox.tar.gz \
|
$(SILENT)rm -rf rockbox.zip rockbox.7z rockbox.tar rockbox.tar.gz \
|
||||||
rockbox.tar.bz2 TAGS apps firmware comsim sim lang \
|
rockbox.tar.bz2 TAGS apps firmware tools comsim sim lang \
|
||||||
manual *.pdf *.a credits.raw rockbox.ipod bitmaps \
|
manual *.pdf *.a credits.raw rockbox.ipod bitmaps \
|
||||||
pluginbitmaps UI256.bmp rockbox-full.zip html txt \
|
pluginbitmaps UI256.bmp rockbox-full.zip html txt \
|
||||||
rockbox-manual*.zip sysfont.h rockbox-info.txt voicefontids \
|
rockbox-manual*.zip sysfont.h rockbox-info.txt voicefontids \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue