Commit Graph

11039 Commits

Author SHA1 Message Date
Vishwath Mohan
a2c3dd313a Merge "Create sub-directory for fuzzers under nativetest." am: 0464662888
am: fc7f43954b

Change-Id: I3e9b1ebeb66c8e2d7ab7cb6ef8d5fa281ca474cd
2016-09-02 21:43:40 +00:00
Casey Dahlin
29e2b21c0a Add tool to copy files in to fat16 images
fat16copy.py can be used to copy files or directories in to the root of
a fat16 image.

Usage: fat16copy <image> <file> [<file> ...]

Test: Used to compose a Raspberry Pi 3 boot image
Bug: 28912590
Change-Id: I29c9eec3786e2c5cc94f9a160360bac850809a93
2016-09-02 14:13:47 -07:00
Vishwath Mohan
b6baba059b Create sub-directory for fuzzers under nativetest.
This CL changes BUILD_FUZZ_TEST to generate binaries in a
sub-directory called fuzzers/ under the nativetest directory. This
allows fuzzers to be distinguished from the other native tests and
makes it easier to perform automated fuzz-testing.

Bug: 25714111
Change-Id: I452e43f15728ec9168dd44776b6ffcea6037fa7f
2016-09-02 13:25:59 -07:00
Colin Cross
70e0ac6bc1 Remove HOST_PREFER_32_BIT
HOST_PREFER_32_BIT was used during the switch to 64-bit host tools to
keep the SDK building as 32-bit, but is never set any more.

Change-Id: I874f89c7d1e9cd8c9d4c879048d81a4362ce4dce
2016-09-02 13:20:52 -07:00
Colin Cross
e3525d90d1 Merge "Don't double-wrap with gomacc" am: b7a12806b1 am: 70683c3ccf
am: 5c16219854

Change-Id: I5c90cd78c4644a93d95158063577964f55da02ec
2016-09-01 16:15:37 +00:00
Colin Cross
5c16219854 Merge "Don't double-wrap with gomacc" am: b7a12806b1
am: 70683c3ccf

Change-Id: I041bdcc7d533109749df3b2c07597c098ecd8821
2016-09-01 16:12:25 +00:00
Colin Cross
b7a12806b1 Merge "Don't double-wrap with gomacc" 2016-09-01 15:59:38 +00:00
Colin Cross
825ea362b1 Merge "Create more shortcut phony targets" am: 44303e9f26 am: dc56268641
am: 1a276819a1

Change-Id: Ifaeb152d2fa108ed64fa4652841d4c13c1d9f5fe
2016-08-31 21:27:54 +00:00
Colin Cross
1a276819a1 Merge "Create more shortcut phony targets" am: 44303e9f26
am: dc56268641

Change-Id: Ic33ee46b73f6f56646ad8a6b69fef023e510cad0
2016-08-31 21:23:28 +00:00
Colin Cross
44303e9f26 Merge "Create more shortcut phony targets" 2016-08-31 21:16:22 +00:00
Colin Cross
44005d41dc Don't double-wrap with gomacc
config.mk is parsed by make and then kati, and goma.mk appends to
CC_WRAPPER.  Only export it from make so gomacc doesn't appear twice on
the command line.

Bug: 31142427
Change-Id: I5ad97ee3a00b013faa620215c839499b48528e00
2016-08-31 13:51:16 -07:00
Colin Cross
85b2b926de Merge "Enable goma in soong" am: 753ed863c5 am: cc7f1318e9
am: 00570bbbb3

Change-Id: I0344c8a2c9d2a34f36ee5d68be5ca5ebec76f60a
2016-08-31 20:27:02 +00:00
Colin Cross
00570bbbb3 Merge "Enable goma in soong" am: 753ed863c5
am: cc7f1318e9

Change-Id: I329831ecf9e4b38dbf8d7fdb76a9bba3288f5b70
2016-08-31 20:21:18 +00:00
Colin Cross
5a5befb7c0 Enable goma in soong
Pass the USE_GOMA flag to soong, and export the CC_WRAPPER environment
variable after adding gomacc to it.

Bug: 31142427
Change-Id: I6de698a40817c0615b03fa17bd27075465d79ffd
2016-08-31 09:48:21 -07:00
Dan Willemsen
458724219a Merge "Simplify Soong bootstrapping" am: 2e5dc07c1f am: 67dc1c2e4c
am: 4b6275848c

Change-Id: Iaf5ea3e651e025701a8cedf091c18d4130f97947
2016-08-31 16:17:29 +00:00
Dan Willemsen
4b6275848c Merge "Simplify Soong bootstrapping" am: 2e5dc07c1f
am: 67dc1c2e4c

Change-Id: I9ba778c1d632e7659cf2343078bb6778a31ad13f
2016-08-31 16:14:28 +00:00
Dan Willemsen
0533e4df40 Simplify Soong bootstrapping
Now we only run the "main" stage from Soong once, and only when combined
with the Kati ninja file. So we can now depend on pools or rules defined
by Kati in Soong.

Change-Id: I7a8fd699ddc0d41bbcbbf3c6f2edb9e26ccfc4c9
2016-08-31 00:58:12 -07:00
Colin Cross
b43204b2ac Create more shortcut phony targets
Create shortcut phony targets for the host and device halves of
modules.

Change-Id: I1cf3a49118db830d78a1b83b2177715175949871
2016-08-30 16:16:32 -07:00
Dan Willemsen
9b02b82945 Merge "Check USE_GOMA consistently" am: 049dd57872 am: 60204ae5ba
am: f1d3d9aab7

Change-Id: I0a943e77cf07728850b2547334a2a9568f47457c
2016-08-30 01:21:43 +00:00
Dan Willemsen
f1d3d9aab7 Merge "Check USE_GOMA consistently" am: 049dd57872
am: 60204ae5ba

Change-Id: I4bb034cecfab78d3a4b5683cd356c6230a04cc7a
2016-08-30 01:19:21 +00:00
Treehugger Robot
049dd57872 Merge "Check USE_GOMA consistently" 2016-08-29 20:36:00 +00:00
Pirama Arumuga Nainar
944bb9aec5 Merge "Switch to prebuilt clang-3217047" am: 3500ddfe1b am: c3c8abdf2a
am: c328dd288c

Change-Id: I22502731f28d8875497a2c520e9947d3d9983ff3
2016-08-29 20:02:28 +00:00
Pirama Arumuga Nainar
c328dd288c Merge "Switch to prebuilt clang-3217047" am: 3500ddfe1b
am: c3c8abdf2a

Change-Id: I6cba69a16581e322342a577c05b1fff051db53ab
2016-08-29 19:58:36 +00:00
Pirama Arumuga Nainar
3500ddfe1b Merge "Switch to prebuilt clang-3217047" 2016-08-29 19:38:34 +00:00
Dan Willemsen
937cef48eb Check USE_GOMA consistently
Currently, the only way to properly disable goma is to unset USE_GOMA.
If you set USE_GOMA=false, we won't turn on goma, but we'll pass -j500
to ninja.

Test: USE_GOMA={x,false} m -j48 showcommands (inspect)
Change-Id: I6b327d08ebadbe614a3bf7646fd597054bbfaaa2
2016-08-27 18:33:11 -07:00
Dan Willemsen
b2bf9125f2 Merge "Identify modules ready to be converted to Soong" am: c6bada8acd am: 6596082d00
am: 52438f9fcf

Change-Id: I3d2aec41ae42b05006cea2837968174edd97817a
2016-08-26 22:54:34 +00:00
Dan Willemsen
52438f9fcf Merge "Identify modules ready to be converted to Soong" am: c6bada8acd
am: 6596082d00

