summaryrefslogtreecommitdiffstats
path: root/rules/other
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-10-02 11:34:24 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-10-28 11:35:56 +0200
commit9333a284047a6c5551fdd1bff006fd51b3948422 (patch)
treed5f59895099ab6e57d22cd662d9ad37b4101d543 /rules/other
parentbf46911deb9c5ced647a006dff8fa2d9bb08f409 (diff)
downloadptxdist-9333a284047a6c5551fdd1bff006fd51b3948422.tar.gz
ptxdist-9333a284047a6c5551fdd1bff006fd51b3948422.tar.xz
[rules] define and use PTXDIST_PATH_(PRE|POST)RULES
Don't explicitly use workspace and ptxdist rules dirs when including pre and post makefiles. Use a path variable instead. It's now possible to add pre and post makefiles in the platform. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/other')
-rw-r--r--rules/other/Toplevel.make6
1 files changed, 2 insertions, 4 deletions
diff --git a/rules/other/Toplevel.make b/rules/other/Toplevel.make
index 1d6692731..6f1616bac 100644
--- a/rules/other/Toplevel.make
+++ b/rules/other/Toplevel.make
@@ -37,10 +37,9 @@ endif
include $(PTX_MAP_ALL_MAKE)
include $(RULESDIR)/other/Namespace.make
-include $(wildcard $(PRERULESDIR)/*.make)
# might be non existent
-include $(wildcard $(PROJECTPRERULESDIR)/*.make)
+include $(wildcard $(addsuffix /*.make,$(subst :,$(space),$(PTXDIST_PATH_PRERULES))))
include $(PTX_DGEN_DEPS_PRE)
include $(PTX_DGEN_RULESFILES_MAKE)
@@ -96,8 +95,7 @@ PTX_PACKAGES_INSTALL := \
$(PACKAGES-b)
# might be non existent
-include $(wildcard $(POSTRULESDIR)/*.make)
-include $(wildcard $(PROJECTPOSTRULESDIR)/*.make)
+include $(wildcard $(addsuffix /*.make,$(subst :,$(space),$(PTXDIST_PATH_POSTRULES))))
# install_alternative and install_copy has some configuration defined
# dependencies. include the files specifying these dependencies.
include $(wildcard $(STATEDIR)/*.deps)