2 # TINT build system - helps to securely download TINT with a checksum verification and build it.
6 # Properties of the current TINT version
10 TINT_BASE_URL
="https://mirror.fsf.org/trisquel/pool/main/t/tint"
11 TINT_ARCHIVE
="tint_${TINT_VERSION}.tar.xz"
12 TINT_DIR
="tint-${TINT_VERSION}"
13 TINT_SHA1SUM
="a7ec9355b9ea9d47576757219e9b1f4e51ac93a7"
16 # Locations of the input/output scripts
19 buildgcc
="./../../../util/crossgcc/buildgcc"
20 corescript
="./core.sh"
23 unexport KCONFIG_AUTOHEADER
24 unexport KCONFIG_AUTOCONFIG
25 unexport KCONFIG_DEPENDENCIES
26 unexport KCONFIG_SPLITCONFIG
27 unexport KCONFIG_TRISTATE
28 unexport KCONFIG_NEGATIVES
32 ################################################################################
34 # Three stages of TINT build system:
36 # 1) generate_core.sh extracts the core part from buildgcc script,
37 # most importantly the checksum calculation/verification functions.
39 # 2) tintify_core.sh adds the TINT-specific footer/header to the core,
40 # such as the properties of current version including its checksum.
42 # 3) tint.sh - generated and "tintified" core script - builds a TINT.
44 ################################################################################
47 if
[ ! -f
${tintified} ]; then \
48 chmod
+x
"./generate_core.sh" ; \
49 "./generate_core.sh" ${buildgcc} ${corescript} "prepare_before_patch" ; \
50 chmod
+x
"./tintify_core.sh" ; \
51 "./tintify_core.sh" ${corescript} ${tintified} \
52 ${TINT_BASE_URL} ${TINT_ARCHIVE} ${TINT_DIR} ${TINT_SHA1SUM} ; \
58 test -d
"./tint/" && $(MAKE
) -C
"./tint/" clean || exit
0
65 .PHONY
: tint
clean distclean