Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create do_populate_sysroot_append task in yocto

How could we add some additional kernel files to sysroot directory? I want to extend do_populate_sysroot task, how can we to copy few more files into sysroot after do_populate_sysroot and before do_package? I tried to create do_populate_sysroot_append() in recipe but it is getting parsing error. How could we add file in sysroot after populate_sysroot and before do_package task starts? How can we create new task in between?

like image 916
Vivek Avatar asked Feb 12 '16 04:02

Vivek


1 Answers

do_populate_sysroot is a python function so if you append it with shell then parse errors are to be expected.

If you want to stage more files then you can either append sysroot_stage_all or write a function that calls sysroot_stage_dir and add it to SYSROOT_PREPROCESS_FUNCS.

There are examples of both of these methods in oe-core.

like image 183
Ross Burton Avatar answered Sep 19 '22 16:09

Ross Burton