Skip to content

Commit bb17408

Browse files
committed
mbedtls: Make imported version tag more verbose
When importing development releases of Mbed TLS into Mbed OS, it is useful to be able to know a the particular git commit hash that was imported. This change avoids ever creating a VERSION.txt for Mbed TLS containing only "development", which is fairly useless since one doesn't know where the development branch was at the time of import.
1 parent e3d1e27 commit bb17408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/mbedtls/importer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ update: $(MBED_TLS_GIT_CFG) $(MBED_TLS_HA_GIT_CFG)
157157
git -C $(MBED_TLS_DIR) checkout $(MBED_TLS_RELEASE)
158158
#
159159
# Updating checked out version tag
160-
echo $(MBED_TLS_RELEASE) > $(TARGET_PREFIX)VERSION.txt
160+
git -C $(MBED_TLS_DIR) describe --tags --abbrev=12 --dirty --always > $(TARGET_PREFIX)VERSION.txt
161161

162162
$(MBED_TLS_GIT_CFG):
163163
rm -rf $(MBED_TLS_DIR)

0 commit comments

Comments
 (0)