diff options
| -rw-r--r-- | meta/classes-recipe/kernel-fit-image.bbclass | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/classes-recipe/kernel-fit-image.bbclass b/meta/classes-recipe/kernel-fit-image.bbclass index 16b6ab7b2f..fd0d21ceee 100644 --- a/meta/classes-recipe/kernel-fit-image.bbclass +++ b/meta/classes-recipe/kernel-fit-image.bbclass | |||
| @@ -63,14 +63,12 @@ python do_compile() { | |||
| 63 | ) | 63 | ) |
| 64 | 64 | ||
| 65 | # Prepare a kernel image section. | 65 | # Prepare a kernel image section. |
| 66 | linux_bin = d.getVar('FIT_LINUX_BIN') | 66 | shutil.copyfile(os.path.join(kernel_deploydir, "linux.bin"), "linux.bin") |
| 67 | if linux_bin: | 67 | with open(os.path.join(kernel_deploydir, "linux_comp")) as linux_comp_f: |
| 68 | shutil.copyfile(os.path.join(kernel_deploydir, "linux.bin"), "linux.bin") | 68 | linux_comp = linux_comp_f.read() |
| 69 | with open(os.path.join(kernel_deploydir, "linux_comp")) as linux_comp_f: | 69 | root_node.fitimage_emit_section_kernel("kernel-1", "linux.bin", linux_comp, |
| 70 | linux_comp = linux_comp_f.read() | 70 | d.getVar('UBOOT_LOADADDRESS'), d.getVar('UBOOT_ENTRYPOINT'), |
| 71 | root_node.fitimage_emit_section_kernel("kernel-1", "linux.bin", linux_comp, | 71 | d.getVar('UBOOT_MKIMAGE_KERNEL_TYPE'), d.getVar("UBOOT_ENTRYSYMBOL")) |
| 72 | d.getVar('UBOOT_LOADADDRESS'), d.getVar('UBOOT_ENTRYPOINT'), | ||
| 73 | d.getVar('UBOOT_MKIMAGE_KERNEL_TYPE'), d.getVar("UBOOT_ENTRYSYMBOL")) | ||
| 74 | 72 | ||
| 75 | # Prepare a DTB image section | 73 | # Prepare a DTB image section |
| 76 | kernel_devicetree = d.getVar('KERNEL_DEVICETREE') | 74 | kernel_devicetree = d.getVar('KERNEL_DEVICETREE') |
