yocto_kernel: check current items before add a new one
authorNing Zhang <ning.zhang@windriver.com>
Wed, 29 May 2013 09:45:56 +0000 (09:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 May 2013 19:59:14 +0000 (20:59 +0100)
commit0cb9b7193592080137b3b340b08df36df6e3900a
treef015756a55605cf02c9729eed812e73143743079
parent6930ed2be6c40fdd4782cf3002d417ea05e4542e
yocto_kernel: check current items before add a new one

When use "yocto-kernel config add" to add the same config many times,
all of these are list when use "yocto-kernel config list" to check.

This fix modify routine yocto_kernel_config_add, if the new added
components already exist in current configuration, just igore them.
Now, one config could only be added one time.

[YOCTO #4558]

(From meta-yocto rev: 655ccc5ed77b52fb62dab5f6cfdf3de39b1bf055)

Signed-off-by: Ning Zhang <ning.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/bsp/kernel.py