ARM7 (IMX6UL) cross-compile and target questions
Hello,
I'm working with an existing embedded target based on IMX6UL with a Quectel modem. I have lpac built and running on my target. I have not yet tried to install a new profile, but "lpac chip info" and "lpac profile list" are successful.
During the build process, I ran into a few small issues. I'm looking to clean up my build process without modifying your source if possible. I have a custom toolchain file so my issues may be related to a setting there. I'm performing a cross-compile on a linux host for a buildroot based target.
1. PCSCLite - find_path() cannot find header files. I was able to build by adding the option "PATH_SUFFIXES PCSC". Interestingly, find_library() was always able to find the library. I'm using QMI so I technically don't need this driver (I can disable with "LPAC_WITH_APDU_PCSC": "OFF"), but this may help to explain my second build problem.
2. qmi-glib - pkg_check_modules() is unable to find "qmi-glib>=1.36.0". I have libqmi-1.36.0 installed in the toolchain. I could not find qmi-glib even if I removed the version requirement. I was able to build by manually adding the library and include paths.
3. get_runpath() in euicc-driver-loader.c - The "__linux__" version of this function fails because DT_RUNPATH is never found. I created a workaround by returning "$ORIGIN" if the function fails because "runpath==NULL". I noticed that this is also the default behavior if none of the target build options are met. I didn't see an option to manually control this at build since it is selected by the toolchain.
Thank you in advance for your assistance.
6 条评论