mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
make: add a product_altabi setting if we want to split abis #5144
This way we can keep track of the underlying ABI in case a business version needs to find its way back to community ABI. In general ALTABI is just the derived ABI version, i.e. the one that shares the same build settings/packages/OS version.
This commit is contained in:
parent
b322ba9cf9
commit
ac1cd84485
14
Makefile
14
Makefile
@ -41,20 +41,24 @@ CORE_TYPE?= development
|
||||
.endfor
|
||||
|
||||
_CORE_NEXT= ${CORE_ABI:C/\./ /}
|
||||
.if ${_CORE_NEXT:[2]} == 7
|
||||
.if ${_CORE_NEXT:[2]} == 7 # community
|
||||
CORE_NEXT!= expr ${_CORE_NEXT:[1]} + 1
|
||||
CORE_NEXT:= ${CORE_NEXT}.1
|
||||
.elif ${_CORE_NEXT:[2]} == 10
|
||||
CORE_ALTABI?= ${CORE_ABI}
|
||||
.elif ${_CORE_NEXT:[2]} == 10 # business
|
||||
CORE_NEXT!= expr ${_CORE_NEXT:[1]} + 1
|
||||
CORE_NEXT:= ${CORE_NEXT}.4
|
||||
.elif ${_CORE_NEXT:[2]} == 1
|
||||
CORE_ALTABI?= ${_CORE_NEXT:[1]}.7
|
||||
.elif ${_CORE_NEXT:[2]} == 1 # community
|
||||
CORE_NEXT= ${_CORE_NEXT:[1]}
|
||||
CORE_NEXT:= ${CORE_NEXT}.7
|
||||
.elif ${_CORE_NEXT:[2]} == 4
|
||||
CORE_ALTABI?= ${CORE_ABI}
|
||||
.elif ${_CORE_NEXT:[2]} == 4 # business
|
||||
CORE_NEXT= ${_CORE_NEXT:[1]}
|
||||
CORE_NEXT:= ${CORE_NEXT}.10
|
||||
CORE_ALTABI?= ${_CORE_NEXT:[1]}.1
|
||||
.else
|
||||
.error Unknown ABI minor version: ${_CORE_NEXT:[2]}
|
||||
.error Unsupported minor version for CORE_ABI=${CORE_ABI}
|
||||
.endif
|
||||
|
||||
.if exists(${GIT}) && exists(${GITVERSION}) && exists(${.CURDIR}/.git)
|
||||
|
||||
@ -76,6 +76,7 @@ CORE_SYSLOGNG?= ${_CORE_SYSLOGNG:S/./ /g:[1..2]:tW:S/ /./g}
|
||||
.endif
|
||||
|
||||
REPLACEMENTS= CORE_ABI \
|
||||
CORE_ALTABI \
|
||||
CORE_ARCH \
|
||||
CORE_COMMIT \
|
||||
CORE_COPYRIGHT_HOLDER \
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"product_abi": "%%CORE_ABI%%",
|
||||
"product_altabi": "%%CORE_ALTABI%%",
|
||||
"product_arch": "%%CORE_ARCH%%",
|
||||
"product_copyright_owner": "%%CORE_COPYRIGHT_HOLDER%%",
|
||||
"product_copyright_url": "%%CORE_COPYRIGHT_WWW%%",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user