diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2016-01-12 16:18:56 -0800 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2016-01-12 16:20:36 -0800 |
commit | 926e2c5327f321be697a09ecb1e8e11e3c57e1af (patch) | |
tree | 0ec4f4bbe34ac8ee0dc61e02d75dde67fd7c4b29 | |
parent | 5ba57377164dbc6dcb88536ba770c4e9acf7a9db (diff) | |
download | hikey-926e2c5327f321be697a09ecb1e8e11e3c57e1af.tar.gz |
hikey: Restrict makefiles for hikey target only
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r-- | Android.mk | 31 | ||||
-rw-r--r-- | build/tasks/boot_fat.mk | 4 |
2 files changed, 35 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 00000000..40604835 --- /dev/null +++ b/Android.mk @@ -0,0 +1,31 @@ +# +# Copyright (C) 2015 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. +# + +# WARNING: Everything listed here will be built on ALL platforms, +# including x86, the emulator, and the SDK. Modules must be uniquely +# named (liblights.panda), and must build everywhere, or limit themselves +# to only building on ARM if they include assembly. Individual makefiles +# are responsible for having their own logic, for fine-grained control. + +ifneq ($(filter hikey%, $(TARGET_DEVICE)),) + +LOCAL_PATH := $(call my-dir) + +# if some modules are built directly from this directory (not subdirectories), +# their rules should be written here. + +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/build/tasks/boot_fat.mk b/build/tasks/boot_fat.mk index f886659b..40cb2be1 100644 --- a/build/tasks/boot_fat.mk +++ b/build/tasks/boot_fat.mk @@ -1,3 +1,5 @@ +ifneq ($(filter hikey%, $(TARGET_DEVICE)),) + $(PRODUCT_OUT)/boot_fat.uefi.img: $(PRODUCT_OUT)/kernel $(PRODUCT_OUT)/hi6220-hikey.dtb $(PRODUCT_OUT)/ramdisk.img # $@ is referring to $(PRODUCT_OUT)/boot_fat.uefi.img dd if=/dev/zero of=$@ bs=512 count=98304 @@ -8,3 +10,5 @@ $(PRODUCT_OUT)/boot_fat.uefi.img: $(PRODUCT_OUT)/kernel $(PRODUCT_OUT)/hi6220-hi mcopy -i $@ $(PRODUCT_OUT)/ramdisk.img ::ramdisk.img droidcore: $(PRODUCT_OUT)/boot_fat.uefi.img + +endif |