Closed imre-kis-arm closed 2 months ago
Hi @imre-kis-arm,
The build process for TAs in optee_test_ext.mk
is quite convoluted, in order to address the issue I decided to delegate the build to the makefile in optee_test/ta
. Please see https://github.com/OP-TEE/optee_test/pull/740 which is a prerequisite then https://github.com/OP-TEE/build/pull/745.
Hi @jforissier,
I ran the tests which previously failed due to the "Argument list too long" issue and now they work fine, so thank you for the fix. I used the 4.2.0 components and the mentioned PRs (build: 758aaeb, optee_test: fdcbd69).
After running the test using the master branches, I can confirm that the issue is resolved, so I am closing this ticket. Thank you for fixing it.
The hooks in optee_test_ext.mk chains each TA's build step into a single command (note
&&
at the end of the foreach body).$(TARGET_CONFIGURE_OPTS)
contains the whole environment, includingPATH
and the absolute path of each compiler tool (CC, LD, AS, OBJCOPY, etc.). This causes the hook to generate a command which is around 100k long (checked by removing@
before the foreach). Depending on the length of the build directory path and the system's limitation on the maximal command length this can cause a build failure.It would be better to run each TA build as a separate command or have separate hooks for each TA if that's possible.
Although I didn't have problems with optee_examples_ext, it uses the same pattern, so it might worth changing that too.
Tested with 4.2.0.