Rupert Swarbrick | 105df01 | 2021-01-29 11:33:13 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright lowRISC contributors. |
| 3 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | # Check generated files are up to date |
| 7 | |
Rupert Swarbrick | baa0428 | 2021-02-10 16:11:00 +0000 | [diff] [blame] | 8 | make -k -C hw regs && git diff --exit-code |
Rupert Swarbrick | 105df01 | 2021-01-29 11:33:13 +0000 | [diff] [blame] | 9 | if [[ $? != 0 ]]; then |
| 10 | echo -n "##vso[task.logissue type=error]" |
| 11 | echo "Register headers not up-to-date. Regenerate them with 'make -C hw regs'." |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
Rupert Swarbrick | baa0428 | 2021-02-10 16:11:00 +0000 | [diff] [blame] | 15 | make -k -C hw top && git diff --exit-code |
Rupert Swarbrick | 105df01 | 2021-01-29 11:33:13 +0000 | [diff] [blame] | 16 | if [[ $? != 0 ]]; then |
| 17 | echo -n "##vso[task.logissue type=error]" |
| 18 | echo "Autogenerated tops not up-to-date. Regenerate with 'make -C hw top'." |
| 19 | exit 1 |
| 20 | fi |
| 21 | |
Rupert Swarbrick | baa0428 | 2021-02-10 16:11:00 +0000 | [diff] [blame] | 22 | make -k -C hw otp-mmap && git diff --exit-code |
Rupert Swarbrick | 105df01 | 2021-01-29 11:33:13 +0000 | [diff] [blame] | 23 | if [[ $? != 0 ]]; then |
| 24 | echo -n "##vso[task.logissue type=error]" |
| 25 | echo "Autogenerated OTP memory map files not up-to-date. Regenerate with 'make -C hw otp-mmap'." |
| 26 | exit 1 |
| 27 | fi |
| 28 | |
Rupert Swarbrick | baa0428 | 2021-02-10 16:11:00 +0000 | [diff] [blame] | 29 | make -k -C hw lc-state-enc && git diff --exit-code |
Rupert Swarbrick | 105df01 | 2021-01-29 11:33:13 +0000 | [diff] [blame] | 30 | if [[ $? != 0 ]]; then |
| 31 | echo -n "##vso[task.logissue type=error]" |
| 32 | echo "Autogenerated LC state not up-to-date. Regenerate with 'make -C hw lc-state-enc'." |
| 33 | exit 1 |
| 34 | fi |
Rupert Swarbrick | 53cc1f8 | 2021-02-09 13:00:42 +0000 | [diff] [blame] | 35 | |
| 36 | hw/ip/flash_ctrl/util/flash_ctrl_gen.py && git diff --exit-code |
| 37 | if [[ $? != 0 ]]; then |
| 38 | echo -n "##vso[task.logissue type=error]" |
| 39 | echo "Autogenerated flash_ctrl code not up-to-date." |
| 40 | echo "Regenerate with 'hw/ip/flash_ctrl/util/flash_ctrl_gen.py'." |
| 41 | exit 1 |
| 42 | fi |
Rupert Swarbrick | 1f38a16 | 2021-04-19 11:10:56 +0100 | [diff] [blame] | 43 | |
| 44 | util/design/secded_gen.py --no_fpv && git diff --exit-code |
| 45 | if [[ $? != 0 ]]; then |
| 46 | echo -n "##vso[task.logissue type=error]" |
| 47 | echo "Autogenerated secded primitive code not up-to-date." |
| 48 | echo "Regenerate with 'util/design/secded_gen.py --no_fpv'." |
| 49 | exit 1 |
| 50 | fi |