forked from dl9pf/layer-reorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO_1.1_NOTES
60 lines (39 loc) · 1.36 KB
/
TODO_1.1_NOTES
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
1.1 - (jsmoeller): PoC for signature lock
Step #1 build and lock signatures:
##################################
(SYSTEM = debian 8.8)
(NO rm_work ... seems to break things)
# default
SSTATE_DIR = "${TOPDIR}/sstate-cache"
-->>
bitbake agl-demo-platform
bitbake -S none agl-demo-platform
<<--
==> Writing locked sigs to /home/dl9pf/repobuild/build-rpi3/locked-sigs.inc
Step #2 generate cache matching locked signatures:
##################################################
# syntax: gen-lockedsig-cache <locked-sigs.inc> <input-cachedir> <output-cachedir> <nativelsbstring> [filterfile]
-->>
gen-lockedsig-cache locked-sigs.inc ./sstate-cache ./locked-cache universal-4.9
<<--
ISSUE 1:
# NATIVELSBSTRING = "universal-4.9" <--- EEEK "universal-4.8"/"universal-4.9" or "universal" for gcc >= 5.0
Step #3 use locked signature to recreate build.
###############################################
#cp locked-sigs.inc to conf/
-->>
cp locked-sigs.inc conf/
<<--
#change local.conf to use locked-cache as SSTATE_MIRROR and change SSTATE_DIR to validate new input:
-->>
cat << EOF >> conf/local.conf
SSTATE_DIR := "\${TOPDIR}/sstate-cache-from-locked"
SSTATE_MIRRORS := " file://.* file://home/dl9pf/repo-clone-AGL/build-rpi3/locked-cache/PATH \n "
require locked-sigs.inc
EOF
<<--
# now rebuild with sigs locked from locked-cache
-->>
rm -rf tmp
bitbake agl-demo-platform
<<--