Make scripts and Makefiles POSIX compliant
The bash builtin versions of the "test" (resp. "[") command allow using "==" for string comparisons, but POSIX compatible implemen- tations (like /usr/bin/test) insist on using "=" only. On such systems you will see: $ /usr/bin/test a == a && echo OK /usr/bin/test: ==: binary operator expected This patch fixes Makefiles and scripts to use POSIX style. Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
8f8b52ea5b
commit
1aaab9bfae
6
Makefile
6
Makefile
|
@ -1682,14 +1682,14 @@ TQM8265_AA_config: unconfig
|
||||||
fi; \
|
fi; \
|
||||||
echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
|
||||||
echo "... with $${CFREQ}MHz system clock" ; \
|
echo "... with $${CFREQ}MHz system clock" ; \
|
||||||
if [ "$${CACHE}" == "yes" ] ; then \
|
if [ "$${CACHE}" = "yes" ] ; then \
|
||||||
echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
|
||||||
echo "... with L2 Cache support" ; \
|
echo "... with L2 Cache support" ; \
|
||||||
else \
|
else \
|
||||||
echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
|
echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
|
||||||
echo "... without L2 Cache support" ; \
|
echo "... without L2 Cache support" ; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ "$${BMODE}" == "60x" ] ; then \
|
if [ "$${BMODE}" = "60x" ] ; then \
|
||||||
echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
|
||||||
echo "... with 60x Bus Mode" ; \
|
echo "... with 60x Bus Mode" ; \
|
||||||
else \
|
else \
|
||||||
|
@ -1803,7 +1803,7 @@ M54455EVB_i66_config : unconfig
|
||||||
M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
|
M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
|
||||||
esac; \
|
esac; \
|
||||||
>include/config.h ; \
|
>include/config.h ; \
|
||||||
if [ "$${FLASH}" == "INTEL" ] ; then \
|
if [ "$${FLASH}" = "INTEL" ] ; then \
|
||||||
echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
|
echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
|
||||||
echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
|
echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
|
||||||
cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
|
cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
|
||||||
|
|
|
@ -14,7 +14,7 @@ echo " 1 /* Integrator/AP */" >> tmp.fil
|
||||||
cpu="arm_intcm"
|
cpu="arm_intcm"
|
||||||
variant="unknown core module"
|
variant="unknown core module"
|
||||||
|
|
||||||
if [ "$1" == "" ]
|
if [ "$1" = "" ]
|
||||||
then
|
then
|
||||||
echo "$0:: No parameters - using arm_intcm"
|
echo "$0:: No parameters - using arm_intcm"
|
||||||
else
|
else
|
||||||
|
@ -84,7 +84,7 @@ else
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$cpu" == "arm_intcm" ]
|
if [ "$cpu" = "arm_intcm" ]
|
||||||
then
|
then
|
||||||
echo "/* Core module undefined/not ported */" >> tmp.fil
|
echo "/* Core module undefined/not ported */" >> tmp.fil
|
||||||
echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
|
echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
|
||||||
|
|
|
@ -12,7 +12,7 @@ echo " 1 /* Integrator/CP */" >> tmp.fil
|
||||||
cpu="arm_intcm"
|
cpu="arm_intcm"
|
||||||
variant="unknown core module"
|
variant="unknown core module"
|
||||||
|
|
||||||
if [ "$1" == "" ]
|
if [ "$1" = "" ]
|
||||||
then
|
then
|
||||||
echo "$0:: No parameters - using arm_intcm"
|
echo "$0:: No parameters - using arm_intcm"
|
||||||
else
|
else
|
||||||
|
@ -79,7 +79,7 @@ else
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$cpu" == "arm_intcm" ]
|
if [ "$cpu" = "arm_intcm" ]
|
||||||
then
|
then
|
||||||
echo "/* Core module undefined/not ported */" >> tmp.fil
|
echo "/* Core module undefined/not ported */" >> tmp.fil
|
||||||
echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
|
echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
mkdir -p ${obj}include
|
mkdir -p ${obj}include
|
||||||
variant=PB926EJ-S
|
variant=PB926EJ-S
|
||||||
if [ "$1" == "" ]
|
if [ "$1" = "" ]
|
||||||
then
|
then
|
||||||
echo "$0:: No parameters - using versatilepb_config"
|
echo "$0:: No parameters - using versatilepb_config"
|
||||||
echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
|
echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
|
||||||
|
|
Loading…
Reference in New Issue