Last active
May 6, 2022 15:10
-
-
Save auxor/6e363e56eb1af430bfee8fe01916e4df to your computer and use it in GitHub Desktop.
phony package to override packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
MY_OVERRIDE_PACKAGES := \ | |
watchhome | |
LOCAL_MODULE := override_packages | |
LOCAL_MODULE_TAGS := optional | |
PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(MY_OVERRIDE_PACKAGES)) | |
include $(BUILD_PHONY_PACKAGE) |
@KonstantinRitt, No difference. MY_OVERRIDE_PACKAGES is defined for more readable.
Thanks for reply.
Anyways, this didn't work for me on kk.
After some investigations, I found a non-intrusive solution by adding
PACKAGES.$(LOCAL_MODULE).OVERRIDES :=
just before
include $(BUILD_PHONY_PACKAGE)
@KonstantinRitt I made a mistake. LOCAL_OVERRIDES_PACKAGES is not used by BUILD_PHONY_PACKAGE. I firstly post this in stackoverflow.
Where would I place the Android.mk file?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
Why MY_OVERRIDE_PACKAGES? Is there any difference between
MY_OVERRIDE_PACKAGES :=$(strip $ (MY_OVERRIDE_PACKAGES))
watchhome
LOCAL_OVERRIDES_PACKAGES :=
and
LOCAL_OVERRIDES_PACKAGES :=
watchhome
?