blob: de3e58b8dad501ee6804ced06fa70e95a435a8b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#
# TINT build system - helps to securely download TINT with a checksum verification and build it.
#
#
# Properties of the current TINT version
#
TINT_VERSION=0.07
TINT_BASE_URL="https://mirror.fsf.org/trisquel/pool/main/t/tint"
TINT_ARCHIVE="tint_${TINT_VERSION}.tar.xz"
TINT_DIR="tint-${TINT_VERSION}"
TINT_SHA1SUM="a7ec9355b9ea9d47576757219e9b1f4e51ac93a7"
#
# Locations of the input/output scripts
#
buildgcc="./../../../util/crossgcc/buildgcc"
corescript="./core.sh"
tintified="./tint.sh"
unexport KCONFIG_AUTOHEADER
unexport KCONFIG_AUTOCONFIG
unexport KCONFIG_DEPENDENCIES
unexport KCONFIG_SPLITCONFIG
unexport KCONFIG_TRISTATE
unexport KCONFIG_NEGATIVES
all: tint
################################################################################
#
# 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.
#
################################################################################
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} \
${TINT_BASE_URL} ${TINT_ARCHIVE} ${TINT_DIR} ${TINT_SHA1SUM} ; \
fi ; \
chmod +x ${tintified}
${tintified}
clean:
test -d "./tint/" && $(MAKE) -C "./tint/" clean || exit 0
distclean:
rm -rf "./tint/"
rm -f ${corescript}
rm -f ${tintified}
.PHONY: tint clean distclean
#
|