diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-07-17 22:30:47 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-07-17 22:51:04 +0200 |
commit | 0bbbcb96db1628d083f39818faa4b3eb74835180 (patch) | |
tree | 5d08d2c7ccca79f0ab6bc442a36534f9c5e1e20a | |
parent | 9f5a9deb8cd02697c542422616e0c1879a943861 (diff) | |
download | buildroot-0bbbcb96db1628d083f39818faa4b3eb74835180.tar.gz buildroot-0bbbcb96db1628d083f39818faa4b3eb74835180.zip |
toolchain/helpers: don't use the x$(...) = x"value" syntax
As noted by Yann E. Morin, the x$(...) = x"value" syntax is old and
ugly, and the easier to read "$(...)" = "value" can now be used
without problems.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | toolchain/helpers.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk index 95217e7b29..764c795d85 100644 --- a/toolchain/helpers.mk +++ b/toolchain/helpers.mk @@ -181,7 +181,7 @@ create_lib64_symlinks = \ # $2: feature description # check_glibc_feature = \ - if [ x$($(1)) != x"y" ] ; then \ + if [ "$($(1))" != "y" ] ; then \ echo "$(2) available in C library, please enable $(1)" ; \ exit 1 ; \ fi @@ -236,11 +236,11 @@ check_glibc = \ # check_uclibc_feature = \ IS_IN_LIBC=`grep -q "\#define $(1) 1" $(3) && echo y` ; \ - if [ x$($(2)) != x"y" -a x$${IS_IN_LIBC} = x"y" ] ; then \ + if [ "$($(2))" != "y" -a "$${IS_IN_LIBC}" = "y" ] ; then \ echo "$(4) available in C library, please enable $(2)" ; \ exit 1 ; \ fi ; \ - if [ x$($(2)) = x"y" -a x$${IS_IN_LIBC} != x"y" ] ; then \ + if [ "$($(2))" = "y" -a "$${IS_IN_LIBC}" != "y" ] ; then \ echo "$(4) not available in C library, please disable $(2)" ; \ exit 1 ; \ fi |