Skip to content

Commit

Permalink
Stop installing java goo into system.img
Browse files Browse the repository at this point in the history
  • Loading branch information
joneschrisg committed Jan 12, 2012
1 parent 1b9f7df commit 41aadeb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion core/base_rules.mk
Expand Up @@ -202,9 +202,19 @@ ifdef LOCAL_UNINSTALLABLE_MODULE
$(error $(LOCAL_PATH): Illegal use of LOCAL_UNINSTALLABLE_MODULE)
endif
else
LOCAL_INSTALLED_MODULE := $(LOCAL_MODULE_PATH)/$(LOCAL_MODULE_SUBDIR)$(LOCAL_INSTALLED_MODULE_STEM)
# B2G hackery: Prevent installing .jar and .apk modules on device
ifndef LOCAL_IS_HOST_MODULE
ifneq ($(strip $(filter $(LOCAL_MODULE_CLASS),APPS JAVA_LIBRARIES)),)
LOCAL_UNINSTALLABLE_MODULE=1
endif
endif
ifndef LOCAL_UNINSTALLABLE_MODULE
LOCAL_INSTALLED_MODULE := $(LOCAL_MODULE_PATH)/$(LOCAL_MODULE_SUBDIR)$(LOCAL_INSTALLED_MODULE_STEM)
endif
endif



# Assemble the list of targets to create PRIVATE_ variables for.
LOCAL_INTERMEDIATE_TARGETS += $(LOCAL_BUILT_MODULE)

Expand Down Expand Up @@ -569,6 +579,10 @@ $(foreach tag,$(LOCAL_MODULE_TAGS),\
## NOTICE files
###########################################################

# B2G hackery: notice_files.mk falls down when LOCAL_INSTALLED_MODULE
# is not defined for APPS
ifeq ($(strip $(filter $(LOCAL_MODULE_CLASS),APPS)),)
include $(BUILD_SYSTEM)/notice_files.mk
endif

#:vi noexpandtab

0 comments on commit 41aadeb

Please sign in to comment.