mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 21:01:31 +00:00
Added new LUFA_VERSION_RELEASE_TYPE macro to the library version header, to determine release type (thanks to NicoHood).
This commit is contained in:
parent
0c9856f405
commit
9669a00c34
@ -10,6 +10,7 @@
|
|||||||
* <b>New:</b>
|
* <b>New:</b>
|
||||||
* - Core:
|
* - Core:
|
||||||
* - Added support for the Pololu A-Star Micro board (thanks to Joh Schneider)
|
* - Added support for the Pololu A-Star Micro board (thanks to Joh Schneider)
|
||||||
|
* - Added new \c LUFA_VERSION_RELEASE_TYPE macro to the library version header, to determine release type (thanks to NicoHood)
|
||||||
*
|
*
|
||||||
* <b>Fixed:</b>
|
* <b>Fixed:</b>
|
||||||
* - Core:
|
* - Core:
|
||||||
|
@ -42,11 +42,26 @@
|
|||||||
|
|
||||||
/* Public Interface - May be used in end-application: */
|
/* Public Interface - May be used in end-application: */
|
||||||
/* Macros: */
|
/* Macros: */
|
||||||
/** Indicates the version number of the library, as an integer. */
|
/** \name LUFA Release Type Constants */
|
||||||
#define LUFA_VERSION_INTEGER 0x000000
|
//@{
|
||||||
|
/** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a development release. */
|
||||||
|
#define LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT 0
|
||||||
|
|
||||||
/** Indicates the version number of the library, as a string. */
|
/** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a beta release. */
|
||||||
#define LUFA_VERSION_STRING "000000"
|
#define LUFA_VERSION_RELEASE_TYPE_BETA 1
|
||||||
|
|
||||||
|
/** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a full official release. */
|
||||||
|
#define LUFA_VERSION_RELEASE_TYPE_FULL 2
|
||||||
|
//@}
|
||||||
|
|
||||||
|
/** Indicates the version number of the library, as an integer. \note This value is only updates in non-development releases. */
|
||||||
|
#define LUFA_VERSION_INTEGER 0x160328
|
||||||
|
|
||||||
|
/** Indicates the version number of the library, as a string. \note This value is only updates in non-development releases. */
|
||||||
|
#define LUFA_VERSION_STRING "160328"
|
||||||
|
|
||||||
|
/** Indicates the release type of the library. */
|
||||||
|
#define LUFA_VERSION_RELEASE_TYPE LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,12 +71,12 @@ bootloaders:
|
|||||||
# Check the working branch documentation, ensure no placeholder values
|
# Check the working branch documentation, ensure no placeholder values
|
||||||
check-documentation-placeholders:
|
check-documentation-placeholders:
|
||||||
@echo Checking for release suitability...
|
@echo Checking for release suitability...
|
||||||
@if ( grep "XXXXXX" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/DoxygenPages/*.txt > /dev/null ;); then \
|
@if ( grep " LUFA_VERSION_RELEASE_TYPE " $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Version.h | grep "LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT" > /dev/null ;); then \
|
||||||
echo " ERROR: Doxygen documentation has not been updated for release!"; \
|
echo " ERROR: Version header has not been updated for release!"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi;
|
fi;
|
||||||
@if ( grep "000000" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/Version.h > /dev/null ;); then \
|
@if ( grep "XXXXXX" $(patsubst %/,%,$(LUFA_ROOT))/LUFA/DoxygenPages/*.txt > /dev/null ;); then \
|
||||||
echo " ERROR: Version header has not been updated for release!"; \
|
echo " ERROR: Doxygen documentation has not been updated for release!"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi;
|
fi;
|
||||||
@echo Done.
|
@echo Done.
|
||||||
|
Loading…
Reference in New Issue
Block a user