diff options
author | P. J. McDermott <pjm@nac.net> | 2013-04-26 17:37:13 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-04-26 17:37:13 (EDT) |
commit | 207cc600808b40a882b54aae61085632ec2776aa (patch) | |
tree | 165dc6dafd8e52f9866ba444133e8aa968b81a30 | |
parent | a7522f5da26a81e55cbf2255bdf2205408f4b37a (diff) |
Add buildnative and buildcross targets to build.
-rwxr-xr-x | build | 19 | ||||
-rwxr-xr-x | config | 4 |
2 files changed, 20 insertions, 3 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 $@ @@ -18,8 +18,8 @@ main() PKG_TARGET_ARCH="${arch}" configure_build done >targets.mk - for stamp in configure build install \ - installnative installcross; do + for stamp in configure build buildnative buildcross \ + install installnative installcross; do printf '%s_targets = \\\n' "${stamp}" \ >>targets.mk for arch in ${PKG_TARGETS}; do |