summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-31 16:52:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-31 16:52:32 +0000
commit55258b4acd815932dc737c65da51a697833cfa1d (patch)
treef967e9c9d63eac1e0a20f7bbfa7681eb359ad81a /make
parentMake.config (diff)
downloadrtems-55258b4acd815932dc737c65da51a697833cfa1d.tar.bz2
Fixed CUSTOM_FILES rule so it properly picked up files included from
make/custom files.
Diffstat (limited to 'make')
-rw-r--r--make/Makefile.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/make/Makefile.in b/make/Makefile.in
index b0b46da19b..7b281a3bbf 100644
--- a/make/Makefile.in
+++ b/make/Makefile.in
@@ -29,9 +29,18 @@ MAKEFILES := README \
# NOTE: Use the wildcard rule to install all custom files
# CUSTOM_FILES := $(wildcard $(srcdir)/custom/*.cfg)
+
# NOTE: This should be sufficient, but may fail for some BSPS:
-# Get all custom files for the BSP family, they may depend on eachother
-CUSTOM_FILES := custom/default.cfg $(patsubst %,custom/%.cfg,@RTEMS_BSP_LIST@)
+# Get all custom files for the BSP family, they may depend on each other
+#CUSTOM_FILES := custom/default.cfg $(patsubst %,custom/%.cfg, posix)
+
+# This version of the rule is pretty ugly but I think it works ALL the time.
+# + Figure out what this BSP.cfg includes
+# + Make those files have the correct relative path.
+# + Now fix $(RTEMS_HOST) to the real host name
+CUSTOM_FILES := custom/default.cfg custom/$(RTEMS_BSP).cfg \
+ $(shell grep "^include.*make/custom" $(srcdir)/custom/$(RTEMS_BSP).cfg | \
+ sed -e 's/^.*make\///' | sed -e s/\\$$\(RTEMS_HOST\)/${RTEMS_HOST}/)
# NOTE: Use the wildcard rule to install all compiler files
# COMPILER_FILES := $(wildcard $(srcdir)/compilers/*.cfg)