diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-19 19:21:08 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-19 19:21:08 +0100 |
commit | 274f4690d3d1e7107a47a94563b4a13c5e472d42 (patch) | |
tree | 0d5e9005758a1770f1d404aaa860a240d0102a58 /package/glibc | |
parent | 98e07066854de558bb5651b7305d2da527048d0b (diff) |
install libc headers only when selected
Diffstat (limited to 'package/glibc')
-rw-r--r-- | package/glibc/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/package/glibc/Makefile b/package/glibc/Makefile index 7173ab83f..45145d230 100644 --- a/package/glibc/Makefile +++ b/package/glibc/Makefile @@ -30,10 +30,12 @@ GLIBC_CONFOPTS:= \ $(eval $(call PKG_template,GLIBC,glibc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) $(eval $(call PKG_template,GLIBC_DEV,glibc-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) -do-extract: +SUB_INSTALLS-y:= +SUB_INSTALLS-m:= +SUB_INSTALLS-${ADK_PACKAGE_GLIBC_DEV}+= glibc-dev-install -# do nothing, glibc is already build in toolchain directory -do-install: +# compile nothing, glibc is already build in toolchain directory +do-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y} ${INSTALL_DIR} $(IDIR_GLIBC)/lib $(IDIR_GLIBC)/etc # install /etc/localtime from host system (FIXME) ${CP} /etc/localtime $(IDIR_GLIBC)/etc @@ -45,8 +47,11 @@ do-install: done # create ld.so link for mips gcc linker option cd $(IDIR_GLIBC)/lib && ln -sf ld-linux.so.2 ld.so.1 + +glibc-dev-install: # header package - $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) ARCH=$(ARCH) V=1 \ + $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/linux-$(KERNEL_VERSION) \ + HOSTCC=$(HOSTCC) ARCH=$(ARCH) V=1 \ INSTALL_HDR_PATH=$(IDIR_GLIBC_DEV)/usr \ headers_install (cd $(WRKBUILD); \ @@ -61,6 +66,6 @@ do-install: 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 -delete + @find $(IDIR_GLIBC_DEV) -name .install -exec rm {} \; include ${TOPDIR}/mk/pkg-bottom.mk |