Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c07d49ae authored by Scott Mertz's avatar Scott Mertz Committed by Michael Bestas
Browse files

healthd: allow custom charger images

Change-Id: I1380bea300bfaa6819d50bdc813329c93050286a
(cherry picked from commit b6ebd65c)
parent 9d4876fe
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -200,8 +200,13 @@ include $$(BUILD_PREBUILT)
endef

_img_modules :=
ifeq ($(strip $(BOARD_HEALTHD_CUSTOM_CHARGER_RES)),)
IMAGES_DIR := images
else
IMAGES_DIR := ../../../$(BOARD_HEALTHD_CUSTOM_CHARGER_RES)
endif
_images :=
$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \
$(foreach _img, $(call find-subdir-subdir-files, "$(IMAGES_DIR)", "*.png"), \
  $(eval $(call _add-charger-image,$(_img))))

include $(CLEAR_VARS)