@Kan_Li ,
My final goal is to build the accessManager on the yocto platform. So I had edited the “se05x_04.01.03.bb” recipe file to include cmake build options for access manager as mentioned in the “PlugAndTrust-MW Document-AN13030.pdf” document. I have attached the recipe file and pdf files for reference in the zip file.
Initially I had some issues with the “-DPTMW_SMCOM=T1oI2C” build option as I got the CMAKE error message “Can not use SCI2C with SE05X” when I did bitbake of se05x.
So I changed it to “-DPTMW_SMCOM=JRCP_V1” and this resolved the CMAKE error.
But then it started giving the below mentioned error
“| CMake Error: The source directory "/home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/build/accessManager" does not exist.”
So I added a new directory reference to point to the “accessManager” directory in the “do_configure” option as mentioned below.
A = "${WORKDIR}/simw-top/hostlib/hostLib"
do_configure() {
cd ${A}
This resolved the “accessManager” directory issue.
But when I did a bitbake of “se05x” I got the following errors which are mentioned below.
~/work/minimalbuild$ bitbake se05x
Initialising tasks: 100% |####################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 64 Found 57 Missed 7 Current 267 (89% match, 97% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: se05x-04.01.03-r0 do_configure: Function failed: do_configure (log file is located at /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/temp/log.do_configure.60592)
ERROR: Logfile of failure stored in: /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/temp/log.do_configure.60592
Log data follows:
| DEBUG: Executing shell function do_configure
| -- The C compiler identification is GNU 8.3.0
| -- The CXX compiler identification is GNU 8.3.0
| -- Check for working C compiler: /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
| -- Check for working C compiler: /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -- works
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Check for working CXX compiler: /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++
| -- Check for working CXX compiler: /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++ -- works
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| CMake Error at CMakeLists.txt:49 (CREATE_BINARY):
| Unknown CMake command "CREATE_BINARY".
|
|
| CMake Warning (dev) in CMakeLists.txt:
| No cmake_minimum_required command is present. A line of code such as
|
| cmake_minimum_required(VERSION 3.14)
|
| should be added at the top of the file. The version specified may be lower
| if you wish to support older CMake versions for this project. For more
| information run "cmake --help-policy CMP0000".
| This warning is for project developers. Use -Wno-dev to suppress it.
|
| -- Configuring incomplete, errors occurred!
| See also "/home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/simw-top/hostlib/hostLib/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/ajit/work/minimalbuild/tmp-glibc/work/armv7ahf-neon-oe-linux-gnueabi/se05x/04.01.03-r0/temp/log.do_configure.60592)
ERROR: Task (~/se05x/se05x_04.01.03.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1356 tasks of which 1348 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
~/se05x/se05x_04.01.03.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.