summaryrefslogtreecommitdiffhomepage
path: root/project/config
diff options
context:
space:
mode:
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.in3
-rw-r--r--project/config/cfgdefs.sh7
2 files changed, 10 insertions, 0 deletions
diff --git a/project/config/cfgdefs.in b/project/config/cfgdefs.in
index 28f9ec4..bbad445 100644
--- a/project/config/cfgdefs.in
+++ b/project/config/cfgdefs.in
@@ -10,6 +10,9 @@ LIBC_EXCL_FILES = @libc_excl_files@
# port source directory
PORT_DIR = @port_dir@
+# alltypes.sed
+ALLTYPES_SED = @alltypes_sed@
+
# source tree (atomic.h vs. atomic_arch.h)
CFLAGS_CONFIG += @libc_source_tree@
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 574577f..168e961 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -85,6 +85,12 @@ cfgdefs_set_libc_options()
libc_source_tree='-D__LIBC_LEGACY_SOURCE_TREE'
fi
+ if [ -f $arch_dir/arch/$mb_arch/bits/alltypes.sed ]; then
+ alltypes_sed=$arch_dir/arch/$mb_arch/bits/alltypes.sed
+ else
+ alltypes_sed=build/alltypes.sed
+ fi
+
if [ _${libc_no_complex:-} = _yes ]; then
libc_deps=
libc_excl_files='$(filter ./src/complex/%, $(libc_all_files))'
@@ -107,6 +113,7 @@ cfgdefs_output_custom_defs()
-e 's^@libc_excl_files@^'"$libc_excl_files"'^g' \
-e 's/@libc_source_tree@/'"$libc_source_tree"'/g' \
-e 's/@libc_syscall_arch@/'"$libc_syscall_arch"'/g' \
+ -e 's!@alltypes_sed@!'"$alltypes_sed"'!g' \
"$mb_project_dir/project/config/cfgdefs.in" \
| sed -e 's/[ \t]*$//g' \
>> "$mb_pwd/cfgdefs.mk"