Commit Graph

19954 Commits

Author SHA1 Message Date
Treehugger Robot 7e87c72fb0 Merge "Moving system_other key into product.img" 2019-03-21 04:26:21 +00:00
Anton Hansson 3f0f3d447e Merge "Fix the product-graph target" am: 2cad3f68c2 am: 0e941107d4
am: fe21a3cc76

Change-Id: I7b74cd0ddd6f8f9169ecb2e5b478b461a423797b
2019-03-20 10:57:38 -07:00
Anton Hansson fe21a3cc76 Merge "Fix the product-graph target" am: 2cad3f68c2
am: 0e941107d4

Change-Id: I532416a6c390a2e0ea0414a19049daedff1ca003
2019-03-20 10:54:26 -07:00
Anton Hansson 0e941107d4 Merge "Fix the product-graph target"
am: 2cad3f68c2

Change-Id: I02d010e837752ef4483a0c0fab06b3f5a8f863fa
2019-03-20 10:49:18 -07:00
Anton Hansson 2cad3f68c2 Merge "Fix the product-graph target" 2019-03-20 17:31:41 +00:00
Dan Willemsen 2e79dafed1 Stop installing host packages via PRODUCT_PACKAGES
Test: treehugger
Change-Id: I24ac93f3558116f4ddd96d22ef9bbd47240fdd06
2019-03-20 10:29:42 -07:00
Vic Yang 51512c558c Add support for no-vendor-variant VNDK
When TARGET_VNDK_USE_CORE_VARIANT is set to true, the vendor variant of
VNDK libraries are by default not installed.  Instead, the core variant
will be used by vendor binaries at runtime.

To ensure the core variant of VNDK libraries are installed, we also add
a flag LOCAL_VNDK_DEPEND_ON_CORE_VARIANT to indicate that the vendor
variant module depends on the core variant module.  This flag should be
set by Soong for all VNDK libraries without the vendor variant
installed.  When the flag is set, the vendor variant binary is also
compared against the core variant binary to ensure they are
functionally identical.

As we are merging the two variants for some libraries, we need a new
link type to denote a module is usable as both native:vndk and
native:platform.  We add native:platform_vndk for this.

Bug: 119423884
Test: With the corresponding Soong change, build with
      TARGET_VNDK_USE_CORE_VARIANT set to true.
Test: Add a dummy VNDK library and a dummy vendor binary that depends
      on it.  Build with no-vendor-variant VNDK and check the core
      variant is installed.
Test: Add conditional compilation based on __ANDROID_VNDK__ in the
      dummy VNDK library and check build fails.

Change-Id: I40000f2728e8193212113c1ee950e9d697f2d40d
2019-03-20 10:23:04 -07:00
Vic Yang 1b83413b5a Add module-target-built-files function
This is similar to module-built-files, except that it only returns
files built for the target, not the host.

Bug: 119423884
Test: Build with the no-vendor-variant VNDK change that uses this
      function.

Change-Id: I2a3d99003b05999eae01c0b90bb62b5263d65592
2019-03-20 10:22:21 -07:00
Anton Hansson 0a766e9afa Merge "Refactor generate_enforce_rro" am: bec4aa868a am: f5c74dd470
am: 5784c16fc4

Change-Id: I3d12f8a0f50429e8f54631bedec7e6caf667fb61
2019-03-20 09:23:38 -07:00
Anton Hansson ba2e4c4a5a Merge "Refactor and further simplify the RRO logic" am: 7c718f37f9 am: 5809544a5a
am: 79ff9538c7

Change-Id: I6220b4cfdd403c33076704abb7d670d391bd70e8
2019-03-20 09:21:21 -07:00
Anton Hansson 5784c16fc4 Merge "Refactor generate_enforce_rro" am: bec4aa868a
am: f5c74dd470

Change-Id: Id4ce71a884dda5a5abf6b131072a13f751b839cf
2019-03-20 09:18:39 -07:00
Anton Hansson 79ff9538c7 Merge "Refactor and further simplify the RRO logic" am: 7c718f37f9
am: 5809544a5a

Change-Id: Ib2de01d13b835d4a7dcd99eef37514e24c414c6c
2019-03-20 09:15:57 -07:00
Anton Hansson f82f85f0c9 Merge "Add comments and slight refactor auto-RRO logic" am: fce4d099c3 am: 9e8b7550b8
am: 33b3b1f565

Change-Id: Ic7a922d82d7676690cb7907f1e680552730621d5
2019-03-20 09:14:42 -07:00
Anton Hansson f5c74dd470 Merge "Refactor generate_enforce_rro"
am: bec4aa868a

Change-Id: I1f616f8020f85df60b89cdc3d0f489e9111d0454
2019-03-20 09:10:12 -07:00
Anton Hansson 33b3b1f565 Merge "Add comments and slight refactor auto-RRO logic" am: fce4d099c3
am: 9e8b7550b8

Change-Id: Ie6a6577eeb9eb9694968d10dd1cde1ea874da436
2019-03-20 09:09:25 -07:00
Anton Hansson 597255bc5e Merge "System-specific product sysprops" am: 4ea6474e95 am: ad0e43a4cb
am: 40bf1a78f2

Change-Id: I1e71d3b662dd27c9027129853e21bd5ac55a3e62
2019-03-20 09:08:35 -07:00
Anton Hansson 5809544a5a Merge "Refactor and further simplify the RRO logic"
am: 7c718f37f9

Change-Id: I90af301f8a7fd4713d6f8734080ce73128219fcf
2019-03-20 09:06:45 -07:00
Anton Hansson 9e8b7550b8 Merge "Add comments and slight refactor auto-RRO logic"
am: fce4d099c3

Change-Id: Ie1c5bfcddaabb8315cd4971a21900fddeba1e426
2019-03-20 08:57:07 -07:00
Anton Hansson 40bf1a78f2 Merge "System-specific product sysprops" am: 4ea6474e95
am: ad0e43a4cb

Change-Id: If4199330a673fd62199d3435e57b5298378a0e3a
2019-03-20 08:56:58 -07:00
Anton Hansson ad0e43a4cb Merge "System-specific product sysprops"
am: 4ea6474e95

Change-Id: Ic86991b8facce69736a1bb484d095b3a132cbd1d
2019-03-20 08:48:31 -07:00
Anton Hansson bec4aa868a Merge "Refactor generate_enforce_rro" 2019-03-20 15:18:19 +00:00
Anton Hansson 7c718f37f9 Merge "Refactor and further simplify the RRO logic" 2019-03-20 14:35:25 +00:00
Anton Hansson fce4d099c3 Merge "Add comments and slight refactor auto-RRO logic" 2019-03-20 13:19:56 +00:00
Anton Hansson 4ea6474e95 Merge "System-specific product sysprops" 2019-03-20 12:40:44 +00:00
Anton Hansson 3ef0773932 Merge "Rename DEVICE arg in common buildprops script" am: c371f19e89 am: a0ea5a17e8
am: 1ed2fafd6a

Change-Id: I0eec28ce7fbe8f29588993b1986b70cf52b0497e
2019-03-20 04:09:51 -07:00
Anton Hansson 057f51a2c2 Merge "Fix missing modules check for dont_bother goals" am: f9b6cd6593 am: c61bed91be
am: 34ec0cb0b1

Change-Id: If86ea8d9462a50f0175d5e519eba7dc4b2a73fe7
2019-03-20 04:07:53 -07:00
Anton Hansson 627cf057f9 Fix the product-graph target
Skips the step that invokes dot from the build, and instead
prints suitable commands to convert to image formats.

Bug: 114729998
Test: m product-graph
Change-Id: I172e1a792c32c2685d2f439f414dc66267ed6b83
2019-03-20 11:03:59 +00:00
Anton Hansson 1ed2fafd6a Merge "Rename DEVICE arg in common buildprops script" am: c371f19e89
am: a0ea5a17e8

Change-Id: I692a07be00cf219e5ce5d286c0aae7585c047c48
2019-03-20 03:44:52 -07:00
Anton Hansson 34ec0cb0b1 Merge "Fix missing modules check for dont_bother goals" am: f9b6cd6593
am: c61bed91be

Change-Id: I18623ca6f24e3f1aa0b91e0f6b0beaa79fb74643
2019-03-20 03:43:33 -07:00
Anton Hansson a0ea5a17e8 Merge "Rename DEVICE arg in common buildprops script"
am: c371f19e89

Change-Id: I24bd162fcfe728f3972eb4e3ce6d5df74ba8bf50
2019-03-20 03:28:08 -07:00
Anton Hansson c61bed91be Merge "Fix missing modules check for dont_bother goals"
am: f9b6cd6593

Change-Id: I1e1707cf4323851f1465f4dfcc2324a22e5049b8
2019-03-20 03:27:22 -07:00
Anton Hansson c371f19e89 Merge "Rename DEVICE arg in common buildprops script" 2019-03-20 10:25:01 +00:00
Anton Hansson f9b6cd6593 Merge "Fix missing modules check for dont_bother goals" 2019-03-20 10:11:50 +00:00
Bowgo Tsai e4544b1c02 Moving system_other key into product.img
Currently system_other AVB public key is placed in system.img.
However, this makes it's harder to have a *generic* system.img
across different product configs. Moving the key to /product
partition to allow more product-specific AVB keys.

