xtest: create output dir before generating regression_8100 header files

In some rare occurrence and with a lot of parallel jobs, the following
compilation failure of xtest could happen:
  GEN     out/xtest/regression_8100_ca_crt.h
python3 ../../scripts/file_to_c.py --inf ../../cert/ca.crt --out out/xtest/regression_8100_ca_crt.h --name regression_8100_ca_crt
Traceback (most recent call last):
  File "../../scripts/file_to_c.py", line 48, in <module>
    main()
  File "../../scripts/file_to_c.py", line 24, in main
    f = open(args.out, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'out/xtest/regression_8100_ca_crt.h'
make: *** [Makefile:226: out/xtest/regression_8100_ca_crt.h] Error 1

This is caused by the output directory `out/xtest/` not being created
when generating the following header files with the `embed-file` macro:
 * regression_8100_ca_crt.h
 * regression_8100_mid_crt.h
 * regression_8100_my_crt.h
 * regression_8100_my_csr.h

To avoid this issue, make sure the output directory is created before
generating the header files.

Fixes: 97d6e290 ("regression: add case 8102")
Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
1 file changed
tree: dee69ff0c384a4c8c632d20e6c4dc65c985e3d0e
  1. .github/
  2. cert/
  3. host/
  4. scripts/
  5. ta/
  6. .gitignore
  7. Android.mk
  8. CMakeLists.txt
  9. CMakeToolchain.txt
  10. LICENSE.md
  11. Makefile
  12. README.md
  13. typedefs.checkpatch
README.md

OP-TEE sanity testsuite

This git contains source code for the test suite (xtest) used to test the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.

// OP-TEE core maintainers