forked from MrChromebox/coreboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-uefi.sh
executable file
·45 lines (41 loc) · 1.44 KB
/
build-uefi.sh
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
#!/bin/bash
#
set -e
snb_ivb=("butterfly" "link" "lumpy" "parrot_ivb" "parrot_snb" "stout" "stumpy")
hsw=("falco" "leon" "mccloud" "monroe" "panther" "peppy" "tricky" "wolf" \
"zako");
bdw=("auron_paine" "auron_yuna" "gandof" "guado" "lulu" "rikku" "samus" \
"tidus");
byt=("banjo" "candy" "clapper" "enguarde" "glimmer" "gnawty" "heli" \
"kip" "ninja" "orco" "quawks" "squawks" "sumo" "swanky" "winky");
bsw=("banon" "celes" "cyan" "edgar" "kefka" "reks" "relm" \
"setzer" "terra" "ultima" "wizpig");
skl=("asuka" "caroline" "cave" "chell" "lars" "sentry")
kbl=("fizz")
if [ -z "$1" ]; then
build_targets=($(printf "%s " "${hsw[@]}" "${bdw[@]}" "${byt[@]}" "${snb_ivb[@]}" "${bsw[@]}" "${skl[@]}" "${kbl[@]}"));
else
build_targets=($@)
fi
for device in ${build_targets[@]}
do
filename="coreboot_tiano-${device}-mrchromebox_`date +"%Y%m%d"`.rom"
rm -f ~/dev/firmware/${filename}*
rm -rf ./build
cp configs/.config.${device}.uefi .config
make
cp ./build/coreboot.rom ./${filename}
cbfstool ${filename} print
sha1sum ${filename} > ${filename}.sha1
mv ${filename}* ~/dev/firmware/
if [ "${device}" == "peppy" ]; then
filename="coreboot_tiano-${device}_elan-mrchromebox_`date +"%Y%m%d"`.rom"
rm -rf ./build
sed -i 's/# CONFIG_ELAN_TRACKPAD_ACPI is not set/CONFIG_ELAN_TRACKPAD_ACPI=y/' .config
make
cp ./build/coreboot.rom ./${filename}
cbfstool ${filename} print
sha1sum ${filename} > ${filename}.sha1
mv ${filename}* ~/dev/firmware/
fi
done