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

Commit dacc323a authored by codeworkx's avatar codeworkx Committed by Ricardo Cerqueira
Browse files

charger: allow custom charger res

Example: BOARD_CHARGER_RES := device/samsung/galaxys2/res/charger

Change-Id: I4cf359974475c06d219cb92c38efa2b8223ae367
parent 5e619b59
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -39,8 +39,13 @@ endef

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

include $(CLEAR_VARS)
LOCAL_MODULE := charger_res_images