From 55b354327df23eaea0a00a7ac92be84166708703 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 13 May 2019 12:16:37 -0400 Subject: build: Support specific overrides in local.mk --- 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) -- cgit v0.9.1