diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -52,6 +52,14 @@ configure: $(configure_targets) touch $@ $(build_targets): configure + if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \ + $(MAKE) -f ../build "buildnative-$(target)"; \ + else \ + $(MAKE) -f ../build "buildcross-$(target)"; \ + fi + touch $@ + +$(buildnative_targets): libsubdir="/usr/lib/$(target)/gcc-$(base_version)" && \ oh-autobuild -B "$(builddir)" -T bootstrap-lean -- -j $${JOBS:-1} \ libsubdir="$${libsubdir}" \ @@ -60,7 +68,16 @@ $(build_targets): configure fincludedir="$${libsubdir}/finclude" \ toolexeclibdir="/usr/lib/$(target)" \ MULTIOSDIR= - touch $@ + +$(buildcross_targets): + libsubdir="/usr/lib/$(target)/gcc-$(base_version)" && \ + oh-autobuild -B "$(builddir)" -T all-gcc -- -j $${JOBS:-1} \ + libsubdir="$${libsubdir}" \ + libexecsubdir="$${libsubdir}" \ + libsubincludedir="$${libsubdir}/include" \ + fincludedir="$${libsubdir}/finclude" \ + toolexeclibdir="/usr/lib/$(target)" \ + MULTIOSDIR= build: $(build_targets) touch $@ |