[OE-core] [PATCH v2 1/2] devtool: upgrade feature
Leonardo Sandoval
leonardo.sandoval.gonzalez at linux.intel.com
Thu Aug 27 20:08:26 UTC 2015
On 08/27/2015 08:29 AM, Otavio Salvador wrote:
> On Thu, Aug 27, 2015 at 10:24 AM, Leonardo Sandoval
> <leonardo.sandoval.gonzalez at linux.intel.com> wrote:
>> On 08/26/2015 07:04 PM, Paul Eggleton wrote:
>>> We already have code for editing recipes like this in recipeutils (and in
>>> lib/bb/utils as well) - in fact I see you're using patch_recipe() later
>>> on, so
>>> why do it by hand here?
>>>
>>
>> can 'oe.recipeutils.patch_recipe' patch variable's flags? I did not try but
>> looking at the function definition, seems like it does not.
>
> So add this feature there if you need it.
Hi Otavio!
you are completely right. I gave it some hours today without much luck.
What I have right now is that it appends the new checksums at the end of
the recipe instead of replacing them. This works fine because the last
assignment is the one remaining after the parsing stage, but not really
elegant to have duplicate values in a single recipe.
Paul,
For this particular feature, I believe we should focus on bitbake's
edit_metadata function instead of recipeutils's patch_recipe. In
general, we should refactor many things on the devtool code, now that
many stuff is just in a single file (standard.py). This seems to me like
work for me targeting 2.1 release.
>
More information about the Openembedded-core
mailing list