core: Make fake packages have real installed files for proper dependencies
Change-Id: I3145440eea0fbbd8ba22a2b3b0511f4c18f90eca Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
parent
8666dd63c7
commit
531f524256
|
@ -234,6 +234,7 @@ TARGET_OUT_KEYCHARS := $(TARGET_OUT)/usr/keychars
|
|||
TARGET_OUT_ETC := $(TARGET_OUT)/etc
|
||||
TARGET_OUT_STATIC_LIBRARIES:= $(TARGET_OUT_INTERMEDIATES)/lib
|
||||
TARGET_OUT_NOTICE_FILES:=$(TARGET_OUT_INTERMEDIATES)/NOTICE_FILES
|
||||
TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages
|
||||
|
||||
TARGET_OUT_DATA := $(PRODUCT_OUT)/data
|
||||
TARGET_OUT_DATA_EXECUTABLES:= $(TARGET_OUT_EXECUTABLES)
|
||||
|
|
|
@ -571,8 +571,7 @@ $(foreach m,$(ALL_MODULES), \
|
|||
$(eval r := $(ALL_MODULES.$(m).REQUIRED)) \
|
||||
$(if $(r), \
|
||||
$(eval r := $(call module-installed-files,$(r))) \
|
||||
$(eval i := $(ALL_MODULES.$(m).INSTALLED)) \
|
||||
$(eval $(if $(i), $(call add-required-deps,$(i),$(r)))) \
|
||||
$(eval $(call add-required-deps,$(ALL_MODULES.$(m).INSTALLED),$(r))) \
|
||||
) \
|
||||
)
|
||||
m :=
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
LOCAL_MODULE_CLASS := _FAKE_
|
||||
|
||||
ifneq ($(strip $(LOCAL_SRC_FILES)),)
|
||||
$(error LOCAL_SRC_FILES are not allowed for phony packages)
|
||||
endif
|
||||
|
@ -8,11 +6,12 @@ ifeq ($(strip $(LOCAL_REQUIRED_MODULES)),)
|
|||
$(error LOCAL_REQUIRED_MODULES is required for phony packages)
|
||||
endif
|
||||
|
||||
.PHONY: $(LOCAL_MODULE)
|
||||
LOCAL_MODULE_CLASS := FAKE
|
||||
LOCAL_MODULE_SUFFIX := -timestamp
|
||||
|
||||
$(LOCAL_MODULE): $(LOCAL_REQUIRED_MODULES)
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
|
||||
ALL_MODULES += $(LOCAL_MODULE)
|
||||
ALL_MODULES.$(LOCAL_MODULE).CLASS := _FAKE_
|
||||
|
||||
PACKAGES := $(PACKAGES) $(LOCAL_MODULE)
|
||||
$(LOCAL_BUILT_MODULE):
|
||||
$(hide) echo "Fake: $@"
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
$(hide) touch $@
|
||||
|
|
Loading…
Reference in New Issue