summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-03-07 02:27:16 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-07 02:27:16 +0000
commit77285ffc9bb5bf565be31816e3c07ae65791b3f0 (patch)
treee8dfb16755d9f286fd102d6421c7c5eb122e3cde /core/definitions.mk
parentd52c6101b7dc4f318ac7a77da0eeb02d9951d5a6 (diff)
parent993ffb802ee90e07e73e67e523fd040395dfd74d (diff)
downloadbuild-77285ffc9bb5bf565be31816e3c07ae65791b3f0.zip
build-77285ffc9bb5bf565be31816e3c07ae65791b3f0.tar.gz
build-77285ffc9bb5bf565be31816e3c07ae65791b3f0.tar.bz2
am 993ffb80: Merge "Add all-S-files-under."
* commit '993ffb802ee90e07e73e67e523fd040395dfd74d': Add all-S-files-under.
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 8aacf1d..7e53c05 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -275,6 +275,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:
## SRC_FILES := $(call all-html-files-under,src tests)