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

Commit e3b044a0 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Add all-S-files-under.

Change-Id: I25416e2acc850c61226bc7a8e0536384f6eb2dce
parent 145562fc
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -274,6 +274,19 @@ $(patsubst ./%,%, \
  )
endef

###########################################################
## Find all of the S files under the named directories.
## Meant to be used like:
##    SRC_FILES := $(call all-c-files-under,src tests)
###########################################################

define all-S-files-under
$(patsubst ./%,%, \
  $(shell cd $(LOCAL_PATH) ; \
          find -L $(1) -name "*.S" -and -not -name ".*") \
 )
endef

###########################################################
## Find all of the html files under the named directories.
## Meant to be used like: