summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-13 12:16:37 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-13 12:16:37 (EDT)
commit55b354327df23eaea0a00a7ac92be84166708703 (patch)
treea9edaa8c65863b16219bb20ea42b6615d6482aab /build
parenta8671f48c972ad0e7ae3555d0efae1ad2413fa2a (diff)
build: Support specific overrides in local.mk
Diffstat (limited to 'build')
-rwxr-xr-xbuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/build b/build
index 8c61353..a4abc67 100755
--- a/build
+++ b/build
@@ -62,6 +62,10 @@ bootstrap1_opts = \
--disable-libgomp \
--disable-libssp
+extra_opts =
+native_target = bootstrap-lean
+cross_target = all-gcc
+jobs = 1
include ../local.mk
nop:
@@ -76,11 +80,13 @@ $(configure_targets):
if [ 'x$(OPK_HOST_PLAT)' = 'xbootstrap1' ]; then \
oh-autoconfigure -B "$(builddir)" -t "$(target)" -- \
$(bootstrap1_opts) \
- $${target_opts}; \
+ $${target_opts} \
+ $(extra_opts); \
else \
oh-autoconfigure -B "$(builddir)" -t "$(target)" -- \
$(full_opts) \
- $${target_opts}; \
+ $${target_opts} \
+ $(extra_opts); \
fi
touch $@
@@ -119,14 +125,16 @@ $(build_targets): configure
touch $@
$(buildnative_targets):
- oh-autobuild -B "$(builddir)" -T bootstrap-lean -- -j $${JOBS:-1} \
+ oh-autobuild -B "$(builddir)" -T $(native_target) -- \
+ -j $${JOBS:-$(jobs)} \
user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)"
#if [ '$(OPK_BUILD_ARCH)' = '$(OPK_HOST_ARCH)' ]; then \
# cd "$(builddir)" && make -k check; \
#fi
$(buildcross_targets):
- oh-autobuild -B "$(builddir)" -T all-gcc -- -j $${JOBS:-1} \
+ oh-autobuild -B "$(builddir)" -T $(cross_target) -- \
+ -j $${JOBS:-$(jobs)} \
user_tooldir_prefix="/usr/lib/$(target)/gcc-$(base_version)"
build: $(build_targets)