| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 | # This file is part of the OpenADK project. OpenADK is copyrighted# material, please see the LICENCE file in the top-level directory.include $(TOPDIR)/rules.mkinclude $(TOPDIR)/toolchain/glibc/Makefile.incPKG_DESCR:=		GNU C libraryPKG_SECTION:=		baseNO_DISTFILES:=		1PKG_OPTS:=		noremoveinclude $(TOPDIR)/mk/package.mkGLIBC_CONFOPTS:=          \			--build=$(GNU_HOST_NAME) \			--host=$(REAL_GNU_TARGET_NAME) \			--with-headers=$(TOOLCHAIN_SYSROOT)/usr/include \			--disable-nls \			--disable-sanity-checks \			--disable-nls \			--without-cvs \			--disable-profile \			--disable-debug \			--without-gd \			--with-__thread \			--with-tls \			--enable-kernel="2.6.0" \			--enable-add-ons$(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))do-extract:# do nothing, glibc is already build in toolchain directorydo-install:	${INSTALL_DIR} $(IDIR_GLIBC)/lib $(IDIR_GLIBC)/etc	# install /etc/localtime from host system (FIXME)	${CP} /etc/localtime $(IDIR_GLIBC)/etcifeq ($(ADK_SSP),y)	$(CP) $(STAGING_DIR)/lib/libssp.so* $(IDIR_GLIBC)/lib/endif	$(CP) $(STAGING_DIR)/lib/libgcc_s.so* $(IDIR_GLIBC)/lib/	$(CP) $(STAGING_DIR)/lib/ld-*.so* $(IDIR_GLIBC)/lib/	-for file in libc libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \		$(CP) $(STAGING_DIR)/lib/$$file.so* $(IDIR_GLIBC)/lib/; \		$(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/lib/; \	done	# create ld.so link for mips gcc linker option	cd $(IDIR_GLIBC)/lib && ln -sf ld-linux.so.2 ld.so.1	# header package	$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) ARCH=$(ARCH) V=1 \		INSTALL_HDR_PATH=$(IDIR_GLIBC_DEV)/usr \		headers_install	(cd $(WRKBUILD); \		$(TOOLCHAIN_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/configure \		--prefix=/usr \		--with-sysroot=$(IDIR_GLIBC_DEV) \		${GLIBC_CONFOPTS} \	);	$(MAKE) -C $(WRKBUILD) \		cross-compiling=yes \		install_root=$(IDIR_GLIBC_DEV) \		install-headers	touch $(IDIR_GLIBC_DEV)/usr/include/gnu/stubs.h	touch $(IDIR_GLIBC_DEV)/usr/include/bits/stdio_lim.h	@find $(IDIR_GLIBC_DEV) -name .install -deleteinclude ${TOPDIR}/mk/pkg-bottom.mk
 |