summaryrefslogtreecommitdiffstats
path: root/build_all.mk
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-04-25 12:27:35 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-04-25 12:27:35 +0000
commit1e31a1147d050f3fb4a28de97276bd8cb10cba99 (patch)
tree8029ebe5de52e709725f73fa6d871f438735f653 /build_all.mk
parentbffba8047077b84811b10a2953c491355a7c969a (diff)
downloadOSELAS.Toolchain-1e31a1147d050f3fb4a28de97276bd8cb10cba99.tar.gz
OSELAS.Toolchain-1e31a1147d050f3fb4a28de97276bd8cb10cba99.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/branches/OSELAS.Toolchain-mkl@6238 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'build_all.mk')
-rw-r--r--build_all.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/build_all.mk b/build_all.mk
index b1a3330..80ed073 100644
--- a/build_all.mk
+++ b/build_all.mk
@@ -20,7 +20,7 @@ suffix_buildstatus = .status
suffix_buildrevision = .svnrev
gstatefiles = $(addprefix $(gstatedir)/,$(addsuffix $(suffix_buildtime),$(configs)))
-instdirs = $(foreach i,$(configfiles),$(shell . $i && echo $${PTXCONF_PREFIX} ))
+instdirs = $(foreach i,$(configfiles),$(shell . $i && echo $${PTXCONF_SYSROOT_CROSS} ))
distdir = dists
suffix_distarc = .tar.bz2
@@ -55,7 +55,7 @@ define UpdateStatusPage
@mv $(statuspagefile).tmp $(statuspagefile)
endef
-define SetupInstallDirs
+define SetupInstallDirs
@dirs=""; for i in $(instdirs); do \
if [ ! -d "$$i" ]; then \
echo "Creating install dir : $$i"; \
@@ -78,14 +78,14 @@ endef
define BuildChain
$(call PrintHeaderMsg, Rebuild toolchain $(1) )
- ptxdist distclean
- ptxdist select $$<
+ ptxdist distclean
+ sed -e "s:\(PTXCONF_PREFIX\)=\"\(.*\)\":\1=\"\$\${PWD}/inst\2\":" $$< > ptxconfig
- @instdir=. ptxconfig && echo $${PTXCONF_PREFIX}; \
+ @instdir=. 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
echo -n "$(builddate)" > $$@
@@ -121,7 +121,7 @@ mkgstatedir :
@mkdir -p $(gstatedir)
mkdistdir :
- @mkdir -p $(distdir)
+ @mkdir -p $(distdir)
mkinstdirs :
$(call SetupInstallDirs)
@@ -154,7 +154,7 @@ distclean : clean
define BuildChainRules
$(gstatedir)/$(1).buildtag : $(configdir)/$(1).ptxconfig | mkgstatedir mkdistdir updatestatpage_forced
- $(call BuildChain,$(1))
+ $(call BuildChain,$(1))
$(distdir)/$(1)$(suffix_distarc) : $(gstatedir)/$(1).buildtag
@echo "BROKEN FIXME - needs some way to derive install location from ptxconfig"