Change-Id: I2e814051643c339054ccc02ae2823a6c2fd80e46
2016-08-26 22:52:02 +00:00
Treehugger Robot
c6bada8acd Merge "Identify modules ready to be converted to Soong" 2016-08-26 22:37:19 +00:00
Pirama Arumuga Nainar
6290aac57a Switch to prebuilt clang-3217047
Bug: http://b/30421084
Change-Id: I41acd016992a0c5043b6ea018f205fad44c88b9e
Test: Tested build, boot and common usage for several devices in AOSP
and internal branch.
2016-08-26 21:57:29 +00:00
Dan Willemsen
fc92fb2b9b Identify modules ready to be converted to Soong
The output will be in the `m dist` results as soong_to_convert.txt, or
can be built using:

  $ m $OUT/soong_to_convert.txt

The output is a list of modules that are probably ready to convert to
Soong:

  # Blocked on Module (potential problems)
           283 libEGL (srcs_dotarm)
           246 libicuuc (dotdot_incs dotdot_srcs)
           221 libspeexresampler
           215 libcamera_metadata
               ...
             0 zram-perf (dotdot_incs)

The number at the beginning of the line shows how many native modules
depend on that module.

All of their dependencies have been satisfied, and any potential
problems that Make can detect are listed in parenthesis after the
module:

  dotdot_srcs: LOCAL_SRC_FILES contains paths outside $(LOCAL_PATH)
  dotdot_incs: LOCAL_C_INCLUDES contains paths include '..'
  srcs_dotarm: LOCAL_SRC_FILES contains source files like <...>.c.arm
  aidl: LOCAL_SRC_FILES contains .aidl sources
  dbus: LOCAL_SRC_FILES contains .dbus-xml sources
  objc: LOCAL_SRC_FILES contains Objective-C sources
  proto: LOCAL_SRC_FILES contains .proto sources
  rs: LOCAL_SRC_FILES contains renderscript sources
  vts: LOCAL_SRC_FILES contains .vts sources

Not all problems can be discovered, but this is a starting point.

Change-Id: I45674fe93fd267d4d1fb0bc3bc9aa025e20c5ac6
2016-08-26 13:33:31 -07:00
Adam Seaton
78fb4b616f Update comments around PLATFORM_SECURITY_LEVEL (nyc-dev) Bug: 29881091 am: c63e4295ef am: 89c03f5748
am: 57866742e7

Change-Id: I378f4a0494c2b067d41676becf35663d9155cb1f
2016-08-26 03:16:47 +00:00
Adam Seaton
569906e169 Update comments around PLATFORM_SECURITY_LEVEL (nyc-dev) Bug: 29881091 am: c63e4295ef
am: a43f790608

Change-Id: I0d7feb17c8f8fd74c73714657417ba03cab74f75
2016-08-26 03:14:16 +00:00
Adam Seaton
a43f790608 Update comments around PLATFORM_SECURITY_LEVEL (nyc-dev) Bug: 29881091
am: c63e4295ef

Change-Id: Ia7286a170445e19aec836432421be970691ab6b0
2016-08-26 03:11:47 +00:00
Adam Seaton
89c03f5748 Update comments around PLATFORM_SECURITY_LEVEL (nyc-dev) Bug: 29881091
am: c63e4295ef

Change-Id: I9cb5cbb053ebb79b08a0d75bff21932bb8eaee33
2016-08-26 03:11:47 +00:00
Adam Seaton
c63e4295ef Update comments around PLATFORM_SECURITY_LEVEL
(nyc-dev)
Bug: 29881091

Change-Id: I2bdaf7f796ab94b14416aaed6d68dc3a239ea5f9
2016-08-25 19:46:06 -07:00
Colin Cross
d208a577f4 Merge "Export TARGET_PREFER_32_BIT_EXECUTABLES to soong" am: fe3163400e am: a7553ae1ce
am: 79e4dff44c