Device board config can add /product/etc/fstab.postinstall,
to mount system_other with this key in /product. It can specify
different mount options, file systems, verity settings, etc., in
this product-specific fstab as well.

Bug: 123611926
Test: `make productimage` checks the following is generated.
      $OUT/product/etc/security/avb/system_other.avbpubkey
      Also checks it's included in $OUT/installed-files-product.{json, txt}

Test: run the following command and checks that
      PRODUCT/etc/security/avb/system_other.avbpubkey is updated:
      ./build/tools/releasetools/sign_target_files_apks \
        --avb_system_other_algorithm SHA256_RSA2048 \
        --avb_system_other_key external/avb/test/data/testkey_rsa2048.pem \
        out/dist/*-target_files-*.zip signed-target_files.zip

Change-Id: I6804f29941bec54375d80bd68a5aedb5c23b842e
2019-03-20 16:18:11 +08:00
Colin Cross afa2b169f7 Merge "Add x86 AVX2 and AVX512 supported architectures" am: 88e38f01ba am: a31d29ffb6
am: 39e785ff4b

Change-Id: Ie9d066278ee87dd1a9a7309c998e59af0e252abd
2019-03-19 23:39:12 -07:00
Colin Cross 39e785ff4b Merge "Add x86 AVX2 and AVX512 supported architectures" am: 88e38f01ba
am: a31d29ffb6

Change-Id: I08d9073143c9eabb6adc6ebef00c2e3e2e450edb
2019-03-19 23:34:59 -07:00
Colin Cross a31d29ffb6 Merge "Add x86 AVX2 and AVX512 supported architectures"
am: 88e38f01ba

Change-Id: I79b7bf9f1a0992e27c1e6290c624d4c8545a5f8c
2019-03-19 23:30:50 -07:00
Colin Cross 88e38f01ba Merge "Add x86 AVX2 and AVX512 supported architectures" 2019-03-20 06:22:22 +00:00
Jiyong Park 808ff21cfb Merge "Add LOCAL_SOONG_SYMBOL_PATH" am: 995c632cdc am: 7478fc5a8a
am: d0155c4180

Change-Id: Ib4b1babf0e4215578f480563bb2b6fafd460b4bf
2019-03-19 21:36:55 -07:00
nelsonli b3abf9d4d2 Merge "Build: Ensuring test runtime dependencies are installed." am: 71ec795e47 am: 1d49779e2f
am: 5cac6f2ac2

Change-Id: I16a037e9a693f6cdbf6886e3445cf02e8e9a12c4
2019-03-19 21:29:02 -07:00
Jiyong Park d0155c4180 Merge "Add LOCAL_SOONG_SYMBOL_PATH" am: 995c632cdc
am: 7478fc5a8a

Change-Id: I11b2f45cf02700be7b6237c6b6355c998e828089
2019-03-19 21:24:01 -07:00
nelsonli 5cac6f2ac2 Merge "Build: Ensuring test runtime dependencies are installed." am: 71ec795e47
am: 1d49779e2f

Change-Id: I1dd93e3469f4ee366d9f641cbbca2a9f296c7230
2019-03-19 21:23:10 -07:00
Jiyong Park 7478fc5a8a Merge "Add LOCAL_SOONG_SYMBOL_PATH"
am: 995c632cdc

Change-Id: If2569a1e25eedab5f2bcc9ce572a222fc914c184
2019-03-19 21:17:41 -07:00
nelsonli 1d49779e2f Merge "Build: Ensuring test runtime dependencies are installed."
am: 71ec795e47

Change-Id: I8335bb5be06cb118a71d3673b7d6f0812a5432ff
2019-03-19 21:16:57 -07:00
Treehugger Robot 995c632cdc Merge "Add LOCAL_SOONG_SYMBOL_PATH" 2019-03-20 03:01:40 +00:00
Treehugger Robot 71ec795e47 Merge "Build: Ensuring test runtime dependencies are installed." 2019-03-20 01:17:17 +00:00
Jaewoong Jung 8c3d2e571e Merge "Split out app_prebuilt_internal.mk." am: 71638acad7 am: cd290b0804
am: 3182dce1c4

Change-Id: Ib097d659cdee9ed1bfc553097a9040336bba34ac
2019-03-19 18:15:25 -07:00
Jaewoong Jung 3182dce1c4 Merge "Split out app_prebuilt_internal.mk." am: 71638acad7
am: cd290b0804

Change-Id: Ia663707d5877a694e59a06e826e2f8c69448f29d
2019-03-19 18:03:11 -07:00
Jaewoong Jung cd290b0804 Merge "Split out app_prebuilt_internal.mk."
am: 71638acad7

Change-Id: I749f1c984c837d8838b243f37ea4c34cb6674cd2
2019-03-19 18:00:01 -07:00
Jaewoong Jung 71638acad7 Merge "Split out app_prebuilt_internal.mk." 2019-03-20 00:51:45 +00:00
Daniel Norman 2cc4a17ee6 Merge "Allow disabling building super partition for DAP devices" am: 1bc36fa328 am: 0aa34b44a1
am: 29631f22fe

Change-Id: Idfe38b760cfa68a06e3a548396463d5f4106e1b2
2019-03-19 15:41:35 -07:00
Daniel Norman 29631f22fe Merge "Allow disabling building super partition for DAP devices" am: 1bc36fa328
am: 0aa34b44a1

Change-Id: Ic4c59f377983a4c990be21043510ab20adf52877
2019-03-19 15:29:15 -07:00
Daniel Norman 0aa34b44a1 Merge "Allow disabling building super partition for DAP devices"
am: 1bc36fa328

Change-Id: I674d188302fba37e8fdf2ca76554b9c9d7f9e0c8
2019-03-19 15:22:04 -07:00
Daniel Norman 1bc36fa328 Merge "Allow disabling building super partition for DAP devices" 2019-03-19 22:13:26 +00:00
Jiyong Park a32f00e553 Add LOCAL_SOONG_SYMBOL_PATH
The soong-only variable is used to specify the location where the symbol
file is located. When unspecified, LOCAL_MODULE_PATH is used instead as
before.

This is needed when the path that a file is installed to is different
from the path that the file is accessed from at runtime. For example, if
TARGET_FLATTEN_APEX=true, a file lib/libX.so in an APEX com.android.foo
is installed to /system/apex/com.android.foo/lib/libX.so. However, it's
runtime path is /apex/com.android.foo/lib/libX.so as
/system/apex/com.android.foo is bind-mounted to /apex/com,android.foo.

Bug: 120846816
Test: m and inspect that symbol files exist under
$(PRODUCT_OUT)/symbols/apex/com.android.runtime/

Change-Id: I1b39f6e0cde115d442f14380c365796feff3437b
2019-03-20 06:56:20 +09:00
Jaewoong Jung 09bfe55bd6 Split out app_prebuilt_internal.mk.
This is part of prebuilt_internal.mk refactoring work and also a
preliminary task to design and implement its Soong counterpart.

Test: built and flashed an image for a Pixel device + TreeHugger
Change-Id: I89b13b1e0a2780b02fda7ee888e73052ac1abd9c
2019-03-19 13:35:23 -07:00
Jared Lim b378d4d0a5 Merge "Generate api.xml for every target build." am: 22b9a4a207 am: 823e08eea4
am: 74475f02e7

Change-Id: I26be66bbab1cb72927f9b2e62a60d057a7fccb6d
2019-03-19 12:38:38 -07:00
Jared Lim 74475f02e7 Merge "Generate api.xml for every target build." am: 22b9a4a207
am: 823e08eea4

Change-Id: I28e4d85eb5c74ef8996b740d01e0a9c9763eb38d
2019-03-19 12:34:26 -07:00
Jared Lim 823e08eea4 Merge "Generate api.xml for every target build."
am: 22b9a4a207

Change-Id: I9751cb5a72b32e4ba1c6b0ca87dfd7695ee0e107
2019-03-19 12:30:15 -07:00
Treehugger Robot 22b9a4a207 Merge "Generate api.xml for every target build." 2019-03-19 19:18:16 +00:00
Anton Hansson fa7ddae29b Fix missing modules check for dont_bother goals
Like If1f817d855cbe329b83caee9fdd68c2cce55f02b, but for
PRODUCT_PACKAGES, which is only enabled for a few builds.

Also share the ALLOW_MISSING_DEPENDENCIES check with the host
version.

Test: m product-graph
Change-Id: Iab55072e7d7c0fc9f4680cc515e139a5214dc3b4
2019-03-19 18:20:30 +00:00
Logan Chien 98af3cf0ea Merge "Fix check_elf_file with LOCAL_SDK_VERSION and NDK libs" am: ab28c2d4ef am: 9e7d8b77a4
am: d5cbb5eba3

Change-Id: I4d00444d8af19f5ab6a1800a79d4ede457a157ed
2019-03-19 02:30:53 -07:00
Logan Chien d5cbb5eba3 Merge "Fix check_elf_file with LOCAL_SDK_VERSION and NDK libs" am: ab28c2d4ef
am: 9e7d8b77a4

Change-Id: I7936a84b3ec41760739707fc54b89424489f0ed8
2019-03-19 02:26:34 -07:00
Logan Chien 9e7d8b77a4 Merge "Fix check_elf_file with LOCAL_SDK_VERSION and NDK libs"
am: ab28c2d4ef

Change-Id: I90ef9805a09710c9ced9775f4aab2a3b869a83aa
2019-03-19 02:22:25 -07:00
Logan Chien ab28c2d4ef Merge "Fix check_elf_file with LOCAL_SDK_VERSION and NDK libs" 2019-03-19 09:09:50 +00:00
nelsonli fe04351f6f Build: Ensuring test runtime dependencies are installed.
After migrating the primary install location of test modules into a
    generic testcase folder. All test modules will install to
    out/target/product/<product>/testcase/<module_name>/ if they don't
    specify their LOCAL_MODULE_PATH.
    But the dependent test module should also be copied to testcase
    folder even its LOCAL_MODULE_PATH be set.

BUG: 128815093
Test: 1. vi cts/tests/signature/api-check/Android.mk
        add LOCAL_MODULE_PATH for cts-hiddenapi_flags-csv
      2. m CtsHiddenApiBlacklistDebugClassTestCases
         Then, hiddenapi_flags.csv should also be copied to testcase
	 folder.

Change-Id: Iff872447348e74b2728e0913d04e46ccbaa4e972
2019-03-19 08:12:20 +00:00
Jared Lim 361e4439d0 Generate api.xml for every target build.
Test: make dist DIST_DIR=out/dist

Change-Id: I8cf7290c8a3757110761e9c852339b841c5d1748
2019-03-18 22:42:07 -07:00
Colin Cross f1f2fdb2b6 Merge "Add a dependency on boot jars $(LOCAL_BUILT_MODULE)" am: c2144bb0c4 am: f9953860b0
am: 1d3caff3c0

Change-Id: If62196568ce29e96aca19e4e3f43005c2c554487
2019-03-18 22:24:09 -07:00
Bowgo Tsai c1c511a195 Merge "Sets default value of ro.postinstall.fstab.prefix" am: b6520ddcf1 am: cf4ee6ac23
am: c42b681fca

Change-Id: I4ad8a50fd4bcce3b8b6c1f0c75f764eb3dd3c241
2019-03-18 22:22:20 -07:00
Colin Cross 1d3caff3c0 Merge "Add a dependency on boot jars $(LOCAL_BUILT_MODULE)" am: c2144bb0c4
am: f9953860b0

Change-Id: I73d64e79268603d4c0088c6e4225a830e0e04a8f
2019-03-18 22:19:44 -07:00
Bowgo Tsai c42b681fca Merge "Sets default value of ro.postinstall.fstab.prefix" am: b6520ddcf1
am: cf4ee6ac23

Change-Id: I940adcc68419e660ba27294a7b4f8a2f6e299074
2019-03-18 22:18:10 -07:00
Colin Cross f9953860b0 Merge "Add a dependency on boot jars $(LOCAL_BUILT_MODULE)"
am: c2144bb0c4

Change-Id: I670fb51e3bc4f859c9716bad277dd09d8c5e3806
2019-03-18 22:15:24 -07:00
Bowgo Tsai cf4ee6ac23 Merge "Sets default value of ro.postinstall.fstab.prefix"
am: b6520ddcf1

Change-Id: I0ec7a2b917b8bf227b68ef1c58d307a1c5328170
2019-03-18 22:14:00 -07:00
Treehugger Robot c2144bb0c4 Merge "Add a dependency on boot jars $(LOCAL_BUILT_MODULE)" 2019-03-19 05:08:26 +00:00
Treehugger Robot b6520ddcf1 Merge "Sets default value of ro.postinstall.fstab.prefix" 2019-03-19 05:02:58 +00:00
Yifan Hong 45a05bc545 Merge "Add supernod build target." am: 691defc4bd am: 5aec484888
am: 2725896bce

Change-Id: I5b83bc2af99d65c43660b3b764c3f7b5f2a0471a
2019-03-18 18:01:46 -07:00
Yifan Hong 2725896bce Merge "Add supernod build target." am: 691defc4bd
am: 5aec484888

Change-Id: Ifd1d3ed4c30cb83ab6aec0a3f7f52806c39743bd
2019-03-18 17:47:14 -07:00
Yifan Hong 5aec484888 Merge "Add supernod build target."
am: 691defc4bd

Change-Id: I5716c6a8028bb6c7beaf2ecbdd6ea28e44ad07ec
2019-03-18 17:06:47 -07:00
Yifan Hong 691defc4bd Merge "Add supernod build target." 2019-03-18 23:46:05 +00:00
Colin Cross 3ecb9c4fdd Add a dependency on boot jars $(LOCAL_BUILT_MODULE)
After I25163e91886cea6941afa25cdb529ed053278dcb there is no longer
a dependency on $(LOCAL_BUILT_MODULE) for boot jars, as boot.art
is installed instead.  Add a dependency from boot.art to
$(LOCAL_BUILT_MODULE) so that $(LOCAL_BUILT_MODULE) and its
dependencies (which may include jacoco-report-classes.jar) is
copied for every build.

Fixes: 127702563
Test: forrest
Change-Id: I4db2d1f5fe2e1141fe93317cd7a2a58a33f8fbff
2019-03-18 13:17:22 -07:00
Anton Hansson dc017122fb Read product/device RRO dirs separately from soong
This change splits the LOCAL_SOONG_RRO_DIRS into two,
representing RRO dirs that originated from device and
product overlay configs, respectively.

Also plumb the device/product configs in separately.

Bug: 127758779
Test: verify noop on presubmit targets
Change-Id: Iddee1b4d7303b7ecaeced91216ea82fe29123770
2019-03-18 19:39:51 +00:00
Yifan Hong 889b1f7c0c Allow disabling building super partition for DAP devices
Previously:
if (DAP && !BUILD_SUPER) error;

Now:
if (BUILD_SUPER && !DAP) error;

This allows DAP devices to disable building super partition when the OEM
doesn't want to. The ability to build super partition shouldn't be
a requirement of enabling DAP; rather, building super partition requires
DAP to be enabled.

To do this on a device, PRODUCT_BUILD_SUPER_PARTITION should be set
to false explicitly. If it is unset, it will use the value of
PRODUCT_USE_DYNAMIC_PARTITIONS.

Bug: 127687287
Test: set PRODUCT_BUILD_SUPER_PARTITION to false and build dist

Change-Id: I25f1866e61d73affb445c1aec042cf53aac93583
2019-03-18 11:48:03 -07:00
Anton Hansson 08231e1786 Refactor generate_enforce_rro
A few tweaks to make it easier to extend to generating RROs in
multiple partitions:
- deduce the module name inside generate_enforce_rro
- dedup rule definition
- tweak framework-res check to use source module name instead

Bug: 127758779
Test: verify noop on presubmit targets
Change-Id: I2f0d6270b21f5427c372c04a5c6e7fb712e72a9a
2019-03-18 14:21:09 +00:00
Anton Hansson b7ee86ff85 Refactor and further simplify the RRO logic
Make the runtime vs static resource overlays a little clearer.
This will help adding more logic around determining if an RRO
needs to be generated in /vendor, /product or both.

Bug: 127758779
Test: verify noop on presubmit targets
Change-Id: I43111a1d9bb3405c559faaef56a75a5ad7672ba0
2019-03-16 15:52:30 +00:00
Benjamin Gordon 9204856d11 Merge "Add stoney ridge x86 variant" am: 8c2881034a am: b3a6164a9b
am: 9c676bb5a8

Change-Id: I006c21cf4035bf0d0bfda3d5b7a93ed0955e53be
2019-03-15 15:57:00 -07:00
Benjamin Gordon 9c676bb5a8 Merge "Add stoney ridge x86 variant" am: 8c2881034a
am: b3a6164a9b

Change-Id: Ief0e31de64b0bc9ccc7e11941a114241599f2aa4
2019-03-15 15:40:01 -07:00
Benjamin Gordon b3a6164a9b Merge "Add stoney ridge x86 variant"
am: 8c2881034a

Change-Id: I43d012b9755e593b3b5c34c88254b51b52f63201
2019-03-15 15:33:32 -07:00
Treehugger Robot 8c2881034a Merge "Add stoney ridge x86 variant" 2019-03-15 21:41:32 +00:00
Anton Hansson fd06b02b30 Add comments and slight refactor auto-RRO logic
Make it a bit clearer what this code is intended to do.

Bug: 127758779
Test: verify noop on presubmit targets
Change-Id: Ic405fc5d4601b9f0a91b4d24caa06f279267c51a
2019-03-15 17:03:53 +00:00
Roland Levillain fc65a5ff1a Merge "Remove valgrind-test-art% targets from PARSE_TIME_MAKE_GOALS." am: dbfe39faa2 am: 0e0ffc1053
am: 1f355b181d

Change-Id: Ibd5f12a83f86e0bae17e3ad17606bdf1e824a5c3
2019-03-14 06:42:07 -07:00
Roland Levillain 1f355b181d Merge "Remove valgrind-test-art% targets from PARSE_TIME_MAKE_GOALS." am: dbfe39faa2
am: 0e0ffc1053

Change-Id: I91aa17f26b372b301386c880c2ec66821fe6ec6a
2019-03-14 06:36:55 -07:00
Roland Levillain 0e0ffc1053 Merge "Remove valgrind-test-art% targets from PARSE_TIME_MAKE_GOALS."
am: dbfe39faa2

Change-Id: I065fc822abc7b9dda99e1fc83ef32f07a47e8b3a
2019-03-14 06:31:45 -07:00
Roland Levillain dbfe39faa2 Merge "Remove valgrind-test-art% targets from PARSE_TIME_MAKE_GOALS." 2019-03-14 13:17:46 +00:00
Bowgo Tsai ddac7dcce1 Sets default value of ro.postinstall.fstab.prefix
ro.postinstall.fstab.prefix might be either "/system" or "/product",
to decide the location of the fstab.postinstall, used to mount
system_other partition on A/B devices.

  {ro.postinstall.fstab.prefix}/etc/fstab.postinstall

Bug: 112103720
Test: factory reset and boot device, checks cppreopt logs

Change-Id: Ib1e282752c37713e2220239f4f903453ce3c8bab
2019-03-14 16:03:04 +08:00
Nelson Li ed516e293d Merge "Revert "Revert "Build System: Solve dependency problem for test""" am: 795721ac2a am: 3c4c86943c
am: fd71578493

Change-Id: I369b55cbd93ff3dd679fdbc67cb05c712ca3ed5f
2019-03-13 21:43:13 -07:00
Nelson Li fd71578493 Merge "Revert "Revert "Build System: Solve dependency problem for test""" am: 795721ac2a
am: 3c4c86943c

Change-Id: I735cae7b8d68db780eac51868a1ef0fd9b22c5e9
2019-03-13 21:39:07 -07:00
Nelson Li 3c4c86943c Merge "Revert "Revert "Build System: Solve dependency problem for test"""
am: 795721ac2a

Change-Id: Ic5a66836b748dbe18a5b67a55896a0ae041dfc6c
2019-03-13 21:34:55 -07:00
Treehugger Robot 795721ac2a Merge "Revert "Revert "Build System: Solve dependency problem for test""" 2019-03-14 04:23:32 +00:00
Nelson Li 1f8357fe7d Revert "Revert "Build System: Solve dependency problem for test""
This reverts commit 6fe7f194b9.

Reason for revert: Fixed all build break.

Change-Id: I0a4842df1225399752515a4cd7a7c14173a5bf7b
2019-03-14 01:05:36 +00:00
Yifan Hong 69e0d61cbe Add supernod build target.
superimage-nodeps and supernod depends
on images from $(ANDROID_PRODUCT_OUT) (not from
target files package). It doesn't rebuild source
images if they are present.

A typical workflow is:

    m -j
    # change code in system
    m snod -j
    m supernod -j

Test: For non retrofit, run:
      `m snod -j; m supernod -j`
Fixes: 128321505
Change-Id: Ib8c011cadb9c0cd334234aef39f19be6a48fee62
2019-03-13 11:15:21 -07:00
Roland Levillain 43d2ca50ea Remove valgrind-test-art% targets from PARSE_TIME_MAKE_GOALS.
These targets have been removed from ART Makefiles in 2018.

Test: n/a
Bug: 29282211
Bug: 77856586
Change-Id: I00ab00392d153242a67d0764e3ca2ba0528d79db
2019-03-13 17:28:11 +00:00
Xin Li a6d9bd539a Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" 2019-03-13 02:26:04 +00:00
Anton Hansson ee4c970eb0 System-specific product sysprops
This change makes it possible for products to specify the values
of the ro.product.system.X sysprops independently from the
corresponding sysprops on the other partitions.

Leave the fingerprint as-is for now. It will be changed to follow
suit in a followup change.

Bug: 110206836
Test: make
Change-Id: Id30012e1948df792778b102203116d4ae3f68e56
2019-03-12 18:03:44 +00:00
Anton Hansson ef0b949be3 Rename DEVICE arg in common buildprops script
A followup change will make it not always equal TARGET_DEVICE,
so that name is unsuitable. Make its name follow the other product
variables.

Bug: 110206836
Test: presubmit
Change-Id: Icb1422ec5e7af658c5cc3070993c472e99805c6b
2019-03-12 18:03:23 +00:00
Adam Seaton 11b19b2cd5 Merge "[DO NOT MERGE] Update Platform Security string to 2019-05-05 for Pi-dev Bug:128322951" into pi-dev
am: 53a4d16512

Change-Id: Iab27916732450121d68278e313a28f3507f3895f
2019-03-11 15:42:24 -07:00
Nelson Li f5a4af9e91 Merge "Revert "Build System: Solve dependency problem for test"" am: 8924400a8a am: abc1617463
am: 87a4a179e1

Change-Id: I9e4095865afd148d7e7aec163d0430dd2e497d3d
2019-03-11 15:32:57 -07:00
Nelson Li 87a4a179e1 Merge "Revert "Build System: Solve dependency problem for test"" am: 8924400a8a
am: abc1617463

Change-Id: Ic24d4cc0fddbc85a273c3050a35a2d09b741fc18
2019-03-11 14:55:42 -07:00
Nelson Li abc1617463 Merge "Revert "Build System: Solve dependency problem for test""
am: 8924400a8a

Change-Id: Ie4a572a1e2d8ab31552b31897d3062c2b7953ce1
2019-03-11 14:21:37 -07:00
Elisa Pascual Trevino 21e7b04729 [DO NOT MERGE] Update Security String to 2019-05-01 in pi-dev Bug: 128322951
am: 1159bb8b17

Change-Id: I6efcc5456bf46cf789c51fbcb87d8ffd15026f5f
2019-03-11 14:14:21 -07:00
Adam Seaton 796d90c141 [Do Not Merge] Update Platform Security String to 2019-05-05 for oc-mr1-dev
Bug:128322951
2019-03-11 20:50:55 +00:00
Adam Seaton 7d44fc8d59 [DO NOT MERGE] Update Platform Security string to 2019-05-05 for Pi-dev
Bug:128322951
2019-03-11 20:46:28 +00:00
Treehugger Robot 8924400a8a Merge "Revert "Build System: Solve dependency problem for test"" 2019-03-11 20:45:17 +00:00
The Android Open Source Project 9205ecdbba DO NOT MERGE - Merge PPRL.190305.001 into master
Bug: 127812889
Change-Id: I174b936518b6fd2a7687f200478fd63b09bfb860
2019-03-11 11:13:56 -07:00
Elisa Pascual Trevino 801e91776e [DO NOT MERGE] Update Security String to 2019-05-01 in oc-mr1-dev
Bug: 128322951
2019-03-11 18:06:15 +00:00
Elisa Pascual Trevino 1159bb8b17 [DO NOT MERGE] Update Security String to 2019-05-01 in pi-dev
Bug: 128322951
2019-03-11 17:58:20 +00:00
Nelson Li 6fe7f194b9 Revert "Build System: Solve dependency problem for test"
This reverts commit 224e103308.

Reason for revert: Build Breakage in git_pi-dev-plus-aosp/docs @5366136
make -j110 docs showcommands dist DIST_DIR=/buildbot/dist_dirs/git_pi-dev-plus-aosp-linux-docs/5366136 checkbuild
FAILED:
 Dependencies in out found with no rule to create them:
 out/target/product/generic/data/app/CtsVerifierTester/CtsVerifierTester.apk
 out/target/product/generic/data/app/TradeFedTestApp/TradeFedTestApp.apk
 out/target/product/generic/data/app/TradeFedUiTestApp/TradeFedUiTestApp.apk
 15:53:46 stopping
and
make -j50 showcommands dist TARGET_PRODUCT=cf_x86_phone DIST_DIR=/buildbot/dist_dirs/git_master-linux-ndk_translation_all/5366149 ndk_translation_all
FAILED: ninja: 'out/target/product/vsoc_x86/data/nativetest/arm/arm_insn_tests_arm_static/arm_insn_tests_arm_static', needed by 'out/target/product/vsoc_x86/obj/PACKAGING/ndk_translation_tests_intermediates/arm_insn_tests_arm_static_result.xml', missing and no known rule to make it
15:55:38 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1
Return Code: 2

Change-Id: Idf95ef2e06526a0a31690420c923207db627605f
2019-03-11 16:48:29 +00:00
nelsonli 6e17758737 Merge "Build System: Solve dependency problem for test" am: 15e76e3848 am: 740ac49c83
am: 6e62c0bdaa

Change-Id: Ic1786c6b153ab105400aa1e2c78101fa288ee913
2019-03-11 08:34:40 -07:00
nelsonli 6e62c0bdaa Merge "Build System: Solve dependency problem for test" am: 15e76e3848
am: 740ac49c83

Change-Id: I770273ff9ad1e0444085d4222a692b7cb455041d
2019-03-11 08:30:24 -07:00
nelsonli 740ac49c83 Merge "Build System: Solve dependency problem for test"
am: 15e76e3848

Change-Id: I3196c19640d92e72f947c45925969845f63daeb4
2019-03-11 08:26:14 -07:00
Treehugger Robot 15e76e3848 Merge "Build System: Solve dependency problem for test" 2019-03-11 15:18:12 +00:00
android-build-team Robot 0b004435b8 Make change and version bump to PPRL.190305.001
Change-Id: I406ab6822fab34684fdbc84ad264106ae3dbec3b
2019-03-08 18:53:29 +00:00
Nicolas Geoffray 5b21467008 Merge "Add a flag to select the apex boot image for preopt." am: b82b26456b am: e39cf6a200
am: c6b7b2cdae

Change-Id: Ic596bf67c1885e6bff4f64096b8fbc506fb327e8
2019-03-08 10:45:06 -08:00
Nicolas Geoffray c6b7b2cdae Merge "Add a flag to select the apex boot image for preopt." am: b82b26456b
am: e39cf6a200

Change-Id: I1e68ea0dc1b75216b4d1613b1db7425525dde71c
2019-03-08 10:16:19 -08:00
Nicolas Geoffray e39cf6a200 Merge "Add a flag to select the apex boot image for preopt."
am: b82b26456b

Change-Id: I36baf7040c04428f53fb373f7391ac5e0b65a4e0
2019-03-08 10:11:11 -08:00
Treehugger Robot b82b26456b Merge "Add a flag to select the apex boot image for preopt." 2019-03-08 17:33:51 +00:00
Nicolas Geoffray 19abe716f8 Add a flag to select the apex boot image for preopt.
Test: m && check that odex files are preopted with the apex image
Bug: 119800099
Change-Id: I5b64261cd765b511ad7e1ff513b85c0579023f6e
2019-03-08 14:41:14 +00:00
Dan Willemsen d64328f3a5 Merge "Fix `m snod`" am: 04f2896c88 am: 28ac0cd338
am: 8933fed367

Change-Id: Iee059a8de36866e6fb17cc255548b404e3990143
2019-03-08 00:19:25 -08:00
Dan Willemsen 8933fed367 Merge "Fix `m snod`" am: 04f2896c88
am: 28ac0cd338

Change-Id: I21a95be55dd14d409ad734d495c43f91d4017ccd
2019-03-08 00:14:56 -08:00
Dan Willemsen 28ac0cd338 Merge "Fix `m snod`"
am: 04f2896c88

Change-Id: Ie752f16d4dbf576df3329d87612ac2f6b2ac638b
2019-03-08 00:11:07 -08:00
Dan Willemsen 283aa265d7 Merge changes from topic "HOST_PACKAGES" am: 066da0c58b
am: 75720c81aa

Change-Id: Id025085288ec317e035535819b701ba95b298bf7
2019-03-07 17:52:27 -08:00
Dan Willemsen e314eeb918 Reland "First pass at creating PRODUCT_HOST_PACKAGES" am: 3d05a08a6f
am: 87d763b9f4

Change-Id: Idccfb845dd73bff320d6593e736386125dd8e477
2019-03-07 17:51:34 -08:00
Dan Willemsen c478ea3dac Fix `m snod`
Whenever we're not loading all makefiles, we shouldn't be checking that
all the host packages exist.

Test: m snod
Change-Id: If1f817d855cbe329b83caee9fdd68c2cce55f02b
2019-03-07 17:18:15 -08:00
Dan Willemsen 75720c81aa Merge changes from topic "HOST_PACKAGES"
am: 066da0c58b

Change-Id: I9600129b255f1ef16880a217aeeac60622aab571
2019-03-07 17:07:33 -08:00
Dan Willemsen 87d763b9f4 Reland "First pass at creating PRODUCT_HOST_PACKAGES"
am: 3d05a08a6f

Change-Id: Ifc134f514dbcfc28e33eb82b2a77514cc4af26b6
2019-03-07 17:06:23 -08:00
Dan Willemsen 066da0c58b Merge changes from topic "HOST_PACKAGES"
* changes:
  Build everything in PRODUCT_HOST_PACKAGES
  Reland "First pass at creating PRODUCT_HOST_PACKAGES"
2019-03-08 00:21:01 +00:00
Tri Vo 3daf07b548 Merge "recovery: install product_file_contexts and product_property_contexts" am: 9f18c64d07 am: 6a03c1677b
am: 34f72c8e30

Change-Id: I402c8ca7817ed2beee28e7949dc8e8e8dbd10f74
2019-03-07 12:25:36 -08:00
Tri Vo 34f72c8e30 Merge "recovery: install product_file_contexts and product_property_contexts" am: 9f18c64d07
am: 6a03c1677b

Change-Id: Ib45350461ff21edcb42c65b089183bd157e945f2
2019-03-07 12:06:57 -08:00
Tri Vo 6a03c1677b Merge "recovery: install product_file_contexts and product_property_contexts"
am: 9f18c64d07

Change-Id: If303af03aed7453c4cacfba21b13debc2bd7dcff
2019-03-07 11:58:25 -08:00
Tri Vo 9f18c64d07 Merge "recovery: install product_file_contexts and product_property_contexts" 2019-03-07 18:32:48 +00:00
nelsonli 224e103308 Build System: Solve dependency problem for test
1. A test can add a runtime dependent test module by just setting
   LOCAL_REQUIRED_MODULES or LOCAL_TARGET_REQUIRED_MODULES. Then the dependent test
   module will be copied to testcase folder.
2. Do not install to $(TARGET_OUT_DATA) for testcase

BUG: 117224272

Test: 1. (a) vi cts/tests/tests/text/Android.mk
         (b) add LOCAL_REQUIRED_MODULES := CtsPrintTestCases
         (c) m -j CtsTextTestCases
         (d) Then, CtsPrintTestCases should also be built to testcase folder like below.
             ./target/product/generic_arm64/testcases/CtsPrintTestCases

Change-Id: I24ea3783486c54a05cfa9d3d0375b977afc230f8
2019-03-07 14:08:35 +08:00
Dan Willemsen b952b5e4c3 Build everything in PRODUCT_HOST_PACKAGES
This should only add extra host packages that were in
PRODUCT_HOST_PACKAGES and not PRODUCT_PACKAGES.

That shouldn't be very many things -- user builds will build a few more
host tools that used to be in PRODUCT_PACKAGES_DEBUG, etc.

Test: treehugger
Change-Id: I6768b76db74ea049de90eef326d1e314eb4ef848
Merged-In: I6768b76db74ea049de90eef326d1e314eb4ef848
2019-03-06 15:41:19 -08:00
Dan Willemsen 3d05a08a6f Reland "First pass at creating PRODUCT_HOST_PACKAGES"
Adds icu-data_host_runtime_apex to fix unbundled builds which pull it in
via PRODUCT_PACKAGES, but are missing packages that would pull it in via
PRODUCT_HOST_PACKAGES.

Test: build/soong/build_test.bash
Test: in ub-timezonedata-master; tapas TimeZoneData; m
Change-Id: I1583c7582b386c3e8478711cb1df340518d763c1
Merged-In: I1583c7582b386c3e8478711cb1df340518d763c1
2019-03-06 14:46:06 -08:00
Dan Willemsen 51e3b38508 Build everything in PRODUCT_HOST_PACKAGES
This should only add extra host packages that were in
PRODUCT_HOST_PACKAGES and not PRODUCT_PACKAGES.

That shouldn't be very many things -- user builds will build a few more
host tools that used to be in PRODUCT_PACKAGES_DEBUG, etc.

Test: treehugger
Change-Id: I6768b76db74ea049de90eef326d1e314eb4ef848
2019-03-06 11:18:05 -08:00
Dan Willemsen 4a70a19f84 Reland "First pass at creating PRODUCT_HOST_PACKAGES"
Adds icu-data_host_runtime_apex to fix unbundled builds which pull it in
via PRODUCT_PACKAGES, but are missing packages that would pull it in via
PRODUCT_HOST_PACKAGES.

Test: build/soong/build_test.bash
Test: in ub-timezonedata-master; tapas TimeZoneData; m
Change-Id: I1583c7582b386c3e8478711cb1df340518d763c1
2019-03-04 18:03:14 -08:00
Colin Cross bdc8d57cc5 Merge "Update manifest merger to use binary" am: e34ff5ca5d am: 9c6a64ea64
am: 51fea3d3b4

Change-Id: I81ca88585ca6b073aab9ec23a74548723c0e4fac
2019-03-04 14:24:43 -08:00
Colin Cross 51fea3d3b4 Merge "Update manifest merger to use binary" am: e34ff5ca5d
am: 9c6a64ea64

Change-Id: I40bcbe199fd4837eededddfa03069015b536f04b
2019-03-04 14:20:35 -08:00
Colin Cross 9c6a64ea64 Merge "Update manifest merger to use binary"
am: e34ff5ca5d

Change-Id: I0e10784282edb4394c192ffe5b177023d5d72832
2019-03-04 14:13:27 -08:00
Colin Cross e34ff5ca5d Merge "Update manifest merger to use binary" 2019-03-04 22:02:09 +00:00
Nicolas Geoffray e7379ba071 Merge "Pass the --api-flags to appcompat explicitly." am: 53cfd9275b am: 40ccefa404
am: 05cee18432

Change-Id: I89ab19518261acaf22565fc608611231288b7a70
2019-03-04 06:31:55 -08:00
Nicolas Geoffray 05cee18432 Merge "Pass the --api-flags to appcompat explicitly." am: 53cfd9275b
am: 40ccefa404

Change-Id: I73e4cc646241347a2df188a1a610d9effcc673c9
2019-03-04 06:27:48 -08:00
Nicolas Geoffray 40ccefa404 Merge "Pass the --api-flags to appcompat explicitly."
am: 53cfd9275b

Change-Id: I1bb503a1140c6d3877280c6073710bd9b5ffb61a
2019-03-04 06:23:38 -08:00
Nicolas Geoffray 53cfd9275b Merge "Pass the --api-flags to appcompat explicitly." 2019-03-04 14:14:39 +00:00
Julien Desprez 9df0b2d006 Merge "Add a placeholder EXTRA_OPTIONS to inject more tradefed options" am: 20a50f75a3 am: cab4032f3c
am: 0e0ef29e9f

Change-Id: I3f0dd9e039ddbb1ab5bc6ab3ac6b1491dfae0719
2019-03-01 17:24:01 -08:00
Julien Desprez 0e0ef29e9f Merge "Add a placeholder EXTRA_OPTIONS to inject more tradefed options" am: 20a50f75a3
am: cab4032f3c

Change-Id: Idd4cd181e0106cb97c216385dd166211332cab10
2019-03-01 17:15:03 -08:00
Julien Desprez cab4032f3c Merge "Add a placeholder EXTRA_OPTIONS to inject more tradefed options"
am: 20a50f75a3

Change-Id: Icf8f52e2aad12157daf3b967b6afa606dc7e0366
2019-03-01 17:00:15 -08:00
Julien Desprez 4e9a9485f4 Add a placeholder EXTRA_OPTIONS to inject more tradefed options
Simply remove the placeholder in makefiles, for now I am
not sure we need to support this in makefiles at all.

Test: call the sed method
Bug: 124024827
Change-Id: Iae78ae86c20c5da6b7314b749f54983a312c4a7d
2019-03-01 11:36:36 -08:00
Yifan Hong 7a82913627 Merge "Build ODM manifests and fragments for each SKU." am: 5a4696e460 am: 9abd15f3c1
am: 934174f0bd

Change-Id: Ia088e5a7445e2701920307c65647def62589dd78
2019-03-01 11:00:14 -08:00
Yifan Hong 934174f0bd Merge "Build ODM manifests and fragments for each SKU." am: 5a4696e460
am: 9abd15f3c1

Change-Id: Iba0f554d1430962752f5fa6425f3ad671d2a99b2
2019-03-01 10:55:04 -08:00
Yifan Hong 9abd15f3c1 Merge "Build ODM manifests and fragments for each SKU."
am: 5a4696e460

Change-Id: I40c136830b1e0b433533c55499736a5ad979a039
2019-03-01 10:50:35 -08:00
Yifan Hong 5a4696e460 Merge "Build ODM manifests and fragments for each SKU." 2019-03-01 18:32:32 +00:00
Anton Hansson 3a1ba7d721 Merge "Move BoardConfig strip / READONLY marking" am: e0ce6ca8a5 am: 393de8744d
am: 79d283621c

Change-Id: I8b619f92d77836d7fda6396eeb99c36f43168d9c
2019-03-01 07:59:14 -08:00
Anton Hansson d754e652d7 Merge "Move combo makefile parsing" am: 451951c139 am: 0eca386c7e
am: 7f98d99518

Change-Id: I0881980b708ebe9b349c324973c5220ddc54cf89
2019-03-01 07:54:07 -08:00
Colin Cross 62fc068b69 Merge "Use flags from Soong for d8 and r8" am: 5852c93585 am: fb770b4f84
am: ecc4607403

Change-Id: I863876bb8139fd8c5aceb97f4fde51f2df3697ff
2019-03-01 07:51:15 -08:00
Anton Hansson 79d283621c Merge "Move BoardConfig strip / READONLY marking" am: e0ce6ca8a5
am: 393de8744d

Change-Id: Ie82facbe1ea6562da45be25c69b5d379cec05853
2019-03-01 07:51:00 -08:00
Anton Hansson 7f98d99518 Merge "Move combo makefile parsing" am: 451951c139
am: 0eca386c7e

Change-Id: I7da8e40fbd20fd5b8076a38692e00269510db2d2
2019-03-01 07:49:27 -08:00
Colin Cross ecc4607403 Merge "Use flags from Soong for d8 and r8" am: 5852c93585
am: fb770b4f84

Change-Id: I83dc8fc74b03e8ef3a2e2bd9a6c42fd89c227301
2019-03-01 07:47:03 -08:00
Anton Hansson 393de8744d Merge "Move BoardConfig strip / READONLY marking"
am: e0ce6ca8a5

Change-Id: I469fe2d74ce5a89084bef4637b471afc4db1b8b4
2019-03-01 07:46:50 -08:00
Anton Hansson 0eca386c7e Merge "Move combo makefile parsing"
am: 451951c139

Change-Id: I9d7d4373abf5ebaa7d584f320433060aec8633e7
2019-03-01 07:42:26 -08:00
Colin Cross fb770b4f84 Merge "Use flags from Soong for d8 and r8"
am: 5852c93585

Change-Id: Iae764b89ba7a248e91b829144fd0d19796b773ef
2019-03-01 07:40:35 -08:00
Anton Hansson e0ce6ca8a5 Merge "Move BoardConfig strip / READONLY marking" 2019-03-01 15:34:36 +00:00
Anton Hansson 451951c139 Merge "Move combo makefile parsing" 2019-03-01 15:34:19 +00:00
Colin Cross 5852c93585 Merge "Use flags from Soong for d8 and r8" 2019-03-01 15:28:29 +00:00
Anton Hansson d488d2d7d7 Move BoardConfig strip / READONLY marking
This moves the BoardConfig READONLY marking being product.mk's
responsibility to board_config.mk.

Also unify it with the BUILD_BROKEN_* setting handling, and
READONLY a few additional variables.

Test: build_test
Change-Id: Ifcfef588aa459223d6d7f017413d1681f341297f
2019-03-01 10:04:18 +00:00
Anton Hansson 192798513e Move combo makefile parsing
These files may be setting variables usually defined in the
BoardConfig. This moves that setting into board_config.mk so
that the relevant variables can be made readonly.

Test: build_test
Test: diff presubmit target_files vs base cl
Change-Id: I4dab09fa67c0f2e88a8ce1402a35b4ef5f8a0560
2019-03-01 09:54:33 +00:00
Logan Chien b1c11de3c1 Fix check_elf_file with LOCAL_SDK_VERSION and NDK libs
This commit fixes prebuilt ELF checker for modules with
LOCAL_SDK_VERSIONS and depend on NDK shared libraries. This fix is
required because dynamic_binary.mk filters out NDK libraries thus those
libraries do not show up in DEPENDENCIES_ON_SHARED_LIBRARIES.

Bug: 119084334
Test: Create a prebuilt module with LOCAL_SDK_VERSION and check whether
      the NDK libs in LOCAL_SHARED_LIBRARIES are passed to
      check_elf_file.py.
Change-Id: I0f72ae1b0edc3e8d7e43eb70829e74d606564966
2019-03-01 10:25:25 +08:00
Nicolas Geoffray ac1f90c39c Pass the --api-flags to appcompat explicitly.
Bug: 125794065
Test: m && appcompat logs contain data
Change-Id: Idef875138d6670efc9ed7b9c63f653229b173d3e
2019-02-28 13:51:14 +00:00
Anton Hansson c474edeaaf Merge "Make it an error to specify the wrong ARCH_VARIANT" am: c651ef8529 am: 04d20252f9
am: c33384d895

Change-Id: Id1b3c152a3ad57af43391d37086c7468893ab173
2019-02-28 02:47:56 -08:00
Anton Hansson c33384d895 Merge "Make it an error to specify the wrong ARCH_VARIANT" am: c651ef8529
am: 04d20252f9

Change-Id: I3b6ea3d9aeda8eaab02c4e7bc2cd1b8c2d7d75f3
2019-02-28 02:43:45 -08:00
Anton Hansson d783c5bca9 Merge "Move WITH_DEXPREOPT default value" am: 67d3081d3f am: 5141484847
am: d3a8a46e3d

Change-Id: I422c9e60ff241433d42c445d9ffbebc054dec3e7
2019-02-28 02:41:00 -08:00
Anton Hansson 36784f93a2 Merge "Modify INTERNAL_KERNEL_CMDLINE instead of BOARD_ variant" am: 2507ce486d am: 3df97964e6
am: 81651dcf2e

Change-Id: I8c0c26a7a6bfd7d7a9d517d5dd03c3159e27f583
2019-02-28 02:39:54 -08:00
Anton Hansson 04d20252f9 Merge "Make it an error to specify the wrong ARCH_VARIANT"
am: c651ef8529

Change-Id: I754ded4bfeb01e7c7be9034845fbb5fcb30f996d
2019-02-28 02:38:27 -08:00
Anton Hansson d3a8a46e3d Merge "Move WITH_DEXPREOPT default value" am: 67d3081d3f
am: 5141484847

Change-Id: I3f183c52d3d49213630ab004937e07efc6ba8faf
2019-02-28 02:36:34 -08:00
Anton Hansson 81651dcf2e Merge "Modify INTERNAL_KERNEL_CMDLINE instead of BOARD_ variant" am: 2507ce486d
am: 3df97964e6

Change-Id: I17373f5be911396cac35bcad649e35bc207d0062
2019-02-28 02:35:43 -08:00
Anton Hansson 5141484847 Merge "Move WITH_DEXPREOPT default value"
am: 67d3081d3f

Change-Id: I30bae8e8cd869ce564540565dec159b52ddc5d7e
2019-02-28 02:32:25 -08:00
Anton Hansson 3df97964e6 Merge "Modify INTERNAL_KERNEL_CMDLINE instead of BOARD_ variant"
am: 2507ce486d

Change-Id: Ia7757912af4bdeee6836df94619f6faa09bf8cc4
2019-02-28 02:31:34 -08:00
Anton Hansson c651ef8529 Merge "Make it an error to specify the wrong ARCH_VARIANT" 2019-02-28 10:29:05 +00:00
Anton Hansson 67d3081d3f Merge "Move WITH_DEXPREOPT default value" 2019-02-28 10:26:31 +00:00
Anton Hansson 2507ce486d Merge "Modify INTERNAL_KERNEL_CMDLINE instead of BOARD_ variant" 2019-02-28 10:26:18 +00:00
Anton Hansson 6ad39ba0c0 Merge "Consolidate some BoardConfig variable checks" am: d265f52005 am: 3f6e03334a
am: c20ea064d1

Change-Id: I30cdbe73bd4104c9a093841471a9c610acc84779
2019-02-28 01:38:41 -08:00
Anton Hansson c20ea064d1 Merge "Consolidate some BoardConfig variable checks" am: d265f52005
am: 3f6e03334a

Change-Id: Ifbd2e3fc626a55ee6e20884676de1a46e7c999b9
2019-02-28 01:34:29 -08:00
Anton Hansson 3f6e03334a Merge "Consolidate some BoardConfig variable checks"
am: d265f52005

Change-Id: I805488439c08649e03a977d4d1a77e9d94b92d67
2019-02-28 01:30:20 -08:00
Anton Hansson d265f52005 Merge "Consolidate some BoardConfig variable checks" 2019-02-28 09:21:41 +00:00
Anton Hansson be1f9cb2fa Make it an error to specify the wrong ARCH_VARIANT
It was previously a warning to set an incorrect ARCH_VARIANT
when CPU_VARIANT was set to a cpu for which we knew the arch.

Make it an error, as there are no offenders in the tree.

Re-structure the code to make it a little clearer when you get
a default and when you get an error.

Test: build_test
Change-Id: I5821a8162a59e8c2aed2370068f9eb656ced9d99
2019-02-27 17:27:16 +00:00
Anton Hansson 74dc00b88f Move WITH_DEXPREOPT default value
This allows setting the variable READONLY after reading the BoardConfig.

This is safe to do because this flag is only set in BoardConfig.mk
files. The same is not true for many of the other default preopt flags,
like DEX_PREOPT_DEFAULT or WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY
which are set in mixture of product / board config files.

Test: boot blueline
Change-Id: I961ba581f9790bcdc7cf6b36d8b53bcdb8861a92
2019-02-27 15:03:23 +00:00
Anton Hansson 72e36f0278 Modify INTERNAL_KERNEL_CMDLINE instead of BOARD_ variant
The current modification of the variable within the build system
prohibits making the variable readonly.

Test: build_test
Test: boot blueline
Change-Id: Iec6058a163b5951db389d4adc0d9d0397431efb1
2019-02-27 14:29:01 +00:00
Anton Hansson b9544694a5 Consolidate some BoardConfig variable checks
Move a few more variable stripping/sanity checking from
config.mk to board_config.mk

Test: build_test
Change-Id: I93fde7293de38398039dbb679b2399c8a68c190d
2019-02-27 14:07:43 +00:00
Anton Hansson 1167d36a18 Merge "Split out board_config.mk" am: 45747a037a am: bff3401e7f
am: a4306d0df9

Change-Id: I15fec9a724dda6e85349e3dc3982807c02ef02f8
2019-02-27 05:39:39 -08:00
Anton Hansson a4306d0df9 Merge "Split out board_config.mk" am: 45747a037a
am: bff3401e7f

Change-Id: I287bdd429ca1a285b5d815fd0e1f07d51c857c47
2019-02-27 05:35:23 -08:00
Anton Hansson bff3401e7f Merge "Split out board_config.mk"
am: 45747a037a

Change-Id: Iebb38287c13ba6690b1535e61010cc1b235c7ce9
2019-02-27 05:32:13 -08:00
Anton Hansson 45747a037a Merge "Split out board_config.mk" 2019-02-27 13:21:17 +00:00
Colin Cross 7293c1e4b9 Update manifest merger to use binary
Manifest merger is now a java_binary instead of a collection of jars,
it can use the single binary as the dependency.

Bug: 112607039
Test: m checkbuild
Change-Id: Id97b01542314cb165ebf7c90409a09482d8c53bc
2019-02-27 06:18:35 +00:00
Yifan Hong baff3dda9e Merge "Fix dynamic partition size check for devices with recovery" am: 55ebd61486 am: d8da08795d
am: 45d5ba6ce1

Change-Id: I0a03fb5234d3a0448e72c241a6b8e38b4efd1dc3
2019-02-26 18:38:57 -08:00
Yifan Hong 45d5ba6ce1 Merge "Fix dynamic partition size check for devices with recovery" am: 55ebd61486
am: d8da08795d

Change-Id: I77f449314639293c5148ba0beebd3fcb98f820ef
2019-02-26 18:29:36 -08:00
Yifan Hong d8da08795d Merge "Fix dynamic partition size check for devices with recovery"
am: 55ebd61486

Change-Id: I4dc34153bdad6b91d752785f187e5e2479061044
2019-02-26 18:20:17 -08:00
Treehugger Robot 55ebd61486 Merge "Fix dynamic partition size check for devices with recovery" 2019-02-27 01:58:58 +00:00
Anton Hansson bb76ce825c Split out board_config.mk
Similar to product_config.mk, this contains the logic for reading
BoardConfig.mk, and will be expanded to sanity-check variables
set in the BoardConfig etc.

Test: build_test
Change-Id: I4f8d7cfbf1506ae4268c82c9554680259958b313
2019-02-26 16:27:48 +00:00
Dan Willemsen 8c979fa522 Merge "Deprecate *.c[pp].arm" am: fb8c9673e7 am: 5d340e1552
am: 662380e517

Change-Id: Ic4bed9d9453d3339b055467e07400510bdcdf22f
2019-02-25 22:08:32 -08:00
Dan Willemsen 662380e517 Merge "Deprecate *.c[pp].arm" am: fb8c9673e7
am: 5d340e1552

Change-Id: I01be7a169848987dc94e57c97e7e87f36de9502d
2019-02-25 21:57:21 -08:00
Nicolas Geoffray 66ce15bd22 Merge "Support for install multiple boot images." am: 3b813d10bb am: 605280d1dc
am: 3278e301b9

Change-Id: Ida110b67c847857097cd85b054c2ab04845e327f
2019-02-25 21:06:05 -08:00
Nicolas Geoffray 3278e301b9 Merge "Support for install multiple boot images." am: 3b813d10bb
am: 605280d1dc

Change-Id: I4cd36a78c96e0be2a873168ee07901f0e047db1f
2019-02-25 20:10:07 -08:00
Yifan Hong accf09b2e0 Fix dynamic partition size check for devices with recovery
Devices with TARGET_NO_RECOVERY unset will contain a patch
of the recovery image in the system image. Fix
corresponding size checks.

Fixes: 120043292
Bug: 124489494
Test: build cuttlefish with DAP

Change-Id: I508881f421672180ab852c0f9216184b925d83ad
2019-02-25 16:10:43 -08:00
Dan Willemsen 5d340e1552 Merge "Deprecate *.c[pp].arm"
am: fb8c9673e7

Change-Id: I45b1d106affd02ea2e9c77fd462d1d6e7269377f
2019-02-25 14:57:01 -08:00
Dan Willemsen fb8c9673e7 Merge "Deprecate *.c[pp].arm" 2019-02-25 21:28:31 +00:00
Nicolas Geoffray 605280d1dc Merge "Support for install multiple boot images."
am: 3b813d10bb

Change-Id: I86e2d5507616c9f91f2748b3238e851f3c56eb47
2019-02-24 05:46:37 -08:00
Nicolas Geoffray 3b813d10bb Merge "Support for install multiple boot images." 2019-02-24 13:37:01 +00:00
Paul Duffin f0d5d718af Merge "Remove usages of legacy-test and legacy-android-test" am: 8f948fe292 am: 44b8a17093
am: 0854851f7e

Change-Id: Ia796c224e8949fd3cc24009056cd7a5a961527e6
2019-02-22 20:53:48 -08:00
Anton Hansson bf590c2aaa Merge "Add support for *_CPU_VARIANT_RUNTIME flags" am: 4208c81ab9 am: bc732bf45b
am: a2d24017f3

Change-Id: I9f1455d5c51a6343289c1189f19491a2bbaa73af
2019-02-22 20:51:34 -08:00
Anton Hansson ee466e1a5f Merge "Move ART cpu properties to /vendor" am: b5312392a0 am: 768455a3d4
am: 8fae47028f

Change-Id: Id3607f688a885333cfba72e26479b84621b2fcb6
2019-02-22 20:49:23 -08:00
Anton Hansson 751f86f81a Merge "Add more BoardConfig variables to stash list" am: 299ffb7870 am: 56a0405ec6
am: 17a4def424

Change-Id: I02adf1b9d144ddab649a50dcd99c7baaba55a4b4
2019-02-22 20:48:07 -08:00
Logan Chien 26e7e59514 Merge "Refine lsdump_paths.txt dependencies" am: 7d35910451 am: a3146e8c0a
am: e12bfc81b9

Change-Id: I38ef4948e3bc8f07df6735fb56dd682d5baf41e6
2019-02-22 20:47:04 -08:00
Sasha Smundak baaaf97e72 Merge "Add a wrapper file for the vts_config module." am: f97ed91448 am: f097a2248c
am: dd3122dc48

Change-Id: I9818a95d84894151e2743b388617a2146d066024
2019-02-22 20:45:30 -08:00
Colin Cross 6ef81e0397 Merge "Get DEXPREOPT_BOOT_JARS_MODULES from Soong" am: 6128b1e8d6 am: 54ac6ed073
am: 0ee78f3aa1

Change-Id: Id4cb7ce5818b302d936487ec964b24b3af44d42f
2019-02-22 20:43:35 -08:00
Paul Duffin 0854851f7e Merge "Remove usages of legacy-test and legacy-android-test" am: 8f948fe292
am: 44b8a17093

Change-Id: I34c39afae056a067e25abb87732a902baf9c35c9
2019-02-22 20:38:13 -08:00
Tianjie Xu 376907886a Merge "Dump a copy of metadata file for full OTA" am: df5978803d am: 407c972bfa
am: 061dfe08eb

Change-Id: I9cef1b8f71954b66ce6a0abda28103edada08b67
2019-02-22 20:37:16 -08:00
Anton Hansson a2d24017f3 Merge "Add support for *_CPU_VARIANT_RUNTIME flags" am: 4208c81ab9
am: bc732bf45b

Change-Id: If5adc4e9d24575bfadcdc30dacaa2a26afd34326
2019-02-22 20:36:47 -08:00
Colin Cross 6389c88239 Merge "Update calls to dexpreopt_gen" am: 0450863eca am: 39fb391e8f
am: c4114d9641

Change-Id: Id3c60d88280b065a907ce0fe4b67e710b8fe3901
2019-02-22 20:35:33 -08:00
Anton Hansson 8fae47028f Merge "Move ART cpu properties to /vendor" am: b5312392a0
am: 768455a3d4

Change-Id: I7e149ab5fe1218bc9a90d26693ef72275be7b599
2019-02-22 20:35:16 -08:00
Anton Hansson 17a4def424 Merge "Add more BoardConfig variables to stash list" am: 299ffb7870
am: 56a0405ec6

Change-Id: I51ca88c3a5c665a3d48783d272fed24f41af23c6
2019-02-22 20:34:31 -08:00
Logan Chien e12bfc81b9 Merge "Refine lsdump_paths.txt dependencies" am: 7d35910451
am: a3146e8c0a

Change-Id: I91aceb743c7131206a39b11434c102d91bdd013a
2019-02-22 20:33:49 -08:00
Sasha Smundak dd3122dc48 Merge "Add a wrapper file for the vts_config module." am: f97ed91448
am: f097a2248c

Change-Id: I80b74bc7083a4dd4c3c0154636b9dec947f3a53d
2019-02-22 20:33:06 -08:00
Colin Cross 0ee78f3aa1 Merge "Get DEXPREOPT_BOOT_JARS_MODULES from Soong" am: 6128b1e8d6
am: 54ac6ed073

Change-Id: Iebdc7eabb9b5692832099c04ef84db9142912921
2019-02-22 20:31:28 -08:00
Tianjie Xu 061dfe08eb Merge "Dump a copy of metadata file for full OTA" am: df5978803d
am: 407c972bfa

Change-Id: I910f06f7dd01013b7b21cafab3d06e38514a5963
2019-02-22 20:30:41 -08:00
Colin Cross c4114d9641 Merge "Update calls to dexpreopt_gen" am: 0450863eca
am: 39fb391e8f

Change-Id: I6093e9e136d8215d12d25fd22cddb5cbe61d08b2
2019-02-22 20:29:19 -08:00
Xin Li 1cc579adef Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master 2019-02-23 00:39:21 +00:00
Dan Willemsen ce54b9c8d8 Merge "Revert "First pass at creating PRODUCT_HOST_PACKAGES"" 2019-02-22 22:03:32 +00:00
Dan Willemsen 086f8f002c Revert "First pass at creating PRODUCT_HOST_PACKAGES"
This reverts commit 7218a21ed0.

Reason for revert: broke some side branches, and the mac build

Change-Id: Ifa52f2dbf9a383f69e07ba0aceb4742b05376364
Fixes: 125912305
2019-02-22 22:02:23 +00:00
Dan Willemsen 5cd6dc5a40 Merge "First pass at creating PRODUCT_HOST_PACKAGES" 2019-02-22 20:24:36 +00:00
Paul Duffin a0d31e733b Remove usages of legacy-test and legacy-android-test
Bug: 63127064
Test: TH
Change-Id: I2f71b8dab6a5303cae24e36d6519a4001af66063
2019-02-22 15:45:03 +00:00
Nicolas Geoffray 269bc741a5 Support for install multiple boot images.
Bug: 119800099
Test: m && /system/framework/arm/apex*.art files exist
Change-Id: I78023f1086446c2c44ff6b282993537b053c0588
2019-02-22 15:33:23 +00:00
Anton Hansson 4208c81ab9 Merge "Add support for *_CPU_VARIANT_RUNTIME flags" 2019-02-22 12:34:02 +00:00
Anton Hansson b5312392a0 Merge "Move ART cpu properties to /vendor" 2019-02-22 12:14:49 +00:00
Anton Hansson 299ffb7870 Merge "Add more BoardConfig variables to stash list" 2019-02-22 10:21:07 +00:00
Logan Chien 7d35910451 Merge "Refine lsdump_paths.txt dependencies" 2019-02-22 09:08:03 +00:00
Logan Chien 5f4e29b090 Refine lsdump_paths.txt dependencies
This commit moves $(LSDUMP_PATHS) from the prerequisite of
lsdump_paths.txt to the prerequisite of findlsdumps. This change makes
it possible to dump the list of lsdump files without actually building
all lsdump files.

Bug: 124829578
Test: make out/target/product/generic/lsdump_paths.txt
      # does not build the actual lsdump files
Test: make findlsdumps  # builds lsdump_paths.txt and all lsdump files
Change-Id: I924f1c0c61391e958521c376a061651f2a301adb
2019-02-22 10:55:44 +08:00
Dan Willemsen 46267cb4d8 Deprecate *.c[pp].arm
There never were too many users of this, and I've just converted the
last ones to Soong.

Test: diff build-aosp_arm.ninja
Test: treehugger
Change-Id: Ida6d486a62d0b521c1cd67f5f18c0ad0dbe957e3
2019-02-21 18:02:13 -08:00
Treehugger Robot f97ed91448 Merge "Add a wrapper file for the vts_config module." 2019-02-22 00:19:27 +00:00
Colin Cross 17ea341950 Use flags from Soong for d8 and r8
Use the flags provided by Soong when running d8 and r8.

Bug: 119270658
Test: m checkbuild
Change-Id: I9459ded386effc27c4c96f1e94f9ea2f8ed19319
2019-02-21 15:04:37 -08:00
Colin Cross 6128b1e8d6 Merge "Get DEXPREOPT_BOOT_JARS_MODULES from Soong" 2019-02-21 21:32:03 +00:00
Tianjie Xu df5978803d Merge "Dump a copy of metadata file for full OTA" 2019-02-21 18:00:55 +00:00
Xin Li 0e2ccf21c9 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: Ic9e8ff5af22140dc6ef8ff87a09f9292f9d30dc5
2019-02-21 09:32:40 -08:00