OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../uclibc++/uclibc++.conf
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. runconf=0
  15. . $base/package/*/uclibc/functions.in
  16. hook_add premake 1 'auto_config 2'
  17. var_append makeinstopt ' ' "PREFIX=$root"
  18. var_append conffiles ' ' $confdir/clean_arch.config
  19. var_append conffiles ' ' $builddir/.config
  20. hook_add preconf 3 "default_config > $builddir/.config"
  21. default_config()
  22. {
  23. # TARGET_ARCH (a bit messy due to uclibc's sh5 / sh64 handling ...)
  24. cpu=`echo $arch | arch2uname`
  25. arch=`echo $cpu | sed -e s/sh64/sh/ -e s/ppc/powerpc/`
  26. echo "X TARGET_$arch"
  27. echo "X TARGET_ARCH \"$cpu\""
  28. if [ "$arch_bigendian" = "yes" ]; then
  29. echo "X ARCH_BIG_ENDIAN"
  30. else
  31. echo "X ARCH_LITTLE_ENDIAN"
  32. fi
  33. if [ "$SDECFG_STATIC" = 1 ]; then
  34. echo "X BUILD_STATIC_LIB"
  35. echo "X BUILD_ONLY_STATIC_LIB"
  36. fi
  37. echo "O UCLIBCXX_EXCEPTION_SUPPORT"
  38. }
  39. # save .config file for the future
  40. hook_add postmake 9 'cp -v .config $root/$docdir'