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

Commit 16624a11 authored by Sasha Smundak's avatar Sasha Smundak
Browse files

Use find-copy-subdir-files macro to eliminate foreach calls

This change facilitates configuration makefile conversion to starlark.

Test: treehugger
Bug: 172923994
Change-Id: I2e965a8568f9cd94f171e32c2fa444400ec868cb
parent 87b5c6a2
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -14,13 +14,9 @@

# Warning: this is actually a product definition, to be inherited from

include $(LOCAL_PATH)/common.mk
PRODUCT_COPY_FILES := \
  $(call find-copy-subdir-files,*.kl,$(LOCAL_PATH),system/usr/keylayout) \
  $(call find-copy-subdir-files,*.kcm,$(LOCAL_PATH),system/usr/keychars) \
  $(call find-copy-subdir-files,*.idc,$(LOCAL_PATH),system/usr/idc)

PRODUCT_COPY_FILES := $(foreach file,$(framework_keylayouts),\
    $(file):system/usr/keylayout/$(notdir $(file)))
PRODUCT_COPY_FILES += $(foreach file,$(framework_keycharmaps),\
    $(file):system/usr/keychars/$(notdir $(file)))

PRODUCT_COPY_FILES += $(foreach file,$(framework_keyconfigs),\
    $(file):system/usr/idc/$(notdir $(file)))