Skip to content

Commit

Permalink
Remove the need to find Android.mk files via directory symlinks
Browse files Browse the repository at this point in the history
Bug: 64397960
Test: m -j
Change-Id: I5b77dd654dfced63900913c447b5448b632158d7
  • Loading branch information
mathjeff committed Aug 7, 2017
1 parent 1a7b46b commit 5c1f3fd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Android.mk

This file was deleted.

23 changes: 23 additions & 0 deletions target/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright (C) 2017 The Android Open Source Project
#
# 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.
#

LOCAL_PATH := $(call my-dir)

# Only if this Android.mk was included not by a symlink should it be used.
# This facilitates the transition away from symlinks: b/64397960
ifeq ($(LOCAL_PATH),build/make/target)
include $(call first-makefiles-under,$(LOCAL_PATH))
endif
4 changes: 4 additions & 0 deletions tools/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@

LOCAL_PATH := $(call my-dir)

# Only if this Android.mk was included not by a symlink should it be used.
# This facilitates the transition away from symlinks: b/64397960
ifeq ($(LOCAL_PATH),build/make/tools)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

0 comments on commit 5c1f3fd

Please sign in to comment.