| Summary: | script "yocto-kernel config add" could add one component more than one times | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ning Zhang <ning.zhang> |
| Component: | kernel | Assignee: | Ning Zhang <ning.zhang> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Low | CC: | bruce.ashfield, dvhart, ke.zou, tom.zanussi, yi.zhao |
| Version: | 1.5 | ||
| Target Milestone: | 1.5 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
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've marked it as "Low" priority. I will fix this bug soon. Add the current items check before add a new one. fixed this bug with commit 0ef93c5ee9a0e35d993ec8c6b9d7e8ffcf767b4b http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ning/znbug4558&id=607ff646bb9a3c780299eccbd6bdef7724658708 |
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 "meta-myqemux86" directory 3. input "yocto-kernel config add myqemux86 CONFIG_MISC_DEVICES=y" 3 times 4. input "yocto-kernel config list myqemux86" 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 "CONFIG_MISC_DEVICES" 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.