host.rst 565 B

1234567891011121314151617181920212223
  1. Create new host
  2. =================
  3. Host file must be within **host/** directory. For auto detecting host, you should edit **modules/autohost** file.
  4. Only **_get_build_deps** function needed. We must use **builddepends** array con check and install build dependencies.
  5. for example:
  6. .. code-block:: shell
  7. _get_build_deps(){
  8. needed="" #missing package list
  9. for i in ${builddepends[@]}
  10. do
  11. [ -f /info/$i ] || needed="$needed $i"
  12. done
  13. if [ "$needed" != "" ] ; then
  14. err "Missing: $needed"
  15. .... # package installation command or exit
  16. fi
  17. }