Browse Source

add host tar, GNU tar required for uClibc header installations.

Waldemar Brodkorb 10 years ago
parent
commit
7197f661cc
3 changed files with 15 additions and 0 deletions
  1. 3 0
      package/tar/Makefile
  2. 8 0
      scripts/scan-tools.sh
  3. 4 0
      target/config/Config.in.tools

+ 3 - 0
package/tar/Makefile

@@ -13,8 +13,10 @@ PKG_URL:=		http://mirrors.kernel.org/gnu/tar/
 PKG_SITES:=		http://mirrors.kernel.org/gnu/tar/
 PKG_BB:=		1
 
+include ${ADK_TOPDIR}/mk/host.mk
 include ${ADK_TOPDIR}/mk/package.mk
 
+$(eval $(call HOST_template,TAR,tar,${PKG_VERSION}-${PKG_RELEASE}))
 $(eval $(call PKG_template,TAR,tar,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 CONFIGURE_ENV+=		gl_cv_func_mbrtowc_incomplete_state=no \
@@ -24,4 +26,5 @@ tar-install:
 	${INSTALL_DIR} ${IDIR_TAR}/bin
 	${INSTALL_BIN} ${WRKINST}/usr/bin/tar ${IDIR_TAR}/bin
 
+include ${ADK_TOPDIR}/mk/host-bottom.mk
 include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 8 - 0
scripts/scan-tools.sh

@@ -228,6 +228,13 @@ if ! which pkgconf >/dev/null 2>&1; then
 	host_build_pkgconf=1
 fi
 
+host_build_tar=0
+if ! which tar >/dev/null 2>&1; then
+	if ! tar --version 2>/dev/null|grep GNU >/dev/null;then
+		host_build_tar=1
+	fi
+fi
+
 host_build_findutils=0
 if ! which gxargs >/dev/null 2>&1; then
 	if which xargs >/dev/null 2>&1; then
@@ -316,6 +323,7 @@ if [ $host_build_patch -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_PATCH
 if [ $host_build_pkgconf -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_PKGCONF" >> $topdir/target/config/Config.in.prereq ;fi
 if [ $host_build_findutils -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_FINDUTILS" >> $topdir/target/config/Config.in.prereq ;fi
 if [ $host_build_sed -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_SED" >> $topdir/target/config/Config.in.prereq ;fi
+if [ $host_build_tar -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_TAR" >> $topdir/target/config/Config.in.prereq ;fi
 if [ $host_build_xz -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_XZ" >> $topdir/target/config/Config.in.prereq ;fi
 # optional
 if [ $host_build_ccache -eq 1 ];then printf "\t%s\n" "select ADK_HOST_BUILD_CCACHE if ADK_HOST_NEED_CCACHE" >> $topdir/target/config/Config.in.prereq ;fi

+ 4 - 0
target/config/Config.in.tools

@@ -69,6 +69,10 @@ config ADK_HOST_BUILD_SED
 	boolean
 	default n
 
+config ADK_HOST_BUILD_TAR
+	boolean
+	default n
+
 config ADK_HOST_BUILD_XZ
 	boolean
 	default n