summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-02 08:56:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-02 08:56:20 +0000
commitd7b5c5a3c0e74556316a95481cc7cc6f022baf7a (patch)
tree2b1d9f91333ecc906f4956d1e6e0b02fb2a76c70
parentf0e733aed52590105b6a17130af5c26166eada6d (diff)
downloadrockbox-d7b5c5a3c0e74556316a95481cc7cc6f022baf7a.tar.gz
rockbox-d7b5c5a3c0e74556316a95481cc7cc6f022baf7a.zip
configure now sets what set of tools that a particular target build needs or
can use, and those tools only are built with 'make' or 'make tools'. Starting now, you should build tools from within your build directory instead of running make in the tools dir. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8127 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/Makefile8
-rwxr-xr-xtools/configure55
2 files changed, 57 insertions, 6 deletions
diff --git a/tools/Makefile b/tools/Makefile
index f1e1f9c7d4..f30ab4d819 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -9,11 +9,11 @@
9CFLAGS := -O -ansi -g 9CFLAGS := -O -ansi -g
10LDFLAGS := -g 10LDFLAGS := -g
11 11
12TARGETS := scramble descramble iaudio sh2d bmp2rb rdf2binary convbdf \ 12CLEANALL := scramble descramble iaudio sh2d bmp2rb rdf2binary convbdf \
13 generate_rocklatin mkboot ipod_fw uclpack 13 generate_rocklatin mkboot ipod_fw uclpack
14 14
15all: $(TARGETS) 15all:
16 @echo "tools done" 16 @echo "Run make in your build directory!"
17 17
18scramble: scramble.o iriver.o 18scramble: scramble.o iriver.o
19descramble: descramble.o iriver.o 19descramble: descramble.o iriver.o
@@ -48,6 +48,6 @@ uclpack:
48 $(MAKE) -C ucl 48 $(MAKE) -C ucl
49 49
50clean: 50clean:
51 rm -f $(TARGETS) $(shell for f in $(TARGETS) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~ 51 rm -f $(CLEANALL) $(shell for f in $(CLEANALL) ; do echo $$f.exe $$f.o $$f.obj ; done) *.ajf *~
52 $(MAKE) -C ucl clean 52 $(MAKE) -C ucl clean
53 53
diff --git a/tools/configure b/tools/configure
index 026a29e688..a6633befd9 100755
--- a/tools/configure
+++ b/tools/configure
@@ -413,6 +413,14 @@ appsdir='\$(ROOTDIR)/apps'
413 413
414 getit=`input`; 414 getit=`input`;
415 415
416 # Set of tools built for all target platforms:
417 toolset="rdf2binary"
418
419 # Toolsets for some target families:
420 archosbitmaptools="$toolset scramble descramble sh2d uclpack bmp2rb convbdf"
421 iriverbitmaptools="$toolset scramble descramble mkboot bmp2rb convbdf"
422 ipodbitmaptools="$toolset ipod_fw bmp2rb convbdf"
423
416 case $getit in 424 case $getit in
417 425
418 1) 426 1)
@@ -426,6 +434,10 @@ appsdir='\$(ROOTDIR)/apps'
426 flash="$pwd/rockbox.ucl" 434 flash="$pwd/rockbox.ucl"
427 plugins="yes" 435 plugins="yes"
428 codecs="" 436 codecs=""
437
438 # toolset is the tools within the tools directory that we build for
439 # this particular target.
440 toolset="$toolset scramble descramble sh2d generate_rocklatin uclpack"
429 ;; 441 ;;
430 442
431 2) 443 2)
@@ -439,6 +451,9 @@ appsdir='\$(ROOTDIR)/apps'
439 flash="$pwd/rockbox.ucl" 451 flash="$pwd/rockbox.ucl"
440 plugins="yes" 452 plugins="yes"
441 codecs="" 453 codecs=""
454 # toolset is the tools within the tools directory that we build for
455 # this particular target.
456 toolset=$archosbitmaptools
442 ;; 457 ;;
443 458
444 3) 459 3)
@@ -452,6 +467,9 @@ appsdir='\$(ROOTDIR)/apps'
452 flash="$pwd/rockbox.ucl" 467 flash="$pwd/rockbox.ucl"
453 plugins="yes" 468 plugins="yes"
454 codecs="" 469 codecs=""
470 # toolset is the tools within the tools directory that we build for
471 # this particular target.
472 toolset=$archosbitmaptools
455 ;; 473 ;;
456 474
457 4) 475 4)
@@ -465,6 +483,9 @@ appsdir='\$(ROOTDIR)/apps'
465 flash="$pwd/rockbox.ucl" 483 flash="$pwd/rockbox.ucl"
466 plugins="yes" 484 plugins="yes"
467 codecs="" 485 codecs=""
486 # toolset is the tools within the tools directory that we build for
487 # this particular target.
488 toolset=$archosbitmaptools
468 ;; 489 ;;
469 490
470 5) 491 5)
@@ -479,6 +500,9 @@ appsdir='\$(ROOTDIR)/apps'
479 flash="" 500 flash=""
480 plugins="" # disabled for now, enable later on 501 plugins="" # disabled for now, enable later on
481 codecs="libmad" 502 codecs="libmad"
503 # toolset is the tools within the tools directory that we build for
504 # this particular target.
505 toolset="$toolset bmp2rb convbdf"
482 ;; 506 ;;
483 507
484 6) 508 6)
@@ -493,6 +517,9 @@ appsdir='\$(ROOTDIR)/apps'
493 flash="" 517 flash=""
494 plugins="" # disabled for now, enable later on 518 plugins="" # disabled for now, enable later on
495 codecs="libmad" 519 codecs="libmad"
520 # toolset is the tools within the tools directory that we build for
521 # this particular target.
522 toolset="$toolset bmp2rb convbdf"
496 ;; 523 ;;
497 524
498 7) 525 7)
@@ -506,6 +533,9 @@ appsdir='\$(ROOTDIR)/apps'
506 flash="$pwd/rockbox.ucl" 533 flash="$pwd/rockbox.ucl"
507 plugins="yes" 534 plugins="yes"
508 codecs="" 535 codecs=""
536 # toolset is the tools within the tools directory that we build for
537 # this particular target.
538 toolset=$archosbitmaptools
509 ;; 539 ;;
510 540
511 8) 541 8)
@@ -519,6 +549,7 @@ appsdir='\$(ROOTDIR)/apps'
519 flash="$pwd/rockbox.ucl" 549 flash="$pwd/rockbox.ucl"
520 plugins="yes" 550 plugins="yes"
521 codecs="" 551 codecs=""
552 toolset=$archosbitmaptools
522 ;; 553 ;;
523 554
524 9) 555 9)
@@ -533,6 +564,9 @@ appsdir='\$(ROOTDIR)/apps'
533 flash="" 564 flash=""
534 plugins="yes" 565 plugins="yes"
535 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 566 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
567 # toolset is the tools within the tools directory that we build for
568 # this particular target.
569 toolset=$iriverbitmaptools
536 ;; 570 ;;
537 571
538 10) 572 10)
@@ -547,6 +581,9 @@ appsdir='\$(ROOTDIR)/apps'
547 flash="" 581 flash=""
548 plugins="yes" 582 plugins="yes"
549 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 583 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
584 # toolset is the tools within the tools directory that we build for
585 # this particular target.
586 toolset=$iriverbitmaptools
550 ;; 587 ;;
551 588
552 11) 589 11)
@@ -561,6 +598,9 @@ appsdir='\$(ROOTDIR)/apps'
561 flash="" 598 flash=""
562 plugins="yes" 599 plugins="yes"
563 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 600 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
601 # toolset is the tools within the tools directory that we build for
602 # this particular target.
603 toolset=$iriverbitmaptools
564 ;; 604 ;;
565 605
566 12) 606 12)
@@ -575,6 +615,9 @@ appsdir='\$(ROOTDIR)/apps'
575 flash="" 615 flash=""
576 plugins="yes" 616 plugins="yes"
577 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 617 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
618 # toolset is the tools within the tools directory that we build for
619 # this particular target.
620 toolset="$toolset iaudio bmp2rb convbdf"
578 ;; 621 ;;
579 622
580 13) 623 13)
@@ -589,6 +632,9 @@ appsdir='\$(ROOTDIR)/apps'
589 flash="" 632 flash=""
590 plugins="yes" 633 plugins="yes"
591 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 634 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
635 # toolset is the tools within the tools directory that we build for
636 # this particular target.
637 toolset=$ipodbitmaptools
592 ;; 638 ;;
593 639
594 14) 640 14)
@@ -603,6 +649,9 @@ appsdir='\$(ROOTDIR)/apps'
603 flash="" 649 flash=""
604 plugins="yes" 650 plugins="yes"
605 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" 651 codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a"
652 # toolset is the tools within the tools directory that we build for
653 # this particular target.
654 toolset=$ipodbitmaptools
606 ;; 655 ;;
607 656
608 *) 657 *)
@@ -834,6 +883,7 @@ sed > Makefile \
834 -e "s,@GCCNUM@,${gccnum},g" \ 883 -e "s,@GCCNUM@,${gccnum},g" \
835 -e "s,@UNAME@,${uname},g" \ 884 -e "s,@UNAME@,${uname},g" \
836 -e "s,@ENDIAN@,${defendian},g" \ 885 -e "s,@ENDIAN@,${defendian},g" \
886 -e "s,@TOOLSET@,${toolset},g" \
837 -e "${simmagic}" \ 887 -e "${simmagic}" \
838 -e "${simtools}" \ 888 -e "${simtools}" \
839<<EOF 889<<EOF
@@ -883,7 +933,7 @@ export UNAME=@UNAME@
883# Do not print "Entering directory ..." 933# Do not print "Entering directory ..."
884MAKEFLAGS += --no-print-directory 934MAKEFLAGS += --no-print-directory
885 935
886.PHONY: all clean tags zip 936.PHONY: all clean tags zip tools
887 937
888all: #TOOLSDEP# 938all: #TOOLSDEP#
889#SIMUL# 939#SIMUL#
@@ -893,10 +943,11 @@ all: #TOOLSDEP#
893clean: 943clean:
894 @\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware 944 @\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
895 @\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@ 945 @\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/@APPS@
946 @\$(MAKE) -C \$(TOOLSDIR) clean
896 @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h 947 @rm -rf rockbox.zip TAGS @APPS@ firmware comsim sim lang.h
897 948
898tools: 949tools:
899 \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) 950 \$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
900 951
901tags: 952tags:
902 @rm -f TAGS 953 @rm -f TAGS