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.

41 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../toybox/toybox.conf
  5. # Copyright (C) 2015 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  14. runconf=0
  15. #Toybox author wants this.
  16. echo_status "Using CPUS=$SDECFG_PARALLEL_MAX"
  17. export CPUS=$SDECFG_PARALLEL_MAX
  18. #Tools used to build toybox do not support -Os or -O2
  19. var_remove_regex SYSGCC_WRAPPER_INSERT " " "-O.*"
  20. hook_add premake 1 'toybox_config'
  21. toybox_config() {
  22. eval $MAKE defconfig CPUS=$CPUS
  23. if pkginstalled time; then
  24. sed -i -e "s,^CONFIG_TIME=y,CONFIG_TIME=n," .config
  25. fi
  26. if pkginstalled binutils; then
  27. sed -i -e "s,^CONFIG_STRINGS=y,CONFIG_STRINGS=n," .config
  28. fi
  29. if pkginstalled patch; then
  30. sed -i -e "s,^CONFIG_PATCH=y,CONFIG_PATCH=n," .config
  31. fi
  32. eval $MAKE oldconfig CPUS=$CPUS
  33. }
  34. var_append makeopt ' ' 'toybox'
  35. var_append makeinstopt ' ' "PREFIX=$root/"