Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

embedded linux - Yocto install package at rellocated place on image

I have a weird requirement of installing a package into a rellocated place in my Yocto image without changing the paths inside package.

Trying to explain, I can have files in my package like:

/usr/bin/my-app
/usr/share/my-app/files

And customer wants them installed into:

/customer/prefix/usr/bin/my-app
/customer/prefix/usr/share/my-app/files

Again, I cannot change the place where files are packed. This needs to be done during installation time only.

If I am installing package manually it is as easy as telling my package manager (opkg) to use a different root:

opkg --offline-root /customer/prefix my-app.ipk

But what is the best approach to have it integrated/automated into my image build?

NOTE: The relocation is to take place only for my-app. All other stuff must stay unaffected.

Thanks!

question from:https://stackoverflow.com/questions/65922214/yocto-install-package-at-rellocated-place-on-image

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...