Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
ff2bb7c5
Commit
ff2bb7c5
authored
10 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Override default Gecko LMK settings for low-memory targets"
parents
67bb86b2
eb2a7273
No related branches found
Branches containing commit
Tags
LF.BR.1.2.3-15400-8x09.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Android.mk
+22
-0
22 additions, 0 deletions
Android.mk
with
22 additions
and
0 deletions
Android.mk
+
22
−
0
View file @
ff2bb7c5
...
...
@@ -61,3 +61,25 @@ $(foreach file,$(GAIA_DISTRIBUTION_SRC_FILES),\
$(
eval
$(
call mk_gaia_distribution_file,
$(
file
)
,
$(
GAIA_DISTRIBUTION_DIR
)
/
$(
notdir
$(
file
)))))
endif
ifeq
($(TARGET_USES_265MB_CONFIG), true)
# Gecko low-memory killer setting overrides
#
# It would be nice to use PRODUCT_COPY_FILES here instead but that is not
# currently possible due to various |rm -rf ...| commands in
# {gaia,gonk-misc}/Android.mk that Make does not know about.
#
$(TARGET_OUT)/gecko
:
gaia/profile/defaults/pref/lmk.js
.PHONY
:
gaia/profile/defaults/pref/lmk.js
gaia/profile/defaults/pref/lmk.js
:
gaia/profile.tar.gz
mkdir
-p
$(
@D
)
echo
'// Give background applications more headroom'
>
$@
echo
'pref("hal.processPriorityManager.gonk.BACKGROUND.KillUnderKB", 14336);'
>>
$@
echo
'// Notify low memory between BACKGROUND and BACKGROUND_HOMESCREEN'
>>
$@
echo
'pref("hal.processPriorityManager.gonk.notifyLowMemUnderKB", 12288);'
>>
$@
echo
'// Kill the preallocated process before any foreground app (FOREGROUND_KEYBOARD)'
>>
$@
echo
'pref("hal.processPriorityManager.gonk.PREALLOC.OomScoreAdjust", 300);'
>>
$@
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment