-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
exports
60 lines (45 loc) · 2 KB
/
exports
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
# ENTER CHROOT (Substitute for where //chromium actually is on your machine.)
cros_sdk --enter --chrome_root=/home/alex/chromium
# UPDATE YOUR CHECKOUT (run both outside chroot)
repo rebase
repo sync -j4
## EXPORT COMMANDS
export BOARD=amd64-frick &&
export NINJA_SUMMARIZE_BUILD=1 &&
export CHROME_ORIGIN=LOCAL_SOURCE &&
export CHROME_BUILD_TYPE='_official' &&
export OFFICIAL_BUILD='1' &&
export BUILDTYPE=Release
# BUILD COMMANDS
sudo emerge app-misc/rdfind &&
sudo emerge net-print/cups &&
sudo emerge net-wireless/b43-fwcutter
setup_board --board=${BOARD}
cros_workon --board=${BOARD} start sys-kernel/chromeos-kernel-6_6 &&
cros_workon --board=${BOARD} start chromeos-base/easy-unlock &&
cros_workon --board=${BOARD} start chromeos-base/chromiumos-assets &&
cros_workon --board=${BOARD} start chromeos-base/chromeos-login &&
cros_workon --board=${BOARD} start chromeos-base/oobe_config &&
cros build-packages --board=${BOARD} --no-withdebug --no-withautotest &&
cros build-image --board=${BOARD} --no-enable-rootfs-verification dev
# Location of chrome
/home/alex/chromiumos/out/sdk/cache/chromeos-chrome/chrome-src/src/out_amd64-frick/Release/
#setup_board --board=${BOARD} --force &&
#cros build-packages --board=${BOARD} --no-withdebug --no-withautotest --cleanbuild
# LIST CURRENT CROS_WORKON PACKAGES.
cros_workon --board=${BOARD} list
# FLASH TO USB
cros flash usb:// ${BOARD}/latest
# INSTALL ON TARGET MACHINE (Ctrl+Alt+F2, then login with 'chronos', then run this, substituting /dev/sda for target device.)
/usr/sbin/chromeos-install --dst /dev/sda
# MOUNT IMAGE AND UNMOUNT
# Update /etc/lsb-release with name
./mount_gpt_image.sh --board=${BOARD} --most_recent --noread_only --nosafe
./mount_gpt_image.sh --board=${BOARD} --unmount
# DELETE BOARD
sudo rm -rf /build/${BOARD}
# DELETE CHROOT
cros_sdk --delete
# You can't build chrome with win set as a target_os in //chromium/.gclient
/home/alex/chromium/src/third_party/depot_tools/win_toolchain/README.md
/home/alex/chromiumos/src/platform2/hiberman/README.md