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
|
||||
fi
|
||||
|
||||
|
||||
apps="apps"
|
||||
appsdir='\$(ROOTDIR)/apps'
|
||||
|
||||
if [ -z "$archos" ]; then
|
||||
|
|
@ -501,6 +501,7 @@ if [ -z "$debug" ]; then
|
|||
fi
|
||||
extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
|
||||
appsdir='\$(ROOTDIR)/bootloader'
|
||||
apps="bootloader"
|
||||
bootloader="1"
|
||||
echo "Bootloader build selected"
|
||||
;;
|
||||
|
|
@ -628,6 +629,7 @@ sed > Makefile \
|
|||
-e "s,@LOADADDRESS@,${loadaddress},g" \
|
||||
-e "s,@EXTRADEF@,${extradefines},g" \
|
||||
-e "s,@APPSDIR@,${appsdir},g" \
|
||||
-e "s,@APPS@,${apps},g" \
|
||||
-e "s,@SIMVER@,${simver},g" \
|
||||
-e "s,@GCCVER@,${gccver},g" \
|
||||
-e "s,@GCCNUM@,${gccnum},g" \
|
||||
|
|
@ -682,12 +684,12 @@ MAKEFLAGS += --no-print-directory
|
|||
|
||||
all:
|
||||
@\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
|
||||
@\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/apps
|
||||
@\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/@APPS@
|
||||
|
||||
clean:
|
||||
@\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
|
||||
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/apps
|
||||
@rm -rf rockbox.zip TAGS apps firmware comsim sim
|
||||
@\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
|
||||
@rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim
|
||||
|
||||
tags:
|
||||
@rm -f TAGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue