Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable libnativehelper build in Ubuntu 16.04 LTS #39

Open
wants to merge 1,333 commits into
base: cm-14.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1333 commits
Select commit Hold shift + click to select a range
83324f5
build: Add support for additional kernel config snippet
Mar 9, 2015
81ea6db
build: Update install tools packaging for target-files support
Mar 11, 2015
caa45d6
"LMY47P"
Mar 17, 2015
cc61059
"LMY47Q"
Mar 21, 2015
33045be
"LMY47R"
Mar 26, 2015
e6358d0
Merge tag 'android-5.1.0_r3' of https://android.googlesource.com/plat…
Mar 27, 2015
9ef1170
DO NOT MERGE - Bump version to 5.1.1
Mar 26, 2015
60c5a09
"LMY47S"
Mar 27, 2015
3892a6c
"LMY47T"
Mar 31, 2015
7435a91
build: Use xxxhdpi recovery resources on 560dpi devices
Apr 1, 2015
b2bc140
"LMY47U"
Apr 1, 2015
eca626f
merge in lmp-mr1-nova-release history after reset to lmp-mr1-dev
Apr 1, 2015
3dc1ee2
"LVZ01"
Apr 1, 2015
8c3d038
"LVY47I"
Apr 1, 2015
a14c43f
"LVY47J"
Apr 1, 2015
2e6c7c4
qcom_utils: Add msm8992 and msm8994
Rashed97 Feb 25, 2015
a9c8e58
"LMY47V"
Apr 7, 2015
76db86a
"LMY47W"
Apr 7, 2015
e25f3e1
merge in lmp-mr1-nova-release history after reset to lmp-mr1-dev
Apr 7, 2015
a03e28a
"LVZ07"
Apr 7, 2015
b49345d
"LVY47K"
Apr 7, 2015
d014494
Add support for mediatek platforms
rmcc Sep 28, 2014
793c7e3
"LMY47X"
Apr 13, 2015
66314ea
merge in lmp-mr1-nova-release history after reset to lmp-mr1-dev
Apr 14, 2015
8ef7842
"LVY47X"
Apr 14, 2015
1e6e335
Merge tag 'android-5.1.0_r5' into HEAD
rmcc Apr 14, 2015
4f2b898
"LMY47Y"
Apr 15, 2015
3ad6920
build: Move bacon public key to device tree
mikeNG Mar 19, 2015
fc14b36
releasetools: add compatibility for full ota functions with incrementals
Mar 26, 2015
8c3cb90
ota_from_target_files: Fix path for SkipNextActionIfTargetExists
Mar 26, 2015
b1e4aad
ota: Include full boot images when imgdiff fails
Mar 28, 2015
ab8a78e
build/core: Define find-other-aidl-files.
Apr 15, 2015
a8cf30e
"LMY47Z"
Apr 16, 2015
0b02dd4
"LMY48B"
Apr 17, 2015
1665b85
build: releasetools: Support transparent compression
tdmcyngn Mar 23, 2015
db25482
merge in lmp-mr1-nova-release history after reset to lmp-mr1-dev
Apr 20, 2015
6775a97
"LVZ20"
Apr 20, 2015
5475640
"LVY47Z"
Apr 20, 2015
c599dca
Colorize more target file output
Apr 20, 2015
18e0064
Merge tag 'android-5.1.1_r1' of https://android.googlesource.com/plat…
Apr 21, 2015
91544cd
build: Add a couple more custom pathmap variables
Apr 21, 2015
67437a3
build: Add option to compress precompiled odex with gzip
Mar 30, 2015
5bd813f
"LVY48B"
Apr 24, 2015
11d1800
Generate extra userdata partition if needed
intervigilium Jun 2, 2014
bca602e
"LMY48C"
May 4, 2015
38deeee
"LMY48D"
May 6, 2015
212bf4c
build: Move msm899x FLAC metadata flag to qcom_utils.mk
Rashed97 May 1, 2015
7891efa
kernel: Fix kernelconfig build
mikeNG May 10, 2015
d445a0f
build/target: Include CM platform jar in system server.
Apr 27, 2015
1ade406
build/core: Create means of ignoring subdir layer for packages.
May 8, 2015
4e34e76
build: Add IGNORE_SUBDIR to clear vars.
May 13, 2015
cc943aa
build: Ignore filters on platform library.
May 13, 2015
5de47ce
build: Unset JAVA_TOOL_OPTIONS to read java version
mdmower May 4, 2015
546a5aa
"LMY48E"
May 14, 2015
c3cc5ec
Merge tag 'android-5.1.1_r3' into HEAD
rmcc May 20, 2015
13f696e
"LMY48F"
May 28, 2015
40be6ec
"LMY48G"
May 28, 2015
71a1e36
envsetup: add mk_timer
Apr 30, 2015
bf6582e
build: avoid recovery patch if device setup can't do it correctly
Hashcode Jun 1, 2015
6aef1fa
lunch: sort the choices
Apr 30, 2015
55ad5e9
envsetup: cleanup the full list
Apr 30, 2015
5a71557
"LMY48H"
Jun 2, 2015
751ae85
Allow dopush to load binaries onto the "wrong" device
Jun 4, 2015
7d01c1d
build/core: Inherit vendor/* makefiles for check-api.
May 27, 2015
c0b3f26
Remove LatinIME as it is included per target in vendor/cm
dhacker29 Jun 7, 2015
e362738
"LVY48C"
Jun 8, 2015
e260e26
"LVY48D"
Jun 8, 2015
35f57e9
build: Add the factorypackage target
defer Apr 3, 2015
ff3412c
otasigcheck: Extract the key
chirayudesai Jun 8, 2015
d944132
envsetup: repolastsync
mdmower Dec 29, 2013
2283792
minnow_max: search for cm.mk in additional directories
May 22, 2015
b8c066d
Really include drawables for all densities.
Jun 12, 2015
f9202f2
build: use common factory script and input more parameters
edwardwa Jun 26, 2015
c1f68ae
definitions.mk: look for definitions.mk in device/*/build also
Oct 28, 2014
e60ffef
"LMY48C"
May 4, 2015
4dc6a6a
"LMY48D"
May 6, 2015
e399b9d
"LMY48E"
May 14, 2015
37da509
"LMY48F"
May 28, 2015
2e33977
"LMY48G"
May 28, 2015
435b17f
Revert "build: use common factory script and input more parameters"
edwardwa Jun 29, 2015
bf3538c
Merge tag 'android-5.1.1_r6' into cm-12.1
rmcc Jul 4, 2015
e78b239
releasetools: Add support for LZMA in blockimgdiff
Jun 10, 2015
fa943a9
"LMY48I"
Jul 9, 2015
c13c1b2
build: Fix image creation for F2FS-only configuration
Jul 10, 2015
cd8cb89
build: Fix device detection for a few of the envsetup commands
Jul 10, 2015
0f1ef4b
tools:releasetools:Use timestamp from build.prop while building syste…
boedhack Mar 20, 2015
8ab3618
Revert "Disable -mcpu=cortex-a15 flag for krait"
Jul 12, 2015
808531f
AArch64: Addressing Cortex-A53 erratum 835769
Apr 11, 2015
1e8eaf9
arm64: Enable Cortex A53 Errata 843419, 835769 ldflags
Apr 15, 2015
1db3c6e
Allow setting the recovery density separately from the aapt config
chirayudesai Jul 15, 2015
8356ec9
misc_info: Add factory script location to misc_info when available
Jul 22, 2015
c445cc3
"LMY48J"
Jul 23, 2015
68d62a7
build: Allow packaging of factory image files into target files
Jul 23, 2015
7c80b85
"LVY48E"
Jul 27, 2015
f32f688
otatools: Add f2fs tools to otatools builds
Jul 30, 2015
a3ebc82
"LMY48K"
Jul 30, 2015
f50e3fb
otatools: Only build f2fs tools on Linux
Jul 31, 2015
f165cfb
LMY48L
Aug 5, 2015
5f0c751
build: Fix extra userdata generation
Aug 6, 2015
e65d775
build: Fix extra userdata generation some more
Aug 6, 2015
c85b14f
roomservice: use force-sync when adding projects with roomservice
Aug 12, 2015
64d3073
build/core: Allow EXTERNAL_CLEAN_TARGETS to dump vars.
Aug 14, 2015
3b9e3a3
"LMY48M"
Aug 14, 2015
09787c9
"LMY48N"
Aug 14, 2015
03ca3af
"LVY48F"
Aug 14, 2015
53fcd13
"LMY48O"
Aug 14, 2015
ba7e53f
build: Enable custom ccache cache dir for Android
mdmower Jun 10, 2015
cad7d3a
LMY48P
Aug 15, 2015
8dd9ea1
Apply correct, optimized mfpu compiler flag for ARMv7-A Cortex CPUs
arter97 Sep 9, 2014
5e33ceb
Move definition of -D__ARM_FEATURE_LPAE=1 cflag to top-level.
captain5050 Oct 15, 2014
abd57a2
Allow -mcpu=cortex-a15 for clang
Mar 25, 2015
de428e3
Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver
Mar 25, 2015
4ae8bf5
Force bsdiff for recovery_from_boot.p if not using GZIP
andi34 May 15, 2015
b817b6c
build: Enable A53 errata workarounds on targets that need it
Rashed97 Jul 13, 2015
01e44ce
Support custom gerrit servers via HTTP or SSH
Aug 4, 2015
0cf0a18
Change transfer list format to include block hashes
samitolvanen Dec 9, 2014
957f1ab
product: Let a device customize its own locales
rmcc Aug 15, 2015
080390f
Fix the error that free_string is not defined.
Mar 3, 2015
a195bcf
Do not use block_verify on target-files where feature is missing.
Feb 12, 2015
e1b7582
Restrict the verification in block-based incremental OTAs
Mar 12, 2015
8b7a6eb
Calculate max_stashed_blocks correctly for block OTA v3
samitolvanen Apr 17, 2015
52ffc46
Check partition hash before resorting to block_image_verify
samitolvanen Apr 24, 2015
bb4ab1e
Assert the stash size when generating OTAs.
May 21, 2015
407cfc7
Free the stash after its use in BBOTA v2.
Aug 13, 2015
8a26e16
Revise stash for BBOTAs when needed.
Aug 17, 2015
bcfca47
Change the cache partition size check into warnings.
Aug 8, 2015
24ddce3
build: kernel: arm64 uses Image.gz as the target
Jul 29, 2015
00cbe08
Adding msm8909 as a QCOM board platform
marado Aug 14, 2015
5b1e35c
LMY48Q
Sep 1, 2015
df45e9f
repopick: skip abandoned commits
jrior001 Aug 21, 2015
529e3b2
repopick: handle hardware_ril/ril-caf
Jul 20, 2015
12fe3d4
LMY48R
Sep 2, 2015
d2a49a4
LMY48S
Sep 2, 2015
8e9b8d2
LVY48G
Sep 2, 2015
7e980a7
Fix custom URL error. Merged from cm_build_config
Sep 1, 2015
e703199
repopick: open changes are either NEW or OPEN, not just OPEN
zifnab06 Sep 2, 2015
4ad2485
msm8909 uses the same branches as msm8916
marado Sep 2, 2015
665e136
Revert "msm8909 uses the same branches as msm8916"
intervigilium Sep 2, 2015
338b399
build: Allow QC platforms to share/customize HAL variants
Sep 2, 2015
91f91b8
build: allow using host flex binary
luca020400 Sep 7, 2015
2eeb136
releasetools: Fix the bug in symlink deletion.
Sep 2, 2015
f28d284
releasetools: Fix the bug when deleting files.
Sep 4, 2015
d7a213b
Add darwin support for f2fs host tools
Sep 3, 2015
5dee2dd
build: better zsh dopush support
romanbb Jul 20, 2015
1966a9e
build: Create a oem image when BOARD_OEMIMAGE_FILE_SYSTEM_TYPE is def…
defer Sep 4, 2015
c845e59
"LMY48T"
Sep 8, 2015
bd2ac50
"LVY48H"
Sep 8, 2015
cd811c3
"LMY48U"
Sep 8, 2015
a531281
"LMY48V"
Sep 9, 2015
f02693b
Merge tag 'android-5.1.1_r13' into cm-12.1
rmcc Sep 9, 2015
05bb2bb
repopick: print the status of a skipped cherry pick
invisiblek Sep 10, 2015
7598793
repopick: Update script with some fixes
Sep 10, 2015
6ff590d
Merge tag 'android-5.1.1_r18' into cm-12.1
rmcc Sep 10, 2015
58ff1ed
img_from_target_files: Skip oem.img in fastboot image creation
Sep 9, 2015
784fb8b
build: Separate commands in recovery foreach loops
mdmower Sep 8, 2015
1dd05bd
LMY48W
Sep 16, 2015
86ea4c8
Revert "build: better zsh dopush support"
romanbb Sep 21, 2015
521b58b
Revert "tools:releasetools:Use timestamp from build.prop while buildi…
Aug 20, 2015
c3afd0e
repopick: support projects which get checked out multiple times
Sep 25, 2015
53c5035
tools/device: Remove deprecated line
Jackeagle Sep 30, 2015
90e8653
build: Make sure we're building our secondary resource package as dep…
Sep 30, 2015
ca2a488
build: Fix import build step.
Oct 1, 2015
75cae05
Merge tag 'android-5.1.1_r23' into cm-12.1
rmcc Oct 5, 2015
ad9a2a8
Merge tag 'android-5.1.1_r24' into cm-12.1
rmcc Oct 6, 2015
f3f529b
Fix issie #23116383: Include security patch level in Settings
Aug 12, 2015
f828f55
Set the Security Patch level with Oct 1 for LP
mikeNG Oct 5, 2015
2f9989d
generate_extra_images: Look for 3.10 dtbs
bebarino Aug 22, 2013
a606db3
build: Generalize kernel DTB path
Dec 11, 2013
4754814
mka: allow mka to be run from anywhere in the tree
statik213 Oct 6, 2015
8237106
kernel: use merge-config.sh for integrating KERNEL_ADDITIONAL_CONFIG
Oct 15, 2015
9c32ee8
kernel: Don't update defconfig with KERNEL_ADDITIONAL_CONFIG options
Oct 16, 2015
9f5ee48
edify: Fix _WordWrap function calls
xdarklight Oct 20, 2015
7fc9ab7
envsetup: Show error when supplied dir isn't present with mmm
Oct 18, 2015
67416e9
build: Adjust for device-specific HAL paths
intervigilium Oct 29, 2015
efa52fa
generate_extra_images: Allow supplying arguments to dtbtool
mikeNG Oct 29, 2015
395b7ef
Splitting Ubuntu and Android boot and initrd images
Jan 9, 2014
4e7967f
Remove the need of signapk
sergiusens May 6, 2013
09dcb85
Makefile: using bsdiff from the host instead of building our own
Jan 9, 2014
ab9c823
Don't include libcompiler_rt by default, not needed
Jan 9, 2014
ba1aaef
Changing default build for a minimal build, only what is required by …
Jan 9, 2014
cb5c7f6
Start producing CWM recovery.
kubiko Jun 11, 2015
655d1cc
Adding support for the native Ubuntu androideabi toolchain
Jan 14, 2014
c494ff7
pull-lp-bin.py: add support to download the kernel package from a PPA
Jan 15, 2014
315ddd4
kernel.mk: adding kernel build rules from CM
Jan 15, 2014
b93c101
generic: reducing system image partition size
Jan 30, 2014
2117af3
build: also using sparse images for goldfish
Jan 31, 2014
78aef22
BoardConfig.mk: enabling kernel from the archive (generic/goldfish)
Feb 1, 2014
b77fe46
main.mk: Also adding qemu pc-bios when building the x86 emulator
Feb 10, 2014
1f8538a
revert task_kernel
mariogrip Nov 2, 2015
9f8f289
Allow x86 initrd and kernel packages
Feb 10, 2014
7c62f7e
Changing product brand and model for the emulators
Feb 13, 2014
0686e2f
kernel.mk: also publish the additional artifacts from the kernel package
Feb 28, 2014
b050a15
Prefer, if available, system-wide toolchain for target-x86 as well.
xnox Mar 4, 2014
2373caf
Do not build Android recovery OTA keys.
Mar 14, 2014
0b01293
Do not check for the JDK anymore.
Mar 14, 2014
ff7c7d1
Adding script to update the android system image on Ubuntu Touch
Mar 6, 2014
895e91f
Disable stack protector on x86, until our toolchain is fixed
Mar 27, 2014
7bfc34a
TARGET_linux-x86.mk: forcing -Wl,-Bsymbolic
May 5, 2014
40381ba
Dropping all device specific apns-conf file
May 26, 2014
de9a4f9
generic*: add recovery.fstab to make recovery-initrd bootable
xnox Jun 12, 2014
e6c5682
mkdevicetarball.sh: adding script to create a device tarball
Jul 20, 2014
12336c3
HOST_linux-x86: force 4.8 to avoid unexpected regressions
rsalveti Aug 5, 2014
1a9d224
mkdir $(TARGET_OUT)/boot first
vicamo Apr 29, 2015
48824e7
Fixing build error when moving to android-5.1
kubiko Jun 25, 2015
74d74a4
Adding extra build options
kubiko Jul 17, 2015
e8b95c4
Switching to nonsparse image for android system.img
kubiko Jul 17, 2015
e800485
Add necessarily projects for CM & Oneplus one
mariogrip Nov 9, 2015
c6635fd
Remove java build, since ubuntu touch does not use the java parts
mariogrip Feb 8, 2016
4e071a2
Build dtbs
mariogrip Feb 8, 2016
1330847
Not needed, this is for apk files
mariogrip Mar 18, 2016
46ebcd1
This is for apk, it's not needed
mariogrip Mar 18, 2016
9e72011
Remove apk
mariogrip Mar 18, 2016
7acc932
Update prebuilt_internal.mk
mariogrip Mar 18, 2016
95fb5c1
Skip build from source for now
mariogrip Mar 22, 2016
a913982
Add exfat
mariogrip Mar 22, 2016
5f965b5
Add fuse needed for exfat
mariogrip Mar 22, 2016
6a3b9ec
Add libtar needed for recovery
mariogrip Mar 22, 2016
1ec4807
Add lzma needed for recovery
mariogrip Mar 22, 2016
410d3cc
Update host_shared_library_internal.mk
mariogrip Mar 22, 2016
deec2e5
Build boot.img
mariogrip Apr 26, 2016
5019594
Disable -DQCOM_BSP
mariogrip Sep 6, 2016
368e785
main.mk: Add Fairphone directory for FP2
peat-psuwit Nov 13, 2016
49c8705
build: add external/connectivity
varunchitre15 Nov 13, 2016
8c7bb21
build: added external/libxml2
Nov 17, 2016
3959e7a
build: added external/bson, external/curl, external/libxml2 to main.mk
Nov 25, 2016
53b7d56
Disable build of zipalign due to 16.04 build errors
mariogrip Dec 28, 2016
e2ad5a5
build: Add audioflingerglue
mariogrip Dec 29, 2016
2ed33b0
Add subdirs for external/{iproute2,iptables}
alfonsosanchezbeato Jan 10, 2017
5d03e3a
Merge pull request #1 from alfonsosanchezbeato/add-net-subdirs
mariogrip Jan 10, 2017
d1fabbb
[kernel] build arm64 kernels
mariogrip Jan 28, 2017
5a23118
build: create dt.img task
luca020400 Oct 31, 2015
a53f6e4
[kernel] (fix commit message)
mariogrip Jan 31, 2017
6fff120
build: create dt.img task
luca020400 Oct 31, 2015
f725359
[dt] Do not use dt_image if BOARD_MKBOOTIMG_ARGS is defined
mariogrip Jan 31, 2017
c39c5ff
[dt] Do not use dt_image if BOARD_MKBOOTIMG_ARGS is defined
mariogrip Jan 31, 2017
fe76de0
Merge "build: create dt.img task" into ubp-5.1
mariogrip Feb 4, 2017
5282e03
Merge "[dt] Do not use dt_image if BOARD_MKBOOTIMG_ARGS is defined" i…
mariogrip Feb 4, 2017
91f16c7
(2/3) Make TimeKeep available to keep time offset
peat-psuwit Apr 5, 2017
d88c474
ubuntu: allow overriding initrd variables
vicamo Nov 25, 2016
6b3024f
ubuntu: add more params for initrd fetching
vicamo Nov 25, 2016
7baaf50
ubuntu: download prebuilt initrd from UBPorts' PPA.
peat-psuwit Jun 6, 2017
e6f8fc2
Add oneplus device folder
mariogrip Jun 7, 2017
13551fb
Merge branch 'ubp-5.1' of ssh://github.com/ubports/android_build into…
mariogrip Jun 7, 2017
4254eec
Makefile: correcting the use of INTERNAL_BOOTIMAGE_ARGS_COMMON
peat-psuwit Jun 12, 2017
5cef274
arm64 kernel Makefile fix
APokorny Jun 17, 2017
3832c79
kernel.mk: fix incorrect prefix name and variable setting.
peat-psuwit Jun 20, 2017
1046aa5
kernel.mk: change the variable for kernel toolchain path.
peat-psuwit Jun 20, 2017
0913791
core_base.mk: add CAMERA_SERVICE_WANT_UBUNTU_HEADERS
peat-psuwit Aug 19, 2020
ba6e32c
Merge pull request #3 from peat-psuwit/ubp-5.1_camera-service-want-ub…
Flohack74 Aug 26, 2020
cc02209
Update pull-lp-bin.py for python3
UniversalSuperBox Dec 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CleanSpec.mk
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/*)

# 5.1.1!
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/*)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/*)

$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop)

# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
680 changes: 596 additions & 84 deletions core/Makefile

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions core/apicheck_msg_current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,77 @@ To make these errors go away, you have two choices:
2) You can update current.txt by executing the following command:
make update-api

^^^^^^^^^^^^^^^^^^
CONGRATS YOU EARNED A QUAIL STAR!

M
MM
MMM
M.MM
MM M
7M MM
MMMMM MMMMM
MMMMM .MMMMM
MMMM MMMM
MM M
MM M .M
M+M MMMM
.M++MM .MM
MM+++MM MM
8NNNNN MM+++++MM
NNNN $Z8. MM+++++MM MM
MM $Z8M7IMNN+++++MM MM
.$$$D ~NNMNN+++++MM MMMM
INNNNM NMNM++++++M M M
NNO:NI=MM+++++++MM MM MM
8M$MMMMMD?+++++++MM .MMMMMMMMMMMMMMM MMMMN MMMMM
M$$NMMMMMM$++++++++MMMMMMM=+++++++++++++MM MMMMM MMMMM
M77$IMMMMMN.,+++++++++++++++++++++++++++MM .MMMMM MMMMM
.??I8,?M777OM.?+++++++++++++++++++++++++MM MM MM
O==?M7MM$MMI7$.~M+++++++++++++++++++++++MM .M M
NMMM+~M??MMMMMMMMMMMI$$++++++++++++++++++++MM MMMM
MMMM++++MM~=+I$OMMMOO?7M$Z$$$+++++++++++++++++MM MM
NMMM++++++++~~MO~7$OM8O8OMZZ$Z$M$$M++++++++++++++MM7MMM MM
MMMM++++++++++++==D~M~:8N88MMOMMZDM$$Z$$M+++++++++++MM77777MMM
MMM+++++++++++++++~MM~~M $O,NM88MOMMZ$$MM$$$+++++++++MM777777777MMMM
MMM++++++++++++M~M~IMMMO888NMOMMOZM$ZZDZ$$+++++++MM7777777777777OMMZ
MMM+++++++++++~~M~~MDOOMMO8NOOOOZZ$$Z.Z$$M++++MM77777777777777777MMM
MMM++++++++M.Z, D+ 8O88M8D,OOMDZZ$D.$$$N+++M7MMMMMD77777777777777MMM
.MM+++++++MM:.D:ZMMM8888OOOOOOZZ$ND$$$M++MM777777MMMM7777777777777MMD
MMM+++++~M.$.M~,~7M8?MON MOOZZ$$N$$$M++MD777777777MMMM77777777777MMM
MM=+++=ZMZ.MM MMZOOOO88OOZM$M.$$$$+++M7777777777777MMMM7777777777MM
MMM++MM~,,$M.+~M$OOMOOMZMI$$$$$$$++MM7777777777777777MMM777777777MM
MM++++=. ~$$.$.M~M$MZOM7MMZ$$$$$$++MMMMMMD7777777777777MMMI7777777MMM
.M++++++MM+OMI$7M??N+OZM8MMMD$$M$$++M77777MMMMN77777777777MMM7777777MMM
M++++++++M+=?+++++++++++MNMZN$$N$$+MM777777777MMMM7777777777MMM777777MM,
M+++++M=?7$$M+++++++++++++++$NO$$$$+M7777777777777MMMM777777777MMM77777MM
M++~M$M$M+++++M++MMM++++++++++M=$$D$MMMMMMMM7777777777MMM$7777777MMM77777MM
M+M$$$M+++++++++MM MMMMM+++++++M$Z$$M MMMMMI7777777MMMM7777777MM77777MM
M++7NMIN++Z++NMM MMMMM+++N$M$M MMMM7777777MMM777777MM$777MM
M=++8+++++++MM MMMMMZ$M$M MMMM777777MMM77777MMZ777MM
MM++++++++MM MM$ MMM77777MMM77777MM7777MM
MM++++++MM MMMM7777MMM7777MM777MM
MM++++MMM .MMM7777MM7777MM77$M
MM+++MM M MMM777MMN777MM77MM
NM+MM M MMM77MMM77NMM7MM
MM MM MMM77MMM77MM77M
.MMM MMM7MMM7IMM7MM
MM M MMM7MMM7MM7MM
M MM MM7MMN7MMMM
MMMM MMMM MMMMMIMMMM
MMMM. MMMMM MMMMMMMMM
MMMMM MMMMM MMMMMMMM
MM MM OMMMMMM
M MM MMMMMM
MM M MMMMM
MMM MMM
MM MM
M


NO. NO. STOP BEING LAZY. SERIOUSLY.
DO NOT DO THIS in CM. THIS IS A LIE. IT WILL BREAK THINGS.

To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
Expand Down
8 changes: 4 additions & 4 deletions core/base_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))
# Apk and its attachments reside in its own subdir.
ifeq ($(LOCAL_MODULE_CLASS),APPS)
# framework-res.apk doesn't like the additional layer.
ifneq ($(LOCAL_NO_STANDARD_LIBRARIES),true)
ifeq ($(filter true,$(LOCAL_NO_STANDARD_LIBRARIES) $(LOCAL_IGNORE_SUBDIR)),)
my_module_path := $(my_module_path)/$(LOCAL_MODULE)
endif
endif
Expand Down Expand Up @@ -485,7 +485,7 @@ $(cleantarget) : PRIVATE_CLEAN_FILES := \
$(LOCAL_INSTALLED_MODULE) \
$(intermediates)
$(cleantarget)::
@echo "Clean: $(PRIVATE_MODULE)"
@echo -e ${CL_GRN}"Clean:"${CL_RST}" $(PRIVATE_MODULE)"
$(hide) rm -rf $(PRIVATE_CLEAN_FILES)

###########################################################
Expand Down Expand Up @@ -547,12 +547,12 @@ ifndef LOCAL_UNINSTALLABLE_MODULE
$(LOCAL_INSTALLED_MODULE): PRIVATE_POST_INSTALL_CMD := $(LOCAL_POST_INSTALL_CMD)
ifneq ($(LOCAL_ACP_UNAVAILABLE),true)
$(LOCAL_INSTALLED_MODULE): $(LOCAL_BUILT_MODULE) | $(ACP)
@echo "Install: $@"
@echo -e ${CL_CYN}"Install: $@"${CL_RST}
$(copy-file-to-new-target)
$(PRIVATE_POST_INSTALL_CMD)
else
$(LOCAL_INSTALLED_MODULE): $(LOCAL_BUILT_MODULE)
@echo "Install: $@"
@echo -e ${CL_CYN}"Install: $@"${CL_RST}
$(copy-file-to-target-with-cp)
endif

Expand Down
16 changes: 10 additions & 6 deletions core/binary.mk
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ ifeq ($(strip $($(LOCAL_2ND_ARCH_VAR_PREFIX)WITHOUT_$(my_prefix)CLANG)),true)
endif

# Add in libcompiler_rt for all regular device builds
ifeq (,$(LOCAL_SDK_VERSION)$(LOCAL_IS_HOST_MODULE)$(WITHOUT_LIBCOMPILER_RT))
my_static_libraries += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES)
endif
#ifeq (,$(LOCAL_SDK_VERSION)$(LOCAL_IS_HOST_MODULE)$(WITHOUT_LIBCOMPILER_RT))
# my_static_libraries += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES)
#endif

my_compiler_dependencies :=

Expand Down Expand Up @@ -329,7 +329,6 @@ ifneq ($(LOCAL_NO_SYNTAX_CHECK),true)
endif
endif
$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CXX := $(my_cxx)
$(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_CLANG := $(my_clang)

# TODO: support a mix of standard extensions so that this isn't necessary
LOCAL_CPP_EXTENSION := $(strip $(LOCAL_CPP_EXTENSION))
Expand Down Expand Up @@ -787,7 +786,7 @@ import_includes_deps := $(strip \
$(foreach l, $(my_static_libraries) $(my_whole_static_libraries), \
$(call intermediates-dir-for,STATIC_LIBRARIES,$(l),$(LOCAL_IS_HOST_MODULE),,$(LOCAL_2ND_ARCH_VAR_PREFIX))/export_includes))
$(import_includes) : $(import_includes_deps)
@echo Import includes file: $@
@echo -e ${CL_CYN}Import includes file:${CL_RST} $@
$(hide) mkdir -p $(dir $@) && rm -f $@
ifdef import_includes_deps
$(hide) for f in $^; do \
Expand Down Expand Up @@ -818,6 +817,11 @@ normal_objects := \

all_objects := $(normal_objects) $(gen_o_objects)

## Allow a device's own headers to take precedence over global ones
ifneq ($(TARGET_SPECIFIC_HEADER_PATH),)
my_c_includes := $(TOPDIR)$(TARGET_SPECIFIC_HEADER_PATH) $(my_c_includes)
endif

my_c_includes += $(TOPDIR)$(LOCAL_PATH) $(intermediates) $(generated_sources_dir)

ifndef LOCAL_SDK_VERSION
Expand Down Expand Up @@ -982,7 +986,7 @@ export_includes := $(intermediates)/export_includes
$(export_includes): PRIVATE_EXPORT_C_INCLUDE_DIRS := $(LOCAL_EXPORT_C_INCLUDE_DIRS)
# Make sure .pb.h are already generated before any dependent source files get compiled.
$(export_includes) : $(LOCAL_MODULE_MAKEFILE) $(proto_generated_headers)
@echo Export includes file: $< -- $@
@echo -e ${CL_CYN}Export includes file:${CL_RST} $< -- $@
$(hide) mkdir -p $(dir $@) && rm -f $@
ifdef LOCAL_EXPORT_C_INCLUDE_DIRS
$(hide) for d in $(PRIVATE_EXPORT_C_INCLUDE_DIRS); do \
Expand Down
2 changes: 1 addition & 1 deletion core/build_id.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# (like "CRB01"). It must be a single word, and is
# capitalized by convention.

export BUILD_ID=LMP
export BUILD_ID=LMY48W
2 changes: 1 addition & 1 deletion core/checktree
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python -E
#!/usr/bin/env python -E

import sys, os, re

Expand Down
2 changes: 1 addition & 1 deletion core/clang/arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ CLANG_CONFIG_arm_UNKNOWN_CFLAGS := \
define subst-clang-incompatible-arm-flags
$(subst -march=armv5te,-march=armv5t,\
$(subst -march=armv5e,-march=armv5,\
$(subst -mcpu=cortex-a15,-march=armv7-a,\
$(subst -mfpu=neon-vfpv4,-mfpu=neon,\
$(1))))
endef
5 changes: 5 additions & 0 deletions core/clang/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ CLANG_CONFIG_EXTRA_CFLAGS += \
CLANG_CONFIG_EXTRA_CFLAGS += \
-Werror=int-conversion

# Workaround for ccache with clang.
# See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html.
CLANG_CONFIG_EXTRA_CFLAGS += \
-Wno-unused-command-line-argument

CLANG_CONFIG_UNKNOWN_CFLAGS := \
-funswitch-loops \
-fno-tree-sra \
Expand Down
5 changes: 3 additions & 2 deletions core/cleanbuild.mk
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ installclean_files := \
$(PRODUCT_OUT)/*.xlb \
$(PRODUCT_OUT)/*.zip \
$(PRODUCT_OUT)/kernel \
$(PRODUCT_OUT)/*.zip.md5sum \
$(PRODUCT_OUT)/data \
$(PRODUCT_OUT)/skin \
$(PRODUCT_OUT)/obj/APPS \
Expand Down Expand Up @@ -232,13 +233,13 @@ endif
dataclean: FILES := $(dataclean_files)
dataclean:
$(hide) rm -rf $(FILES)
@echo "Deleted emulator userdata images."
@echo -e ${CL_GRN}"Deleted emulator userdata images."${CL_RST}

.PHONY: installclean
installclean: FILES := $(installclean_files)
installclean: dataclean
$(hide) rm -rf $(FILES)
@echo "Deleted images and staging directories."
@echo -e ${CL_GRN}"Deleted images and staging directories."${CL_RST}

ifeq "$(force_installclean)" "true"
$(info *** Forcing "make installclean"...)
Expand Down
3 changes: 3 additions & 0 deletions core/clear_vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ LOCAL_MODULE_STEM_64:=
LOCAL_CLANG_32:=
LOCAL_CLANG_64:=

# Include any vendor specific clear_vars.mk file
-include $(TOPDIR)vendor/*/build/core/clear_vars.mk

# Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
# iterate over thousands of entries every time.
# Leave the current makefile to make sure we don't break anything
Expand Down
20 changes: 14 additions & 6 deletions core/combo/HOST_darwin-x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ $(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX := $($(combo_2nd_arch_prefix)HOST_
ifneq (,$(strip $(wildcard $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)-gcc)))
$(combo_2nd_arch_prefix)HOST_CC := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)-gcc
$(combo_2nd_arch_prefix)HOST_CXX := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)-g++
ifneq ($(filter 10.8 10.9, $(mac_sdk_version)),)
# Mac SDK 10.8+ no longer has stdarg.h, etc
host_toolchain_header := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_ROOT)/lib/gcc/i686-apple-darwin$(gcc_darwin_version)/4.2.1/include

ifeq ($(mac_sdk_version), $(filter $(mac_sdk_version), 10.8 10.9 10.10))
# Mac SDK 10.8 and later does not have stdarg.h, etc
host_toolchain_header := $(HOST_TOOLCHAIN_ROOT)/lib/gcc/i686-apple-darwin$(gcc_darwin_version)/4.2.1/include
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -isystem $(host_toolchain_header)
endif
$(combo_2nd_arch_prefix)HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_root)/usr/include/c++/4.2.1
endif # $(mac_sdk_version)

