setdevenv 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. #
  3. # Change this to the location of this file.
  4. # Also update the locations at the top of conf/local.conf
  5. #
  6. OEROOT=/usr/ohoe/
  7. BBDIR=$OEROOT/bitbake/
  8. PKGDIR=$OEROOT/openembedded/
  9. BUILDDIR=$OEROOT/build/
  10. PATH=$BBDIR/bin/:$PATH
  11. cd $BUILDDIR
  12. # Remove any symlinks from paths
  13. BBDIR=`readlink -f $BBDIR`
  14. PKGDIR=`readlink -f $PKGDIR`
  15. BUILDDIR=`readlink -f $BUILDDIR`
  16. if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
  17. echo >&2 "Error: Not all directories exist!"
  18. exit 1
  19. fi
  20. BBPATH=$BBDIR
  21. if test x"$BBDIR" != x"$PKGDIR"; then
  22. BBPATH=$PKGDIR:$BBPATH
  23. fi
  24. if test x"$PKGDIR" != x"$BUILDDIR"; then
  25. BBPATH=$BUILDDIR:$BBPATH
  26. fi
  27. export BBPATH
  28. # Blank this so we don't link non-arm libraries
  29. LD_LIBRARY_PATH=
  30. # Don't export TARGET_ARCH - it *will* cause build failures
  31. export PATH LD_LIBRARY_PATH OEPATH
  32. # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
  33. export LANG=C
  34. echo Environment set up for OpenEmbedded development.