<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4558</bug_id>
          
          <creation_ts>2013-05-27 07:21:31 +0000</creation_ts>
          <short_desc>script &quot;yocto-kernel config add&quot; could add one component more than one times</short_desc>
          <delta_ts>2013-06-06 02:11:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ning Zhang">ning.zhang</reporter>
          <assigned_to name="Ning Zhang">ning.zhang</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>ke.zou</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33300</commentid>
    <comment_count>0</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-05-27 07:21:31 +0000</bug_when>
    <thetext>Branch: poky/master
Git rev: 176a46b088135f2891983bb8540bc45389341d90

Steps:
1. create a new bsp with all the default options:  
    yocto-bsp create myqemux86 qemu
2. modify conf/bblayers.conf, BBLAYERS field, added &quot;meta-myqemux86&quot; directory
3. input &quot;yocto-kernel config add myqemux86 CONFIG_MISC_DEVICES=y&quot; 3 times
4. input &quot;yocto-kernel config list myqemux86&quot; to check, you will get below list:

The current set of machine-specific kernel config items for myqemux86 is:
	1) CONFIG_MISC_DEVICES=y
	2) CONFIG_MISC_DEVICES=y
	3) CONFIG_MISC_DEVICES=y

The same component &quot;CONFIG_MISC_DEVICES&quot; lists 3 times.

I think when add the configration, the script should first check, if this option already exists: 
If yes, only tell the customer the configration is duplicate, but not truely add it.
If no, then add it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33344</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-05-28 20:42:36 +0000</bug_when>
    <thetext>Ning, are you planning on working this bug? If so, please move Status to Accepted and the Target Milestone to something appropriate, perhaps 1.5 M2. As the bug is not a functional failure, I&apos;ve marked it as &quot;Low&quot; priority.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33351</commentid>
    <comment_count>2</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-05-29 08:05:20 +0000</bug_when>
    <thetext>I will fix this bug soon.
Add the current items check before add a new one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33648</commentid>
    <comment_count>3</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-06-06 02:11:39 +0000</bug_when>
    <thetext>fixed this bug with commit 0ef93c5ee9a0e35d993ec8c6b9d7e8ffcf767b4b

http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ning/znbug4558&amp;id=607ff646bb9a3c780299eccbd6bdef7724658708</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>