# spec2yocto ## Installation ### Define the YOCTO_WORKDIR environment variable: export YOCTO_WORKDIR= ### Set up that work dir in which you clone the scm/bb/tizen repository: mkdir -p $YOCTO_WORKDIR cd $YOCTO_WORKDIR git clone ssh://review.tizen.org:29418/scm/bb/tizen ### Copy .spec2yoctorc to your home directory cp tizen/proto-meta-Tizen_generic/spec2yoctorc ~/.spec2yoctorc ### When using it unmodified, run spec2yocto only in the top-level "tizen" directory ### because some of the config files are found via relative paths. ### Create a symbolic link to spec2yocto.py in a directory of your ${PATH} ln -sf ${YOCTO_WORKDIR}/tizen/tools/spec2yocto.py You can, of course, replace the "~/bin" with another directory of your choice. ### Ensure that spec2yocto.py can find cmdln.py, for example from mic: ln -s /usr/share/pyshared/mic/utils/cmdln.py ${YOCTO_WORKDIR}/tizen/tools/ ### Create a spec2yocto directory in /usr/share sudo mkdir /usr/share/spec2yocto ### Create a symbolic link to proto-meta-Tizen_generic/rpm_tizen_macro/ in /usr/share/spec2yocto/macro sudo ln -sf ${YOCTO_WORKDIR}/tizen/proto-meta-Tizen_generic/rpm_tizen_macro/ /usr/share/spec2yocto/macro ## Usage ### Execute gitCloneAll.sh (optional) This project already contains all the necessary spec files to generate the recipes however those spec files may not be the most recent ones. If you want to generate the recipes from the latest spec files you can use this command which will clone all the tizen projects used in the Tizen Yocto images (note that it will take a while): ./tizen/tools/gitCloneAll.sh Alternatively you can also fetch a specific project: ./tizen/tools/gitCloneAll.sh has to be listed in the .spec2yoctorc. Check with spec2yocto manifestToList | grep ## Using spec2yocto For example, to generate the recipes: spec2yocto createRecipes For more commands, you can display the help: spec2yocto -h ## License GPL v2