Add the framework to have architecture-specific configuration and functions.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Sep 14 17:43:16 2007 +0000 (2007-09-14)
changeset 3802f7b676c7b2f
parent 379 165d83a262f1
child 381 6a0ee764a60a
Add the framework to have architecture-specific configuration and functions.
API is not yet defined.
Makefile.in
arch/arm/config.in
arch/arm/functions
arch/ia64/config.in
arch/ia64/functions
arch/mips/config.in
arch/mips/functions
arch/x86/config.in
arch/x86/functions
arch/x86_64/config.in
arch/x86_64/functions
config/target.in
scripts/crosstool.sh
     1.1 --- a/Makefile.in	Fri Sep 14 17:29:39 2007 +0000
     1.2 +++ b/Makefile.in	Fri Sep 14 17:43:16 2007 +0000
     1.3 @@ -91,7 +91,7 @@
     1.4  install-lib: install-local-test $(LIBDIR) install-lib-main install-lib-samples
     1.5  
     1.6  install-lib-main: install-local-test $(LIBDIR)
     1.7 -	@for src_dir in config kconfig patches scripts tools; do            \
     1.8 +	@for src_dir in arch config kconfig patches scripts tools; do            \
     1.9  	     echo "  INST   $${src_dir}/";                                  \
    1.10  	     tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
    1.11  	 done
    1.12 @@ -100,6 +100,7 @@
    1.13  	     echo "  INST   $${src_file}";                          \
    1.14  	     install -m 644 $${src_file} $(LIBDIR)/$${src_file};    \
    1.15  	 done
    1.16 +	@ln -sf $(LIBDIR)/arch $(LIBDIR)/config/arch
    1.17  
    1.18  # Samples need a little love:
    1.19  #  - change every occurence of CT_TOP_DIR to CT_LIB_DIR
     2.1 --- a/config/target.in	Fri Sep 14 17:29:39 2007 +0000
     2.2 +++ b/config/target.in	Fri Sep 14 17:43:16 2007 +0000
     2.3 @@ -74,6 +74,23 @@
     2.4  
     2.5  endchoice
     2.6  
     2.7 +# Include architecture-specific configuration
     2.8 +if ARCH_ARM
     2.9 +source config/arch/arm/config.in
    2.10 +endif
    2.11 +if ARCH_IA64
    2.12 +source config/arch/ia64/config.in
    2.13 +endif
    2.14 +if ARCH_MIPS
    2.15 +source config/arch/mips/config.in
    2.16 +endif
    2.17 +if ARCH_x86
    2.18 +source config/arch/x86/config.in
    2.19 +endif
    2.20 +if ARCH_x86_64
    2.21 +source config/arch/x86_64/config.in
    2.22 +endif
    2.23 +
    2.24  comment "Target optimisations"
    2.25  
    2.26  config ARCH_ARCH
     3.1 --- a/scripts/crosstool.sh	Fri Sep 14 17:29:39 2007 +0000
     3.2 +++ b/scripts/crosstool.sh	Fri Sep 14 17:43:16 2007 +0000
     3.3 @@ -72,6 +72,9 @@
     3.4  
     3.5  CT_DoLog INFO "Building environment variables"
     3.6  
     3.7 +# Parse architecture-specific functions
     3.8 +. ${CT_LIB_DIR}/arch/${CT_ARCH}/functions
     3.9 +
    3.10  # Target tuple: CT_TARGET needs a little love:
    3.11  CT_DoBuildTargetTuple
    3.12