When you are in a Yocto Environment there isn't os-release
file, so if the Yocto env is detected then position
manually the OSRELEASE variable to yocto-build.
Change-Id: I10029664100bb73aa74eaa85c1a4295c4ab65428
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
else()
set(OSRELEASE "NOT COMPATIBLE !")
endif()
-
+elseif(${BUILD_ENV_SYSROOT} == $ENV{PKG_CONFIG_SYSROOT_DIR})
+ set(OSRELEASE "yocto-build")
else()
set(OSRELEASE "NOT COMPATIBLE ! Missing ${OS_RELEASE_PATH} file.")
endif()