Bug 3765

Summary: BSP output dir already exists error appear sometimes when creating yocto-bsp for denzil
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: VERIFIED NOTABUG QA Contact:
Severity: minor    
Priority: Low CC: ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.2.2   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2013-01-21 15:10:55 UTC
ENVIRONMENT USED:
HOST: Ubuntu 12.04 64bit
Eclipse plugin: built with 3c5c3e87fa63e89110abdfed3c5214a67e8383f9


STEPS TO REPRODUCE
1. Install eclipse-plugin (indigo) for denzil. 
a) $ git clone git://git.yoctoproject.org/eclipse-poky
b) $ git checkout denzil
c) $ git checkout 3c5c3e87fa63e89110abdfed3c5214a67e8383f9
d) Run Headless build /eclipse-poky/scripts/$ setup.sh
e) Build eclipse-plugin./build.sh denzil rc1 3c5c3e87fa63e89110abdfed3c5214a67e8383f9
f) Open Eclipse and install the eclipse-plugin build from 1 f)

2. Clone a poky repo and check out the denzil branch
$ git clone git://git.yoctoproject.org/poky
$ git checkout denzil

3. Open Eclipse

4. Open "Yocto Project Tools" -> yocto-bsp

5. 
a) Set the "Meta_data location*" to the poky folder (in step 2)
b) Set a name for bsp, e.g. bsp_test

6. Set the Bsp output location by following the exact steps:
a) Click browse
b) Navigate to an existing folder, e.g. Documents
c) Press "New Folder", enter a name for the new folder, e.g. "one", than press the Return key
d) In the "Bsp output location" the path of the new folder will be displayed, e.g.: /home/yocto/Documents/one

7. Set the kernel architecture and if needed Qemu architecture than press Next
8. in the yocto-bsp properties page select the kernel_choice and kernel Branch settings

9. Press "Finnish"

EXPECTED RESULTS
9. The yocto-bsp is created

ACTUAL RESULTS
9. An error appears (see printscreen-1 attachment)

10. Press OK, than press "Back" to change the "Bsp output location". Change manually the output to a non existing location, e.g.: /home/yocto/Documents/three
11. Press "Next" and then "Finnish"
12. The same error will appear.
13. Repeat steps 10 and 11. NOW, the new yocto-bsp will be created.
Comment 1 Ioana Grigoropol 2013-04-03 14:22:55 UTC
This is an error that is intentionally thrown by the yocto-bsp script in order not to override the output directory.

This error appears if the same command is ran from the command line, for example:

~/git-repos/denzil/eclipse-poky [denzil] $ /home/ioana/git-repos/denzil/poky/scripts/yocto-bsp create dsd arm -o /tmp/kkds2 -i /tmp/propertyvalues.json
New arm BSP created in /tmp/kkds2
~/git-repos/denzil/eclipse-poky [denzil] $ /home/ioana/git-repos/denzil/poky/scripts/yocto-bsp create dsd arm -o /tmp/kkds2 -i /tmp/propertyvalues.json

BSP output dir already exists, exiting. (/tmp/kkds2)
Comment 2 Alexandru Georgescu 2013-04-17 13:26:53 UTC
verified as per above comment