diff options
author | Dan Willemsen <dwillemsen@google.com> | 2019-08-29 14:47:40 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-11-21 14:47:59 -0800 |
commit | db14db3a06d2bfcbc0ab775cdf56630f56a5c957 (patch) | |
tree | 42c980591e099a7039f479ec679ec5bdaf05b68f /makedeps/Android.bp | |
parent | 0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d (diff) | |
download | android_build_soong-db14db3a06d2bfcbc0ab775cdf56630f56a5c957.tar.gz android_build_soong-db14db3a06d2bfcbc0ab775cdf56630f56a5c957.tar.bz2 android_build_soong-db14db3a06d2bfcbc0ab775cdf56630f56a5c957.zip |
Rewrite depfile from sbox to stay reproducible
sbox will generate a random directory for the output root, and most
tools will encode that directory name in the output target of the
depfile.
So embed the library from dep_fixer into sbox so that it can rewrite the
output filename to a static (reproducible) value. Ninja doesn't care
what that value is, so it's just "outputfile".
Also fix up rule_builder to actually tell sbox about the depfile.
Bug: 144948629
Test: mmma system/iorap; check the contents of:
out/soong/.intermediates/system/iorap/libiorap-binder/android_arm_armv7-a-neon_core_static/gen/aidl/system/iorap/binder/com/google/android/startop/iorap/IIorap.cpp.d
Change-Id: I3640a2e8b0c034f143a35e398a8418a6d621b265
Merged-In: I3640a2e8b0c034f143a35e398a8418a6d621b265
(cherry picked from commit c89b6f19810d368d7d5c128407c3eaaa5e3b2e81)
Diffstat (limited to 'makedeps/Android.bp')
-rw-r--r-- | makedeps/Android.bp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makedeps/Android.bp b/makedeps/Android.bp new file mode 100644 index 00000000..b77b08f0 --- /dev/null +++ b/makedeps/Android.bp @@ -0,0 +1,21 @@ +// Copyright 2019 Google Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +bootstrap_go_package { + name: "soong-makedeps", + pkgPath: "android/soong/makedeps", + deps: ["androidmk-parser"], + srcs: ["deps.go"], + testSrcs: ["deps_test.go"], +} |