else
$(combo_2nd_arch_prefix)HOST_CC := gcc
$(combo_2nd_arch_prefix)HOST_CXX := g++
Expand All @@ -66,7 +69,7 @@ $(combo_2nd_arch_prefix)HOST_JNILIB_SUFFIX := .jnilib
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += \
-include $(call select-android-config-h,darwin-x86)

ifneq ($(filter 10.7 10.7.% 10.8 10.8.%, $(build_mac_version)),)
ifneq ($(filter 10.7 10.7.% 10.8 10.8.% 10.9 10.9.% 10.10 10.10.%, $(build_mac_version)),)
$(combo_2nd_arch_prefix)HOST_RUN_RANLIB_AFTER_COPYING := false
else
$(combo_2nd_arch_prefix)HOST_RUN_RANLIB_AFTER_COPYING := true
Expand Down Expand Up @@ -116,5 +119,10 @@ endef

# $(1): The file to check
define get-file-size
stat -f "%z" $(1)
GSTAT=$(which gstat) ; \
if [ ! -z "$GSTAT" ]; then \
gstat -c "%s" $(1) ; \
else \
stat -f "%z" $(1) ; \
fi
endef
11 changes: 7 additions & 4 deletions core/combo/HOST_darwin-x86_64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ HOST_TOOLCHAIN_PREFIX := $(HOST_TOOLCHAIN_ROOT)/bin/i686-apple-darwin$(gcc_darwi
ifneq (,$(strip $(wildcard $(HOST_TOOLCHAIN_PREFIX)-gcc)))
HOST_CC := $(HOST_TOOLCHAIN_PREFIX)-gcc
HOST_CXX := $(HOST_TOOLCHAIN_PREFIX)-g++
ifneq ($(filter 10.8 10.9, $(mac_sdk_version)),)
# Mac SDK 10.8+ no longer has stdarg.h, etc

ifeq ($(mac_sdk_version), $(filter $(mac_sdk_version), 10.8 10.9 10.10))
# Mac SDK 10.8 and later does not have stdarg.h, etc
host_toolchain_header := $(HOST_TOOLCHAIN_ROOT)/lib/gcc/i686-apple-darwin$(gcc_darwin_version)/4.2.1/include
HOST_GLOBAL_CFLAGS += -isystem $(host_toolchain_header)
endif
HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_root)/usr/include/c++/4.2.1
endif # $(mac_sdk_version)

else
HOST_CC := gcc
HOST_CXX := g++
Expand All @@ -65,7 +68,7 @@ HOST_JNILIB_SUFFIX := .jnilib
HOST_GLOBAL_CFLAGS += \
-include $(call select-android-config-h,darwin-x86)

ifneq ($(filter 10.7 10.7.% 10.8 10.8.%, $(build_mac_version)),)
ifneq ($(filter 10.7 10.7.% 10.8 10.8.% 10.9 10.9.% 10.10 10.10.%, $(build_mac_version)),)
HOST_RUN_RANLIB_AFTER_COPYING := false
else
HOST_RUN_RANLIB_AFTER_COPYING := true
Expand Down
6 changes: 3 additions & 3 deletions core/combo/HOST_linux-x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
# Included by combo/select.mk

ifeq ($(strip $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)),)
$(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX := prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-
$(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX := /usr/bin
endif
# Don't do anything if the toolchain is not there
ifneq (,$(strip $(wildcard $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)gcc)))
$(combo_2nd_arch_prefix)HOST_CC := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)gcc
$(combo_2nd_arch_prefix)HOST_CXX := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)g++
HOST_CC := $(HOST_TOOLCHAIN_PREFIX)/gcc-4.8
HOST_CXX := $(HOST_TOOLCHAIN_PREFIX)/g++-4.8
$(combo_2nd_arch_prefix)HOST_AR := $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)ar
endif # $($(combo_2nd_arch_prefix)HOST_TOOLCHAIN_PREFIX)gcc exists

Expand Down
8 changes: 7 additions & 1 deletion core/combo/TARGET_linux-arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ include $(BUILD_SYSTEM)/combo/fdo.mk

# You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else
ifeq ($(strip $($(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX)),)
ifneq (,$(wildcard /usr/bin/arm-linux-androideabi-*))
$(combo_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT := /usr/bin
$(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX := $($(combo_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT)/arm-linux-androideabi-
else
$(combo_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT := prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-$($(combo_2nd_arch_prefix)TARGET_GCC_VERSION)
$(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX := $($(combo_2nd_arch_prefix)TARGET_TOOLCHAIN_ROOT)/bin/arm-linux-androideabi-
endif
endif

$(combo_2nd_arch_prefix)TARGET_CC := $($(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX)
$(combo_2nd_arch_prefix)TARGET_CXX := $($(combo_2nd_arch_prefix)TARGET_TOOLS_PREFIX)g++$(HOST_EXECUTABLE_SUFFIX)
Expand Down Expand Up @@ -196,7 +201,8 @@ define $(combo_2nd_arch_prefix)transform-o-to-shared-lib-inner
$(hide) $(PRIVATE_CXX) \
-nostdlib -Wl,-soname,$(notdir $@) \
-Wl,--gc-sections \
$(if $(filter true,$(PRIVATE_CLANG)),-shared,-Wl,-shared) \
-Wl,-shared,-Bsymbolic \
-shared \
$(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
$(PRIVATE_ALL_OBJECTS) \
Expand Down
3 changes: 2 additions & 1 deletion core/combo/TARGET_linux-arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ define transform-o-to-shared-lib-inner
$(hide) $(PRIVATE_CXX) \
-nostdlib -Wl,-soname,$(notdir $@) \
-Wl,--gc-sections \
$(if $(filter true,$(PRIVATE_CLANG)),-shared,-Wl,-shared) \
-Wl,-shared,-Bsymbolic \
-shared \
$(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
$(PRIVATE_ALL_OBJECTS) \
Expand Down
3 changes: 2 additions & 1 deletion core/combo/TARGET_linux-mips.mk
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ define $(combo_2nd_arch_prefix)transform-o-to-shared-lib-inner
$(hide) $(PRIVATE_CXX) \
-nostdlib -Wl,-soname,$(notdir $@) \
-Wl,--gc-sections \
$(if $(filter true,$(PRIVATE_CLANG)),-shared,-Wl,-shared) \
-Wl,-shared,-Bsymbolic \
-shared \
$(PRIVATE_TARGET_GLOBAL_LD_DIRS) \
$(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \
$(PRIVATE_ALL_OBJECTS) \
Expand Down
Loading