Hello everyone!
I am trying to add a package using
https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/add-a-new-package/ article and existed source code. As sample I get 'vtpm' package.
My actions are:
1) Copy 'vtpm' directories in 'third_party' and 'platform2' repositories (my test package has name 'vtpm_check')
2) Change appropriate file names (to avoid name collisions) and file content
3) Build package using command 'cros_sdk cros_workon_make --install --board=${BOARD} vtpm_check'
4) Check package file tree using command 'cros_sdk equery-amd64-generic files --tree vtpm_check' (please see attached 'vtpm_check_tree.png')
5) Build image using commands 'cros build-packages --board=${BOARD} && cros build-image --board=${BOARD} test'
6) Launch image using command 'cros vm --start --image-path=src/build/images/amd64-generic/latest/chromiumos_test_image.bin --board=amd64-generic'
7) Go to board using command 'ssh -p 9222
ro...@127.0.0.1' and password 'test0000'
8) Check package files location using command 'find / -name '*vtpm_check*' -print 2> /dev/null' (please see attached 'real_file_places.png')
As I can see on board the package files have different places than it was displayed by command from point 4 - all files are placed in '/usr/local' directory on board.
Could you plase clarify - why file locations are different and should I additionally do in build procedure for 'right' file location?
Thank you in advance,
Jupiter