Change-Id: I5d92ea03a46d9a3bb5e475b4d1f26ef3de68bfd2
2016-08-26 00:12:17 +00:00
Colin Cross
79e4dff44c Merge "Export TARGET_PREFER_32_BIT_EXECUTABLES to soong" am: fe3163400e
am: a7553ae1ce

Change-Id: I0fe9b722531df9e9ee1367605e418d91b986f3ba
2016-08-26 00:09:04 +00:00
Colin Cross
76c4533899 Export TARGET_PREFER_32_BIT_EXECUTABLES to soong
Change-Id: I1427d88c7539c5ed0c4c238bad4a28f73d29ef0f
2016-08-25 14:49:17 -07:00
Colin Cross
118f909d21 Merge "Install symlinks when using shortcut phony targets" am: 6f1cf129f2 am: f9ed0fffe4
am: 7d26f58c09

Change-Id: I0b2c5683a90ee2a473d5ae5d5c32b902e087f5fc
2016-08-25 20:52:16 +00:00
Colin Cross
7d26f58c09 Merge "Install symlinks when using shortcut phony targets" am: 6f1cf129f2
am: f9ed0fffe4

Change-Id: Idfc6453e8581b58fbc584f2a7c5d0fd8b605b805
2016-08-25 20:49:45 +00:00
Colin Cross
6f1cf129f2 Merge "Install symlinks when using shortcut phony targets" 2016-08-25 20:39:31 +00:00
Chih-hung Hsieh
385c2af183 Merge "Suppress clang-tidy checks in frameworks/compile/mclinker." am: a9ee94f441 am: 5c2ca39c58
am: 920f36ad97

Change-Id: I78ee24eda973aa9b5290cdfbf62c6cc4faa174c2
2016-08-25 02:40:28 +00:00
Chih-hung Hsieh
920f36ad97 Merge "Suppress clang-tidy checks in frameworks/compile/mclinker." am: a9ee94f441
am: 5c2ca39c58

Change-Id: I99de763757298270f6ce4cc124cc6ead840ace02
2016-08-25 02:36:57 +00:00
Chih-hung Hsieh
a9ee94f441 Merge "Suppress clang-tidy checks in frameworks/compile/mclinker." 2016-08-25 02:24:32 +00:00
Colin Cross
6d34b61bd3 Install symlinks when using shortcut phony targets
Make symlinks an order-only dependency of the module name phony target
so that they get installed with make module or make MODULES-IN-path.

Test: mmma -j art/dalvikvm, remove symlink in $OUT and retry
Change-Id: Iae472a1c8fa1e8386cc9556cfe819bd4fca99428
2016-08-24 15:24:29 -07:00
Yohann Roussel
760ece009b Merge "Allow selection of prebuilts min sdk" am: 624619d4d0 am: 1d7e0f2c74
am: 51403950b3

Change-Id: I59906380334fd96d70044b7d5253ea703ab08690
2016-08-24 09:54:54 +00:00
Yohann Roussel
51403950b3 Merge "Allow selection of prebuilts min sdk" am: 624619d4d0
am: 1d7e0f2c74

Change-Id: I54d5035cecbfa6785a68c9d454ffb27a5e8346cd
2016-08-24 09:52:28 +00:00
Yohann Roussel
1d7e0f2c74 Merge "Allow selection of prebuilts min sdk"
am: 624619d4d0

Change-Id: I54df2acb3003c0222b3f3d909d3f9c80dfda493d
2016-08-24 09:50:29 +00:00
Yohann Roussel
624619d4d0 Merge "Allow selection of prebuilts min sdk" 2016-08-24 09:39:30 +00:00
Chih-Hung Hsieh
b9ea8d191d Suppress clang-tidy checks in frameworks/compile/mclinker.
Too many warnings need to wait for upstream changes.
Test: build with WITH_TIDY=1.

Change-Id: I0b1272049ad757670182668db130512a538b3096
2016-08-23 11:07:19 -07:00