setup: fix and enhance instructions 47/28247/2
authorPatrick Ohly <patrick.ohly@intel.com>
Wed, 1 Oct 2014 07:12:43 +0000 (09:12 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Wed, 1 Oct 2014 08:13:17 +0000 (10:13 +0200)
It was not clear what the content of YOCTO_WORKDIR is supposed to be
and where commands need to be invoked. Some commands were wrong (ln -s
parameters swapped, inconsistent naming of the scm/bb/tizen checkout
directory). The dependency on cmdln.py was not documented.

Change-Id: Id44bf00dd2ac2a3ceff0b9bbdc86db25015779f7
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
README.md
tools/.gitignore [new file with mode: 0644]

index 4dc4784..580529a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,21 +6,32 @@
 
        export YOCTO_WORKDIR=<path_to_your_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 ~/
 
 ### Create a symbolic link to spec2yocto.py in a directory of your ${PATH}
 
-       ln -sf ~/bin/spec2yocto ${YOCTO_WORKDIR}/yoctoTizen/tools/spec2yocto.py
+       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:
+
+        <install Tizen 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 roto-meta-Tizen_generic/rpm_tizen_macro/ in /usr/share/spec2yocto/macro
+### 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
 
@@ -33,11 +44,15 @@ spec files may not be the most recent ones. If you want to generate the recipes
 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
+       ./tizen/tools/gitCloneAll.sh
 
 Alternatively you can also fetch a specific project:
 
-       .tizen/tools/gitCloneAll.sh <project-name>
+       ./tizen/tools/gitCloneAll.sh <project-name>
+
+<project-name> has to be listed in the .spec2yoctorc. Check with
+
+        spec2yocto manifestToList | grep <project-name>
 
 ## Using spec2yocto
 
diff --git a/tools/.gitignore b/tools/.gitignore
new file mode 100644 (file)
index 0000000..1fcac78
--- /dev/null
@@ -0,0 +1 @@
+cmdln.py