Anatolij Gustschin | 7b5b934 | 2020-01-07 16:37:42 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* Be very careful updating CONFIG_IDENT_STRING |
| 3 | * This string will control the update flow whether an U-Boot should be |
| 4 | * updated or not. If the version of installed U-Boot (in flash) is smaller |
| 5 | * than the version to be installed (from update file), an update will |
| 6 | * be performed. |
| 7 | * |
| 8 | * General rules: |
| 9 | * 1. First 4 characters ' ##v' or IDENT_MAGIC represent kind of a magic number |
| 10 | * to identify the following strings after easily. Don't change them! |
| 11 | * |
| 12 | * 2. First 2 digits after 'v' or CCP_MAJOR are updated with U-Boot version |
| 13 | * change, e.g. from 2015.04 to 2018.03 |
| 14 | * |
| 15 | * 3. Second 2 digits after '.' or CCP_MINOR are updated if we want to upgrade |
| 16 | * U-Boot within an U-Boot version. |
| 17 | */ |
| 18 | #define CCP_IDENT_MAGIC " ##v" |
| 19 | #define GENERATE_CCP_VERSION(MAJOR, MINOR) CCP_IDENT_MAGIC MAJOR "." MINOR |