summaryrefslogtreecommitdiff
path: root/scripts/build/libc/uClibc.sh
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-04-07 07:18:20 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-04-07 07:18:20 (GMT)
commit24e4d092a5976ab5f4797967f66ea3940f474872 (patch)
tree3a43dd2d0e85202c6bf4445cf7316eb453fef6cf /scripts/build/libc/uClibc.sh
parent55ba3f63787bfac8e81a7651490bd99654bcb5d5 (diff)
Add basic support for the Blackfin architecture
For uClibc, the name of the Blackfin architecture is 'bfin'. Actually, the naming of the architecture is quite messy: for toolchain tuples and uClibc, it's bfin, but for the kernel, it's blackfin. We've arbitraly choosen to name it "blackfin" in Crosstool-NG. Add Blackfin-related uClibc patch to fix a build failure related to fork() being used in unistd/daemon.c. Yann E. MORIN: Apply the patch to the kernel/linux build script to use 'linux' in the noMMU tuples. See: http://sourceware.org/ml/crossgcc/2010-04/msg00010.html
Diffstat (limited to 'scripts/build/libc/uClibc.sh')
-rw-r--r--scripts/build/libc/uClibc.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index f4aa43d..03411a2 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -190,11 +190,12 @@ mungeuClibcConfig() {
# Hack our target in the config file.
case "${CT_ARCH}:${CT_ARCH_BITNESS}" in
- x86:32) arch=i386;;
- x86:64) arch=x86_64;;
- sh:32) arch="sh";;
- sh:64) arch="sh64";;
- *) arch="${CT_ARCH}";;
+ x86:32) arch=i386;;
+ x86:64) arch=x86_64;;
+ sh:32) arch="sh";;
+ sh:64) arch="sh64";;
+ blackfin:32) arch="bfin";;
+ *) arch="${CT_ARCH}";;
esac
# Also remove stripping: its the responsibility of the
# firmware builder to strip or not.