* added python-argocomplete (3.5.0) - Easy, extensible command line tab completion...
[t2sde.git] / package / base / uclibc++ / uclibc++.conf
blobdd763e92eef071a6dba4a8bc2d6f935b5e602637
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/uclibc++/uclibc++.conf
3 # Copyright (C) 2021 - 2022 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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 ---
12 runconf=0
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"
25 default_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/`
29         echo "X TARGET_$arch"
30         echo "X TARGET_ARCH \"$cpu\""
32         if [ "$arch_bigendian" = "yes" ]; then
33                 echo "X ARCH_BIG_ENDIAN"
34         else
35                 echo "X ARCH_LITTLE_ENDIAN"
36         fi
38         if [ "$SDECFG_STATIC" = 1 ]; then
39                 echo "X BUILD_STATIC_LIB"
40                 echo "X BUILD_ONLY_STATIC_LIB"
41         fi
43         echo "O UCLIBCXX_EXCEPTION_SUPPORT"
46 # save .config file for the future
47 hook_add postmake 9 'cp -v .config $root$docdir'