Commit 84fe3f0
committed
Pick whether to pre-generate files solely based on the component
Whether a component started with configuration-independent
platform-independent generated files present or not depended on the
repository and on the state of the working directory:
* In TF-PSA-Crypto, we started with whatever generated files were present
before invoking the script, and didn't touch them between components.
* In Mbed TLS, we always started with generated files present (for
subsequent components, only if they hadn't been messed up).
After this change, the behavior is the same across repositories and doesn't
depend on the initial state of the working directory:
* `check_xxx` components start with the generated files present. This is
either indifferent or necessary depending on the component. (Without
generated files, some components such as `check_names` fail, while others
such as `check_test_cases` miss stuff that they should check.)
* Other components (`build_xxx`, `test_xxx`, etc.) start with the generated
files absent. This is generally desirable so that we test that the build
scripts generate them as needed.
Fix #188
Signed-off-by: Gilles Peskine <[email protected]>1 parent a6c8d75 commit 84fe3f0
1 file changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| |||
874 | 877 | | |
875 | 878 | | |
876 | 879 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 880 | | |
889 | 881 | | |
890 | 882 | | |
| |||
951 | 943 | | |
952 | 944 | | |
953 | 945 | | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
954 | 967 | | |
955 | 968 | | |
956 | 969 | | |
| |||
1021 | 1034 | | |
1022 | 1035 | | |
1023 | 1036 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | 1037 | | |
1028 | 1038 | | |
1029 | 1039 | | |
| |||
0 commit comments