summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-fitimage.bbclass
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2017-03-25 14:03:55 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-27 11:08:34 +0100
commitf5187871ce03fc24cb0017cff1089a288f50a24f (patch)
tree83fa8184f091b1eacaecdb689609cdfdda2a6f5f /meta/classes/kernel-fitimage.bbclass
parent871363251a2de8fd701e80f711fbd3770dbf992e (diff)
downloadpoky-f5187871ce03fc24cb0017cff1089a288f50a24f.tar.gz
classes: Replace "if test" file tests with POSIX file testsuninative-1.6
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>
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
-rw-r--r--meta/classes/kernel-fitimage.bbclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 2d344b52cd..8ae2eb6df5 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -96,7 +96,7 @@ fitimage_emit_section_kernel() {
96 kernel_csum="sha1" 96 kernel_csum="sha1"
97 97
98 ENTRYPOINT=${UBOOT_ENTRYPOINT} 98 ENTRYPOINT=${UBOOT_ENTRYPOINT}
99 if test -n "${UBOOT_ENTRYSYMBOL}"; then 99 if [ -n "${UBOOT_ENTRYSYMBOL}" ]; then
100 ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \ 100 ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
101 awk '$4=="${UBOOT_ENTRYSYMBOL}" {print $2}'` 101 awk '$4=="${UBOOT_ENTRYSYMBOL}" {print $2}'`
102 fi 102 fi
@@ -339,7 +339,7 @@ fitimage_assemble() {
339 # 339 #
340 # Step 2: Prepare a DTB image section 340 # Step 2: Prepare a DTB image section
341 # 341 #
342 if test -n "${KERNEL_DEVICETREE}"; then 342 if [ -n "${KERNEL_DEVICETREE}" ]; then
343 dtbcount=1 343 dtbcount=1
344 for DTB in ${KERNEL_DEVICETREE}; do 344 for DTB in ${KERNEL_DEVICETREE}; do
345 if echo ${DTB} | grep -q '/dts/'; then 345 if echo ${DTB} | grep -q '/dts/'; then
@@ -359,7 +359,7 @@ fitimage_assemble() {
359 # 359 #
360 # Step 3: Prepare a setup section. (For x86) 360 # Step 3: Prepare a setup section. (For x86)
361 # 361 #
362 if test -e arch/${ARCH}/boot/setup.bin ; then 362 if [ -e arch/${ARCH}/boot/setup.bin ]; then
363 setupcount=1 363 setupcount=1
364 fitimage_emit_section_setup ${1} "${setupcount}" arch/${ARCH}/boot/setup.bin 364 fitimage_emit_section_setup ${1} "${setupcount}" arch/${ARCH}/boot/setup.bin
365 fi 365 fi
@@ -383,7 +383,7 @@ fitimage_assemble() {
383 383
384 # Force the first Kernel and DTB in the default config 384 # Force the first Kernel and DTB in the default config
385 kernelcount=1 385 kernelcount=1
386 if test -n "${dtbcount}"; then 386 if [ -n "${dtbcount}" ]; then
387 dtbcount=1 387 dtbcount=1
388 fi 388 fi
389 389
@@ -392,7 +392,7 @@ fitimage_assemble() {
392 # 392 #
393 fitimage_emit_section_maint ${1} confstart 393 fitimage_emit_section_maint ${1} confstart
394 394
395 if test -n "${DTBS}"; then 395 if [ -n "${DTBS}" ]; then
396 i=1 396 i=1
397 for DTB in ${DTBS}; do 397 for DTB in ${DTBS}; do
398 fitimage_emit_section_config ${1} "${kernelcount}" "${DTB}" "${ramdiskcount}" "${setupcount}" "`expr ${i} = ${dtbcount}`" 398 fitimage_emit_section_config ${1} "${kernelcount}" "${DTB}" "${ramdiskcount}" "${setupcount}" "`expr ${i} = ${dtbcount}`"