mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Replace "if test" file tests with POSIX file tests
In entire meta/classes/ directory, replace shell tests of the form "if test -? ..." with POSIX tests of the form "if [ -? ... (From OE-Core rev: 78928016f4cf38cf6751cb089200bf950d07ae93) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
871363251a
commit
f5187871ce
@@ -96,7 +96,7 @@ fitimage_emit_section_kernel() {
|
||||
kernel_csum="sha1"
|
||||
|
||||
ENTRYPOINT=${UBOOT_ENTRYPOINT}
|
||||
if test -n "${UBOOT_ENTRYSYMBOL}"; then
|
||||
if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then
|
||||
ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
|
||||
awk '$4=="${UBOOT_ENTRYSYMBOL}" {print $2}'`
|
||||
fi
|
||||
@@ -339,7 +339,7 @@ fitimage_assemble() {
|
||||
#
|
||||
# Step 2: Prepare a DTB image section
|
||||
#
|
||||
if test -n "${KERNEL_DEVICETREE}"; then
|
||||
if [ -n "${KERNEL_DEVICETREE}" ]; then
|
||||
dtbcount=1
|
||||
for DTB in ${KERNEL_DEVICETREE}; do
|
||||
if echo ${DTB} | grep -q '/dts/'; then
|
||||
@@ -359,7 +359,7 @@ fitimage_assemble() {
|
||||
#
|
||||
# Step 3: Prepare a setup section. (For x86)
|
||||
#
|
||||
if test -e arch/${ARCH}/boot/setup.bin ; then
|
||||
if [ -e arch/${ARCH}/boot/setup.bin ]; then
|
||||
setupcount=1
|
||||
fitimage_emit_section_setup ${1} "${setupcount}" arch/${ARCH}/boot/setup.bin
|
||||
fi
|
||||
@@ -383,7 +383,7 @@ fitimage_assemble() {
|
||||
|
||||
# Force the first Kernel and DTB in the default config
|
||||
kernelcount=1
|
||||
if test -n "${dtbcount}"; then
|
||||
if [ -n "${dtbcount}" ]; then
|
||||
dtbcount=1
|
||||
fi
|
||||
|
||||
@@ -392,7 +392,7 @@ fitimage_assemble() {
|
||||
#
|
||||
fitimage_emit_section_maint ${1} confstart
|
||||
|
||||
if test -n "${DTBS}"; then
|
||||
if [ -n "${DTBS}" ]; then
|
||||
i=1
|
||||
for DTB in ${DTBS}; do
|
||||
fitimage_emit_section_config ${1} "${kernelcount}" "${DTB}" "${ramdiskcount}" "${setupcount}" "`expr ${i} = ${dtbcount}`"
|
||||
|
||||
Reference in New Issue
Block a user