diff options
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
| -rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 10 |
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}`" |
