Open killmind opened 4 years ago
@fydeos-alpha Could you help, sir?
I encount the same problem.
Remove CHROME_ORIGIN=LOCAL_SOURCE
from make.conf
will make it easier.
Removed CHROME_ORIGIN=LOCAL_SOURCE
. It started to download source code from google server. But it did start to build without complicated configuation and syncing.
@killmind what's your meaning of "build without complicated configuration and syncing"?
When you clone the repository of chrome brower locally, it seems you would need to run sync_chrome
manually to that local copy. I'm still investigating it.
I think the guide should be integral with everything inside to avoid confusion for beginners. The raspberry_pi overy uses local source, which needs download chromium code first, and mount with cros_sdk.
To get chromium code
fetch --nohooks chromium
If it is broken, run this to continue or sync later.
gclient sync
There's problem to get WebRTC branch, and you may have to add this into ~/.gitconfig
[remote "origin"]
fetch = +refs/branch-heads/*:refs/branch-heads/*
To sync with specific tag to match with raspbarry_pi overlay like r77, you need do this in chromium code, after first code syncing.
cd src
git checkout 77.0.3865.126
cd ..
gclient sync
After syncing, adding this line to end of .gclient in parent of src directory
target_os = ['chromeos']
Then you run cros_sdk to mount local chromium source code
cros_sdk --chrome-root ${chromium_path}
In cros_sdk environment, you could see chromium code mounted at /home/${your_account}/chrome_root directory. Then you can run build_packages or use "emerge-${BOARD} chromeos-base/chromeos-chrome" to build chromium.
Instructions added to README. Thank you @haiyanghaiyang
I noticed that in file
overlay-rpi3/make.conf
the way of building browser is set to local.CHROME_ORIGIN=LOCAL_SOURCE
. Then I cloned a copy of chrome source code and put it in, and sync the code by commandBy restarting build_parckage, cros_sdk found the browser souce code, but reported an error like this:
Do I need to set any other configuration to build the OS together with browser? It's not a problem for me whether CHROME_ORIGIN is LOCAL_SOURCE or from server. I simply want to build a image by myself. Thanks!