From e3b044a0cc5ffb4817dfba412118ee4a3d273b63 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 11 Feb 2014 13:48:35 -0800 Subject: [PATCH] Add all-S-files-under. Change-Id: I25416e2acc850c61226bc7a8e0536384f6eb2dce --- core/definitions.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/definitions.mk b/core/definitions.mk index b34e27425..e0e960841 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -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: