summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-01-28 21:48:00 (EST)
committer P. J. McDermott <pjm@nac.net>2014-01-28 21:48:00 (EST)
commit91c0c1e45f668675e1596b1bc800245fbf736d59 (patch)
tree36db79adaafd9a965afb2a1694a97c335663d0da
parente3f6261bfddf8292cdb73cdbbcc39f9add80f370 (diff)
build: Override targets to disable cross builds.
-rwxr-xr-xbuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/build b/build
index 3063dda..9916c90 100755
--- a/build
+++ b/build
@@ -7,6 +7,15 @@
include ../source.mk
include ../targets.mk
+# Hardcode the targets to allow only native compilers for now.
+configure_targets = configure-$(OPK_HOST_ARCH)
+build_targets = build-$(OPK_HOST_ARCH)
+buildnative_targets = buildnative-$(OPK_HOST_ARCH)
+buildcross_targets = buildcross-$(OPK_HOST_ARCH)
+install_targets = install-$(OPK_HOST_ARCH)
+installnative_targets = installnative-$(OPK_HOST_ARCH)
+installcross_targets = installcross-$(OPK_HOST_ARCH)
+
base_version = $$(printf '%s\n' '$(OPK_SOURCE)' | sed 's/^gcc-//')
target = $$(printf '%s' '$@' | sed 's/^[a-z]*-//')
@@ -84,6 +93,8 @@ $(build_targets): configure
# These default values are in header files in gcc/config. They must be
# edited here rather than in a patch because any given GCC target
# configuration can be used by multiple ProteanOS targets.
+ # XXX: These commands run once per target, but they screw up the src/
+ # directory and probably make things break.
set -e; \
. "../targets.d/$(target).sh"; \
mv "src/gcc/config/$${gcc_config_file}" \