1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/uclibc++/uclibc++.conf
3 # Copyright (C) 2021 - 2022 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"
26 # TARGET_ARCH (a bit messy due to uclibc's sh5 / sh64 handling ...)
27 cpu=`echo $arch | arch2uname`
28 arch=`echo $cpu | sed -e s/sh64/sh/ -e s/ppc/powerpc/`
30 echo "X TARGET_ARCH \"$cpu\""
32 if [ "$arch_bigendian" = "yes" ]; then
33 echo "X ARCH_BIG_ENDIAN"
35 echo "X ARCH_LITTLE_ENDIAN"
38 if [ "$SDECFG_STATIC" = 1 ]; then
39 echo "X BUILD_STATIC_LIB"
40 echo "X BUILD_ONLY_STATIC_LIB"
43 echo "O UCLIBCXX_EXCEPTION_SUPPORT"
46 # save .config file for the future
47 hook_add postmake 9 'cp -v .config $root$docdir'