2021-02-21 17:20:40 +01:00
|
|
|
#
|
|
|
|
# TINT build system - helps to securely download TINT with a checksum verification and build it.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Properties of the current TINT version
|
|
|
|
#
|
|
|
|
|
2023-07-29 08:39:35 +02:00
|
|
|
TINT_VERSION=0.07
|
2023-07-29 08:29:02 +02:00
|
|
|
TINT_BASE_URL="https://mirror.fsf.org/trisquel/pool/main/t/tint"
|
2021-02-21 17:20:40 +01:00
|
|
|
TINT_ARCHIVE="tint_${TINT_VERSION}.tar.xz"
|
|
|
|
TINT_DIR="tint-${TINT_VERSION}"
|
2023-07-29 08:39:35 +02:00
|
|
|
TINT_SHA1SUM="a7ec9355b9ea9d47576757219e9b1f4e51ac93a7"
|
2021-02-21 17:20:40 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Locations of the input/output scripts
|
|
|
|
#
|
|
|
|
|
|
|
|
buildgcc="./../../../util/crossgcc/buildgcc"
|
|
|
|
corescript="./core.sh"
|
|
|
|
tintified="./tint.sh"
|
2016-05-27 23:44:47 +02:00
|
|
|
|
|
|
|
unexport KCONFIG_AUTOHEADER
|
|
|
|
unexport KCONFIG_AUTOCONFIG
|
|
|
|
unexport KCONFIG_DEPENDENCIES
|
|
|
|
unexport KCONFIG_SPLITCONFIG
|
|
|
|
unexport KCONFIG_TRISTATE
|
|
|
|
unexport KCONFIG_NEGATIVES
|
|
|
|
|
|
|
|
all: tint
|
|
|
|
|
2021-02-21 17:20:40 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Three stages of TINT build system:
|
|
|
|
#
|
|
|
|
# 1) generate_core.sh extracts the core part from buildgcc script,
|
|
|
|
# most importantly the checksum calculation/verification functions.
|
|
|
|
#
|
|
|
|
# 2) tintify_core.sh adds the TINT-specific footer/header to the core,
|
|
|
|
# such as the properties of current version including its checksum.
|
|
|
|
#
|
|
|
|
# 3) tint.sh - generated and "tintified" core script - builds a TINT.
|
|
|
|
#
|
|
|
|
################################################################################
|
2016-05-27 23:44:47 +02:00
|
|
|
|
2021-02-21 17:20:40 +01:00
|
|
|
tint:
|
|
|
|
if [ ! -f ${tintified} ]; then \
|
|
|
|
chmod +x "./generate_core.sh" ; \
|
|
|
|
"./generate_core.sh" ${buildgcc} ${corescript} "prepare_before_patch" ; \
|
|
|
|
chmod +x "./tintify_core.sh" ; \
|
|
|
|
"./tintify_core.sh" ${corescript} ${tintified} \
|
2023-07-29 08:29:02 +02:00
|
|
|
${TINT_BASE_URL} ${TINT_ARCHIVE} ${TINT_DIR} ${TINT_SHA1SUM} ; \
|
2021-02-21 17:20:40 +01:00
|
|
|
fi ; \
|
|
|
|
chmod +x ${tintified}
|
|
|
|
${tintified}
|
2016-05-27 23:44:47 +02:00
|
|
|
|
|
|
|
clean:
|
2021-02-21 17:20:40 +01:00
|
|
|
test -d "./tint/" && $(MAKE) -C "./tint/" clean || exit 0
|
2016-05-27 23:44:47 +02:00
|
|
|
|
|
|
|
distclean:
|
2021-02-21 17:20:40 +01:00
|
|
|
rm -rf "./tint/"
|
|
|
|
rm -f ${corescript}
|
|
|
|
rm -f ${tintified}
|
|
|
|
|
|
|
|
.PHONY: tint clean distclean
|
2016-05-27 23:44:47 +02:00
|
|
|
|
2021-02-21 17:20:40 +01:00
|
|
|
#
|