Root/toolchain/eglibc/Makefile

1PATH_PREFIX := .
2VARIANT:=final
3HOST_BUILD_PARALLEL:=1
4
5include ./common.mk
6
7define Host/Compile
8    $(MAKE) -C $(CUR_BUILD_DIR) all PARALLELMFLAGS="$(HOST_JOBS)"
9endef
10
11define Host/Install
12    $(call Host/SetToolchainInfo)
13    $(MAKE) -C $(CUR_BUILD_DIR) \
14        install_root="$(TOOLCHAIN_DIR)" \
15        install
16    ( cd $(TOOLCHAIN_DIR) ; \
17        for d in lib usr/lib ; do \
18          for f in libc.so libpthread.so libgcc_s.so ; do \
19            if [ -f $$$$d/$$$$f -a ! -L $$$$d/$$$$f ] ; then \
20              $(SED) 's,/usr/lib/,,g;s,/lib/,,g' $$$$d/$$$$f ; \
21            fi \
22          done \
23        done \
24    )
25endef
26
27$(eval $(call HostBuild))
28

Archive Download this file



interactive