diff --git a/core/definitions.mk b/core/definitions.mk index fab5e42aaa..a817026036 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -660,7 +660,8 @@ endef ########################################################### define module-stubs-files -$(foreach module,$(1),$(ALL_MODULES.$(module).STUBS)) +$(foreach module,$(1),$(if $(filter $(module),$(JAVA_SDK_LIBRARIES)),\ +$(call java-lib-files,$(module).stubs),$(ALL_MODULES.$(module).STUBS))) endef ###########################################################