forked from len0rd/rockbox
produce a nicer root-level Makefile for the bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6423 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
113a58dca6
commit
57a09cdd74
1 changed files with 6 additions and 4 deletions
10
tools/configure
vendored
10
tools/configure
vendored
|
|
@ -315,7 +315,7 @@ if [ -z "$rootdir" ]; then
|
||||||
cd $now
|
cd $now
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apps="apps"
|
||||||
appsdir='\$(ROOTDIR)/apps'
|
appsdir='\$(ROOTDIR)/apps'
|
||||||
|
|
||||||
if [ -z "$archos" ]; then
|
if [ -z "$archos" ]; then
|
||||||
|
|
@ -501,6 +501,7 @@ if [ -z "$debug" ]; then
|
||||||
fi
|
fi
|
||||||
extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
|
extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
|
||||||
appsdir='\$(ROOTDIR)/bootloader'
|
appsdir='\$(ROOTDIR)/bootloader'
|
||||||
|
apps="bootloader"
|
||||||
bootloader="1"
|
bootloader="1"
|
||||||
echo "Bootloader build selected"
|
echo "Bootloader build selected"
|
||||||
;;
|
;;
|
||||||
|
|
@ -628,6 +629,7 @@ sed > Makefile \
|
||||||
-e "s,@LOADADDRESS@,${loadaddress},g" \
|
-e "s,@LOADADDRESS@,${loadaddress},g" \
|
||||||
-e "s,@EXTRADEF@,${extradefines},g" \
|
-e "s,@EXTRADEF@,${extradefines},g" \
|
||||||
-e "s,@APPSDIR@,${appsdir},g" \
|
-e "s,@APPSDIR@,${appsdir},g" \
|
||||||
|
-e "s,@APPS@,${apps},g" \
|
||||||
-e "s,@SIMVER@,${simver},g" \
|
-e "s,@SIMVER@,${simver},g" \
|
||||||
-e "s,@GCCVER@,${gccver},g" \
|
-e "s,@GCCVER@,${gccver},g" \
|
||||||
-e "s,@GCCNUM@,${gccnum},g" \
|
-e "s,@GCCNUM@,${gccnum},g" \
|
||||||
|
|
@ -682,12 +684,12 @@ MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
|
@\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
|
||||||
@\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/apps
|
@\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
|
@\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
|
||||||
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/apps
|
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
|
||||||
@rm -rf rockbox.zip TAGS apps firmware comsim sim
|
@rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
@rm -f TAGS
|
@rm -f TAGS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue