mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 04:47:52 +00:00
Add the framework to have architecture-specific configuration and functions.
API is not yet defined.
This commit is contained in:
parent
ae7e017380
commit
7b70a704e0
@ -91,7 +91,7 @@ install-bin: install-local-test $(BINDIR)
|
||||
install-lib: install-local-test $(LIBDIR) install-lib-main install-lib-samples
|
||||
|
||||
install-lib-main: install-local-test $(LIBDIR)
|
||||
@for src_dir in config kconfig patches scripts tools; do \
|
||||
@for src_dir in arch config kconfig patches scripts tools; do \
|
||||
echo " INST $${src_dir}/"; \
|
||||
tar cf - --exclude=.svn $${src_dir} |(cd $(LIBDIR); tar xf -); \
|
||||
done
|
||||
@ -100,6 +100,7 @@ install-lib-main: install-local-test $(LIBDIR)
|
||||
echo " INST $${src_file}"; \
|
||||
install -m 644 $${src_file} $(LIBDIR)/$${src_file}; \
|
||||
done
|
||||
@ln -sf $(LIBDIR)/arch $(LIBDIR)/config/arch
|
||||
|
||||
# Samples need a little love:
|
||||
# - change every occurence of CT_TOP_DIR to CT_LIB_DIR
|
||||
|
0
arch/arm/config.in
Normal file
0
arch/arm/config.in
Normal file
0
arch/arm/functions
Normal file
0
arch/arm/functions
Normal file
0
arch/ia64/config.in
Normal file
0
arch/ia64/config.in
Normal file
0
arch/ia64/functions
Normal file
0
arch/ia64/functions
Normal file
0
arch/mips/config.in
Normal file
0
arch/mips/config.in
Normal file
0
arch/mips/functions
Normal file
0
arch/mips/functions
Normal file
0
arch/x86/config.in
Normal file
0
arch/x86/config.in
Normal file
0
arch/x86/functions
Normal file
0
arch/x86/functions
Normal file
0
arch/x86_64/config.in
Normal file
0
arch/x86_64/config.in
Normal file
0
arch/x86_64/functions
Normal file
0
arch/x86_64/functions
Normal file
@ -74,6 +74,23 @@ config ARCH_LE
|
||||
|
||||
endchoice
|
||||
|
||||
# Include architecture-specific configuration
|
||||
if ARCH_ARM
|
||||
source config/arch/arm/config.in
|
||||
endif
|
||||
if ARCH_IA64
|
||||
source config/arch/ia64/config.in
|
||||
endif
|
||||
if ARCH_MIPS
|
||||
source config/arch/mips/config.in
|
||||
endif
|
||||
if ARCH_x86
|
||||
source config/arch/x86/config.in
|
||||
endif
|
||||
if ARCH_x86_64
|
||||
source config/arch/x86_64/config.in
|
||||
endif
|
||||
|
||||
comment "Target optimisations"
|
||||
|
||||
config ARCH_ARCH
|
||||
|
@ -72,6 +72,9 @@ CT_HasOrAbort lynx
|
||||
|
||||
CT_DoLog INFO "Building environment variables"
|
||||
|
||||
# Parse architecture-specific functions
|
||||
. ${CT_LIB_DIR}/arch/${CT_ARCH}/functions
|
||||
|
||||
# Target tuple: CT_TARGET needs a little love:
|
||||
CT_DoBuildTargetTuple
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user