diff options
author | P. 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) |
commit | 91c0c1e45f668675e1596b1bc800245fbf736d59 (patch) | |
tree | 36db79adaafd9a965afb2a1694a97c335663d0da | |
parent | e3f6261bfddf8292cdb73cdbbcc39f9add80f370 (diff) |
build: Override targets to disable cross builds.
-rwxr-xr-x | build | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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}" \ |