update: move image RELEASE_CYCLE define to configure.ac

It should be more sensefull to set release cycle inside environment
than hard coding inside neutrino code.
Neutrino package version is not the same like image release cycle,
therefore here it is separated from package info.
This commit is contained in:
2017-12-27 22:45:51 +01:00
parent b67e21b5ce
commit c90348dd1e
3 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ AC_INIT(Tuxbox-Neutrino,3.7.1)
AM_INIT_AUTOMAKE([1.0.1 nostdinc])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_DEFINE(RELEASE_CYCLE, "2.4", [Release cycle information; used in update code])
TUXBOX_APPS
TUXBOX_APPS_DIRECTORY
TUXBOX_APPS_PKGCONFIG

View File

@@ -297,7 +297,7 @@ void CImageInfo::InitInfoData()
version_string += versionInfo.getDate();
version_string += ")";
}else
printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str());
printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s], internal release cycle [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str(), RELEASE_CYCLE);
#endif
struct utsname uts_info;

View File

@@ -88,7 +88,6 @@ extern int allow_flash;
#define LIST_OF_UPDATES_LOCAL_FILENAME "coolstream.list"
#define UPDATE_LOCAL_FILENAME "update.img"
#define RELEASE_CYCLE "2.0"
#define FILEBROWSER_UPDATE_FILTER "img"
#define MTD_OF_WHOLE_IMAGE 0