-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathNOTES.txt
152 lines (128 loc) · 4.79 KB
/
NOTES.txt
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# FOR MY USE ONLY
cros-317118
# Set amd64-frick as board in eclass
chromiumos/src/third_party/chromiumos-overlay/eclass/cros-board.eclass
# REMEMBER TO SET ALEX NAME IN /etc/lsb-release!
# REMEMBER TO COPY chromeos-base/chromeos-chrome FILES!
# "is_official_build=true" > chromeos-base/chrome-icu
# API_KEYS > chromeos-base/chromeos-chrome
# make.defaults.sdk : //chromiumos/src/third_party/chromiumos-overlay/profiles/targets/sdk/make.defaults
# KERNEL CONFIG
/home/alex/chromiumos/src/third_party/kernel/v6.6/chromeos/config/chromeos/x86_64
chromeos-x86_64-reven.flavour.config
CONFIG_LOCK_DOWN_KERNEL_FORCE_INTEGRITY=n
CONFIG_LSM="landlock,yama,loadpin,safesetid,integrity,chromiumos,selinux"
CONFIG_SECURITY_LOCKDOWN_LSM=n
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY=n
CONFIG_SENSORS_IT87=m
# COMPILER OPTIMIZATIONS
-O3 -pipe -mavx -maes
-Wl,-O3 -Wl,--lto-O3
-Copt-level=3 -Ctarget-feature=+sse3,+sse4,+aes,+avx
mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 aes avx
# FILES TO MODIFY FOR COMPILER OPTIMIZATIONS
third_party/portage-stable/profiles/arch/amd64/make.defaults
chromiumos-overlay/profiles/arch/amd64/make.defaults
chromiumos-overlay/profiles/default/linux/make.defaults
chromiumos-overlay/profiles/targets/chromeos/make.defaults
chromiumos-overlay/profiles/targets/sdk/make.defaults
chromiumos-overlay/chromeos/config/make.conf.common
chromiumos-overlay/chromeos/config/make.conf.generic-target
# CHROMEOS-CHROME EBUILD MODIFICATIONS
widevine
-Official
libassistant
/home/alex/chromium/src/ash/webui/ demo app, help app, and sample app
chrome_targets+=( app_shell ) > chrome_targets+=( app_shell chrome content_shell)
"is_official_build=true"
"thin_lto_enable_cache=true"
"enable_stripping=true"
"dcheck_always_on=false"
"exclude_unwind_tables=true"
"enable_iterator_debugging=false"
"disable_fieldtrial_testing_config=true"
"enable_resource_allowlist_generation=false"
"enable_profiling=false"
"is_component_build=false"
"symbol_level=0"
"enable_nacl=true"
"optimize_webui=true"
"enable_webui_tab_strip=true"
"treat_warnings_as_errors=false"
"use_lld=true"
"v8_symbol_level=0"
"v8_enable_fast_torque=true"
"blink_symbol_level=0"
"enable_precompiled_headers=false"
"media_use_ffmpeg=true"
"media_use_libvpx=true"
"enable_hls_demuxer=true"
"enable_ink=false"
"enable_discovery=true"
"enable_cros_media_app=false"
"enable_ffmpeg_video_decoders=true"
"is_component_ffmpeg=false"
"use_webaudio_ffmpeg=false"
"use_webaudio_pffft=true"
"use_vaapi=true"
"enable_widevine=$(usetf widevine)"
"bundle_widevine_cdm=true"
"ignore_missing_widevine_signing_cert=true"
"enable_media_drm_storage=true"
"enable_hangout_services_extension=true"
"rtc_use_h264=true"
"rtc_include_ilbc=true"
"rtc_build_examples=false"
"rtc_use_pipewire=false"
"enable_vr=true"
"enable_platform_hevc=true"
"enable_hevc_parser_and_hw_decoder=true"
"platform_has_optional_hevc_support=true"
"enable_platform_ac3_eac3_audio=true"
"enable_platform_ac4_audio=false"
"enable_platform_dolby_vision=true"
"enable_platform_encrypted_dolby_vision=true"
"enable_platform_mpeg_h_audio=true"
"enable_platform_dts_audio=true"
"enable_mse_mpeg2ts_stream_parser=true"
"use_text_section_splitting=true"
"use_thin_lto=true"
"thin_lto_enable_optimizations=true"
"init_stack_vars_zero=true"
# WIDEVINE PATCH
under if [[ -f "${GAPI_CONFIG_FILE}" ]]; then
add_api_keys "${GAPI_CONFIG_FILE}"
fi
fi
if [[ "${CHROME_ORIGIN}" == "LOCAL_SOURCE" ]]; then
use widevine && patch_widevine
fi
under "google_default_client_secret=${client_secret}"
)
}
patch_widevine() {
info "patching for widevine..."
local target_dir="${CHROME_ROOT}/src/third_party/widevine/cdm/chromeos/x64"
local bin_file="${target_dir}/libwidevinecdm.so"
if [ ! -f ${bin_file} ]; then
mkdir -p $target_dir || true
cp ${FILESDIR}/widevine/widevine_cdm_version.h $target_dir || die "Could not copy file to $target_dir"
cp ${FILESDIR}/widevine/manifest.json $target_dir || die "Could not copy file to $target_dir"
cp ${FILESDIR}/widevine/libwidevinecdm.so $target_dir || die "Could not copy file to $bin_file"
fi
}
--- a/third_party/widevine/cdm/widevine.gni
+++ b/third_party/widevine/cdm/widevine.gni
@@ -12,7 +12,9 @@ declare_args() {
# on Android and Fuchsia platforms.
# Can be optionally enabled in Chromium on non-Android platforms. Please see
# //src/third_party/widevine/LICENSE file for details.
- enable_widevine = (is_chrome_branded && !is_fuchsia) || is_android
+ enable_widevine = true
# Disable Widevine when running linux-chromeos.
@@ -53,7 +55,7 @@ assert(!enable_media_foundation_widevine_cdm || is_win)
declare_args() {
# Widevine CDM is bundled as part of Google Chrome builds.
- bundle_widevine_cdm = enable_library_widevine_cdm && is_chrome_branded
+ bundle_widevine_cdm = true
}