will solve multi configure spec file
[scm/bb/tizen.git] / README.md
1 # spec2yocto
2
3 ## Installation
4
5 ### Define the YOCTO_WORKDIR environment variable:
6
7         export YOCTO_WORKDIR=<path_to_your_workdir>
8
9 ### Set up that work dir in which you clone the scm/bb/tizen repository:
10
11         mkdir -p $YOCTO_WORKDIR
12         cd $YOCTO_WORKDIR
13         git clone ssh://review.tizen.org:29418/scm/bb/tizen
14
15 ### Copy .spec2yoctorc to your home directory
16
17         cp tizen/proto-meta-Tizen_generic/.spec2yoctorc ~/
18
19 ### Create a symbolic link to spec2yocto.py in a directory of your ${PATH}
20
21         ln -sf ${YOCTO_WORKDIR}/tizen/tools/spec2yocto.py 
22
23 You can, of course, replace the "~/bin" with another directory of your choice.
24
25 ### Ensure that spec2yocto.py can find cmdln.py, for example from mic:
26
27         <install Tizen mic>
28         ln -s /usr/share/pyshared/mic/utils/cmdln.py ${YOCTO_WORKDIR}/tizen/tools/
29
30 ### Create a spec2yocto directory in /usr/share
31
32         sudo mkdir /usr/share/spec2yocto
33
34 ### Create a symbolic link to proto-meta-Tizen_generic/rpm_tizen_macro/ in /usr/share/spec2yocto/macro
35
36         sudo ln -sf ${YOCTO_WORKDIR}/tizen/proto-meta-Tizen_generic/rpm_tizen_macro/ /usr/share/spec2yocto/macro
37
38 ## Usage
39
40 ### Execute gitCloneAll.sh (optional)
41
42 This project already contains all the necessary spec files to generate the recipes however those
43 spec files may not be the most recent ones. If you want to generate the recipes from the latest spec
44 files you can use this command which will clone all the tizen projects used in the Tizen Yocto
45 images (note that it will take a while):
46
47         ./tizen/tools/gitCloneAll.sh
48
49 Alternatively you can also fetch a specific project:
50
51         ./tizen/tools/gitCloneAll.sh <project-name>
52
53 <project-name> has to be listed in the .spec2yoctorc. Check with
54
55         spec2yocto manifestToList | grep <project-name>
56
57 ## Using spec2yocto
58
59 For example, to generate the recipes:
60
61         spec2yocto createRecipes
62
63 For more commands, you can display the help:
64
65         spec2yocto -h
66
67 ## License
68
69 GPL v2
70