1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/uclibc++/uclibc++.conf
3 # Copyright (C) 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 . $base/package/*/uclibc/functions.in
16 hook_add premake 1 'auto_config 2'
18 var_append makeinstopt ' ' "PREFIX=$root"
20 var_append conffiles ' ' $confdir/clean_arch.config
22 var_append conffiles ' ' $builddir/.config
23 hook_add preconf 3 "default_config > $builddir/.config"
27 # TARGET_ARCH (a bit messy due to uclibc's sh5 / sh64 handling ...)
28 cpu=`echo $arch | arch2uname`
29 arch=`echo $cpu | sed -e s/sh64/sh/ -e s/ppc/powerpc/`
31 echo "X TARGET_ARCH \"$cpu\""
33 if [ "$arch_bigendian" = "yes" ]; then
34 echo "X ARCH_BIG_ENDIAN"
36 echo "X ARCH_LITTLE_ENDIAN"
39 if [ "$SDECFG_STATIC" = 1 ]; then
40 echo "X BUILD_STATIC_LIB"
41 echo "X BUILD_ONLY_STATIC_LIB"
44 echo "O UCLIBCXX_EXCEPTION_SUPPORT"
47 # save .config file for the future
48 hook_add postmake 9 'cp -v .config $root$docdir'