Skip to contentSkip to conversation

svn commit: trunk/buildroot/package

Buildroot wberrier at uclibc.org 2 participants 2 messages Oct 7, 2008

lore
Share & tools
lore
#0 lore raw

Author: wberrier
Date: 2008-10-07 10:08:27 -0700 (Tue, 07 Oct 2008) New Revision: 23620

Log:
Makefile.autotools.in: honor CONFIG_SHELL and TAR.
Don't use recursively expanded definition (Use ':=' instead of '=')

Modified:
trunk/buildroot/package/Makefile.autotools.in

Changeset:
Modified: trunk/buildroot/package/Makefile.autotools.in
===================================================================

buildroot/package/Makefile.autotools.in +1 -1
@@ -125,7 +125,7 @@
 #	ACLOCAL="$(ACLOCAL)"
 
 # Automatically detect tar --strip-path/components option
-TAR_STRIP_COMPONENTS = $(shell tar --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi)
+TAR_STRIP_COMPONENTS := $(shell $(CONFIG_SHELL) -c '$(TAR) --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi')
 
 ################################################################################
 # Implicit targets -- produce a stamp file for each step of a package build
#1 lore raw

buildroot/package/Makefile.autotools.in line 128

Quoted 11 lines · wberrier at uclibc.org

Changeset:
Modified: trunk/buildroot/package/Makefile.autotools.in
===================================================================

buildroot/package/Makefile.autotools.in +1 -1
@@ -125,7 +125,7 @@
 #	ACLOCAL="$(ACLOCAL)"
 
 # Automatically detect tar --strip-path/components option
-TAR_STRIP_COMPONENTS = $(shell tar --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi)
+TAR_STRIP_COMPONENTS := $(shell $(CONFIG_SHELL) -c '$(TAR) --help | grep strip-path > /dev/null ; if test $$? = 0 ; then echo '--strip-path' ; else echo '--strip-components' ; fi')

Is there any reason we don't set SHELL=$(CONFIG_SHELL), rather than using this $(shell $(CONFIG_SHELL) -c '...') construct everywhere?

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>