summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-12-24 19:25:58 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-12-24 21:42:08 -0600
commitfd9366c85cdb627886901b7c09ef267b294d5d98 (patch)
treeff731698e13c1704c03aaab40957cf40a34db969 /bootstrap
parentcdd98fc187aae086de5e4ca5fe4d693568963431 (diff)
prep work to eliminated Env.*.sh, introduce config_{host,build}.mk
This introduce config_host.mk and config_build.mk generated from config_host.mk.in The intent is for that file to be both sourcable in a shell and includable in a gnu Makefile. Eventually all the environment set-up will be in config_host.mk.in and so there won't be a need to source anything in shell before make.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 26ade9a9ce89..9faa842f304c 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,5 +1,14 @@
#!/bin/sh
+if test -z "${SRC_ROOT}"; then
+ if test -f ./config_build.mk ; then
+ . ./config_build.mk
+ else
+ if test -f ./config_host.mk ; then
+ . ./config_host.mk
+ fi
+ fi
+fi
if test -z "${SOLARENV}"; then
if test -f ./Env.Build.sh ; then
. ./Env.Build.sh