2012-07-03 14:23:32 +00:00
|
|
|
PATH_PREFIX := .
|
|
|
|
VARIANT:=final
|
2016-08-30 09:12:39 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
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
|
2016-08-30 09:12:39 +00:00
|
|
|
+$(MAKE) -C $(CUR_BUILD_DIR) \
|
2014-02-24 15:35:07 +00:00
|
|
|
PARALLELMFLAGS="$(HOST_JOBS)" \
|
|
|
|
BUILD_CFLAGS="$(HOST_CFLAGS)" \
|
2017-02-11 18:23:03 +00:00
|
|
|
default-rpath="/lib:/usr/lib" \
|
2014-02-24 15:35:07 +00:00
|
|
|
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))
|