qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: how to include out of tree source during the qemu build?


From: ckim
Subject: RE: how to include out of tree source during the qemu build?
Date: Thu, 20 May 2021 14:32:36 +0900

 

I found under qemu-5.1.0/build directory, if I do

make CFLAGS=-I../../../../../../aaa/bbb/ccc CFLAGS+=-I../../../../../ddd/eee

the file #include works and at least it builds ok.

Chan Kim

 

From: ckim@etri.re.kr <ckim@etri.re.kr>
Sent: Thursday, May 20, 2021 2:11 PM
To: 'qemu-discuss' <qemu-discuss@nongnu.org>
Subject: how to include out of tree source during the qemu build?

 

Hello all,

 

Im trying to include a out-of-tree source in a peripheral model and want to connect to a .so file during qemu operation.

(This .so files was made by my colleague and contains the behaviors of a peripheral.

I want to place the codes needed to link to this .so file outside the source tree as much as possible and use #include or VPATH in Makefile.

Ill use dlopen and dlsym functions to the .so file and use the functions there).

If I want to add an include path or VPATH, where should I give them during the configure/make process and how?

 

Also, I started reading https://qemu.readthedocs.io/en/latest/devel/build-system.html but this is for the latest version.

And in this documents, it says it shows how to build qemu under the source tree and out of tree.

In the out of tree build option header, it says, VPATH, build artifacts outside of QEMU source tree entirely” and I can’t understand why it contains the word VPATH.

 

And this document is for the latest version.(6.x.x) but where can I read the equivalent document for version 5.1.0?

(I have to move to the latest some day later, but for now I want to stay in 5.1.0. And there are latest or stable versions in the readthedocs.org)

 

Any comment or guide or document link about this questions will be appreciated.

Thank you!

 

Chan Kim

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]