# sample oe-env script - 'source oe-env' to use this environment. # # NOTE: # In this example, I have a dir in my home directory called 'src/', where I # do all my development work. In this dir I # have downloaded the 'oe/' and 'packages/' tree from the BitKeeper # repository, and I have manually "mkdir'ed" the oe_downloads/ dir. # # The setup looks like this: # /home/user/src/oe/ <- main BB dev # /home/user/src/oe/ <- oe/ system bk tree # /home/user/src/oe/packages/ <- packages/ bk tree # /home/user/src/build/ <- where *ALL* builds occur # /home/user/src/oe_downloads/ <- oe dl's stuff here # # CHANGE 'user' to whatever your username is! Also, be sure to carefully # check the DL_DIR value in your $BBBUILD/conf/local.conf file ... # # - where does openembedded live? i.e. where did you 'bk pull oe' and 'bk pull packages'? BBROOT=/mnt/data/ipaq/oe # - where is the BB system dir? BBSYS=$BBROOT/bitbake # - where do all the packages live? PKGDIR=$BBROOT/openembedded/packages # - where will *ALL* builds be occurring? BBBUILD=$BBROOT/build # - the path BB will search in order to find "$BBPATH/conf/*.conf" files. Yes, thats what this path is for. BBPATH=$PKGDIR:$BBSYS: # [NOTE: BB's *.conf files are -all- supposed to be in a dir named 'conf/' within these dirs ... # BB prepends 'conf' itself when looking for these files, so we don't do it ... strange but true ...] # - add the oe/bin dir to this shells' path - without this, you get no 'oemake' or 'oebuild' or 'oecommander'... PATH=$BBSYS/bin/:$PATH # NOTE: this assumes you have the arm 2.95.3 tools installed as per the instructions on # http://www.openembedded.org/oe_wiki/index.php/ZaurusKernels # change to the build dir cd $BBBUILD # Blank this so we don't link non-arm libraries LD_LIBRARY_PATH= # Don't export TARGET_ARCH - it *will* cause build failures export PATH LD_LIBRARY_PATH BBPATH # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really export LANG=C # Stop C Type problems that you will see with packages like libpgp-error unset LC_CTYPE echo Environment set up for OpenEmbedded development.