summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-09-21 21:20:01 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-09-21 21:20:01 +0000
commit2a9f2b37a7b20e25121a1b02782d1319b3d1884d (patch)
treeba4fff5fd1761708212a2b544a6a522eec32a15e
parent8e18fa22d190a0435874eed7fc8946eb69a25f2c (diff)
downloadOSELAS.Toolchain-2a9f2b37a7b20e25121a1b02782d1319b3d1884d.tar.gz
OSELAS.Toolchain-2a9f2b37a7b20e25121a1b02782d1319b3d1884d.tar.xz
* build_all.mk:
updated git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7498 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r--build_all.mk17
1 files changed, 7 insertions, 10 deletions
diff --git a/build_all.mk b/build_all.mk
index 80ed073..9f213d0 100644
--- a/build_all.mk
+++ b/build_all.mk
@@ -11,8 +11,8 @@ builddate = $(shell date +%y%m%d-%H%M)
subversionrev = $(strip $(shell svnversion))
configdir = ptxconfigs
-configfiles = $(wildcard $(configdir)/*.ptxconfig)
-configs = $(basename $(notdir $(wildcard $(configdir)/*.ptxconfig)))
+configfiles = $(wildcard $(configdir)/*.ptxconfig) $(wildcard $(configdir)/*/*.ptxconfig)
+configs = $(basename $(notdir $(configfiles)))
gstatedir = gstate
suffix_buildtime = .buildtag
@@ -79,15 +79,15 @@ endef
define BuildChain
$(call PrintHeaderMsg, Rebuild toolchain $(1) )
ptxdist distclean
- sed -e "s:\(PTXCONF_PREFIX\)=\"\(.*\)\":\1=\"\$\${PWD}/inst\2\":" $$< > ptxconfig
+ sed -e "s:\(PTXCONF_PREFIX\)=\"\(.*\)\":\1=\"\$\${PWD}/inst\2\":" $$< > selected_ptxconfig
- @instdir=. ptxconfig && echo $${PTXCONF_SYSROOT_CROSS}; \
+ @instdir=source ./selected_ptxconfig && echo $${PTXCONF_SYSROOT_CROSS}; \
if [ -d $$instdir ]; then \
echo "Removing existing toolchain files in $$instdir"; echo rm -rf "$$instdir/*"; \
fi;
- # -- Intentionally fix make target, we don't want to rebuild broken chains over and oover again
- # -- Update status output
+# -- Intentionally fix make target, we don't want to rebuild broken chains over and oover again
+# -- Update status output
echo -n "$(builddate)" > $$@
echo -n "?????" > $(gstatedir)/$(1)$(suffix_buildstatus)
echo -n "$(subversionrev)" > $(gstatedir)/$(1)$(suffix_buildrevision)
@@ -129,7 +129,7 @@ mkinstdirs :
rminstdirs :
$(call RemoveInstallDirs)
-$(gstatedir)/laststatus : $(gstatefiles) | mkblddatetag mkinstdirs
+$(gstatedir)/laststatus : $(gstatefiles) | mkblddatetag mkinstdirs mkgstatedir
@echo "Toolchain Status Changed - Status Page updated"
@date +%y%m%d-%H%M > $@
$(call UpdateStatusPage)
@@ -164,6 +164,3 @@ build_$(1) : $(gstatedir)/$(1).buildtag updatestatpage
endef
$(foreach CFG,$(configs),$(eval $(call BuildChainRules,$(CFG))))
-
-
-