-
Notifications
You must be signed in to change notification settings - Fork 10
LMDB guard for CTP7 modules migration #131
LMDB guard for CTP7 modules migration #131
Conversation
It seems the header file is also inside To me, what's happening with the |
Currently, the MO has been that if we're developing applications that depend on, e.g., What we could (should?) do, is somehow create our own
Yes, this is probably a better route for this package, since its origins in being PC based, are now migrating to a dual use library, with distinct features on each side of the RPC call. |
Tried an attempt to package as being discussed in #132, but the code doesn't compile with the
Removing the |
Also, can't compile for "client" because of lack of |
1b3b4b7
to
35a0c0e
Compare
Should now compile without errors or warnings. |
35a0c0e
to
e5c16e2
Compare
@mexanick @lmoureaux, any reason to not merge this (as mentioned in #132 (comment)? |
I'm reluctant to merging something that doesn't build out-of-the-box. Maybe I can move it to |
Sounds fine to me (I can confirm that it builds after my moving things around though I haven't tested that the library works...) |
|
This library is used by the RPC modules for the address table database. Since it is more of a support library, move it to this repository. Also use the original file name lmdb++.h instead of lmdb_cpp_wrapper.h.
The new class will be used to avoid passing the LMDB handle as an argument to every function. The implementation isn't very smart so far, but this can be improved without breaking the existing API. The new code is located in xhalarm because it is not usable on the client side.
e5c16e2
to
4a43663
Compare
Fixed |
Description
This PR adds a guard that abstracts away the management of the register address database. The current implementation doesn't try to be smart and does the same as the current
localArgs
initialization.The new code cannot be compiled into
libxhal.so
for the host PC (unless we want to carry LMDB as a dependency), therefore I put the files in thexhalarm
package structure. However I can't find a way to include them into the build without duplicating most of the Makefile; @jsturdy maybe you can suggest something? I think the canonical way of doing this is to buildlibxhalcore.so
for two architectures from the same code and Makefile (with CPP, CC, CXX, LD etc passed from a root Makefile using the environment), and to buildlibxhalarm.so
for ARM, with only the CTP7-specific code.Types of changes
Motivation and Context
Required to port away from
localArgs
.How Has This Been Tested?
Compiles and links on x86 with CMake. More testing is needed on a real CTP7, but build system integration is required before this can happen.
Checklist: