2012-07-03 14:23:32 +00:00
|
|
|
PATH_PREFIX := .
|
|
|
|
VARIANT:=final
|
2014-06-29 11:03:42 +00:00
|
|
|
HOST_BUILD_PARALLEL:=0
|
2009-01-08 01:49:11 +00:00
|
|
|
|
2012-07-03 14:23:32 +00:00
|
|
|
include ./common.mk
|
2009-01-08 01:49:11 +00:00
|
|
|
|
2012-07-03 14:23:32 +00:00
|
|
|
define Host/Compile
|
2014-02-24 15:35:07 +00:00
|
|
|
$(MAKE) -C $(CUR_BUILD_DIR) \
|
|
|
|
PARALLELMFLAGS="$(HOST_JOBS)" \
|
|
|
|
BUILD_CFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
all
|
2009-01-08 01:49:11 +00:00
|
|
|
endef
|
|
|
|
|
2012-07-03 14:23:32 +00:00
|
|
|
define Host/Install
|
|
|
|
$(call Host/SetToolchainInfo)
|
|
|
|
$(MAKE) -C $(CUR_BUILD_DIR) \
|
2014-02-24 15:35:07 +00:00
|
|
|
BUILD_CFLAGS="$(HOST_CFLAGS)" \
|
2009-01-08 01:49:11 +00:00
|
|
|
install_root="$(TOOLCHAIN_DIR)" \
|
|
|
|
install
|
|
|
|
( cd $(TOOLCHAIN_DIR) ; \
|
|
|
|
for d in lib usr/lib ; do \
|
|
|
|
for f in libc.so libpthread.so libgcc_s.so ; do \
|
|
|
|
if [ -f $$$$d/$$$$f -a ! -L $$$$d/$$$$f ] ; then \
|
|
|
|
$(SED) 's,/usr/lib/,,g;s,/lib/,,g' $$$$d/$$$$f ; \
|
|
|
|
fi \
|
|
|
|
done \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|