package/xenomai: set 'custom' as version in case of tarball
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Sun, 31 Jan 2021 21:27:40 +0000 (22:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Feb 2021 17:25:24 +0000 (18:25 +0100)
When BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL is selected, the xenomai package
declared an empty version, which among others means that the build directory
becomes output/build/xenomai without any version specification, and empty
version information in 'xenomai-show-info'.

Other packages that allow a custom tarball, like 'linux' and
'arm-trusted-firmware', specify 'custom' as version in this case.

Adapt the xenomai package accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/xenomai/Config.in

index 452b45203963af7a1a631ef7c2881899f22265bb..b6557335288cf44e90d5ef32e125c678f8fc143b 100644 (file)
@@ -69,9 +69,11 @@ config BR2_PACKAGE_XENOMAI_REPOSITORY
        depends on BR2_PACKAGE_XENOMAI_CUSTOM_GIT
 
 config BR2_PACKAGE_XENOMAI_VERSION
-       string "Custom Xenomai version" if !BR2_PACKAGE_XENOMAI_LATEST_VERSION
+       string "Custom Xenomai version" if \
+               !BR2_PACKAGE_XENOMAI_LATEST_VERSION && \
+               !BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
        default "3.0.10" if BR2_PACKAGE_XENOMAI_LATEST_VERSION
-       depends on !BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
+       default "custom" if BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL
 
 config BR2_PACKAGE_XENOMAI_CUSTOM_TARBALL_URL
        string "URL of custom tarball"