blob: 78f569517a2d7aef9a636231970f5d7d4a53c2e6 (
plain) (
blame)
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
68
69
70
71
72
73
74
75
|
#!/bin/bash
# helper script: downloads depthcharge and patches it
#
# Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This script assumes that the working directory is the
# root of libreboot_src or libreboot git.
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
# Get depthcharge and patch it
printf "Downloading depthcharge\n"
rm -Rf "depthcharge/"
# Get depthcharge
# ------------------------------------------------------------------------------
# download depthcharge from git
git clone https://chromium.googlesource.com/chromiumos/platform/depthcharge
# enter the tree to patch it
cd "depthcharge/"
# reset to the latest previously tested revision
git reset --hard 3fe03aece37d0f9cf63ce6b548f734d794d7fedc
# Patch depthcharge
# ------------------------------------------------------------------------------
# printf "arm: armv7-a march abi flag for ARMv7 hardware\n"
# git am "../resources/depthcharge/patch/0001-arm-armv7-a-march-abi-flag-for-ARMv7-hardware.patch"
# printf "Coreboot image integration removal\n"
# git am "../resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch"
# printf "DOTCONFIG location correction\n"
# git am "../resources/depthcharge/patch/0003-DOTCONFIG-location-correction.patch"
# printf "Adaptation for a read-only boot path when no vboot handoff data is found\n"
# git am "../resources/depthcharge/patch/0004-Adaptation-for-a-read-only-boot-path-when-no-vboot-h.patch"
# printf "vboot: Only initialize cparams once\n"
# git am "../resources/depthcharge/patch/0005-vboot-Only-initialize-cparams-once.patch"
printf "Proper firmware index report for read-only boot path\n"
git am "../resources/depthcharge/patch/0006-Proper-firmware-index-report-for-read-only-boot-path.patch"
printf "fdt: nonvolatile-context-storage report to mkbp for EC NV storage\n"
git am "../resources/depthcharge/patch/0007-fdt-nonvolatile-context-storage-report-to-mkbp-for-E.patch"
printf "vboot: Display callbacks for developer and recovery mode screens\n"
git am "../resources/depthcharge/patch/0008-vboot-Display-callbacks-for-developer-and-recovery-m.patch"
# leave the tree
cd "../"
printf "\n\n"
|