diff options
| -rw-r--r-- | meta/classes-recipe/uboot-extlinux-config.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes-recipe/uboot-extlinux-config.bbclass b/meta/classes-recipe/uboot-extlinux-config.bbclass index a6938ab063..2fa83b2c8b 100644 --- a/meta/classes-recipe/uboot-extlinux-config.bbclass +++ b/meta/classes-recipe/uboot-extlinux-config.bbclass | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | # UBOOT_EXTLINUX_KERNEL_IMAGE - Kernel image name. | 15 | # UBOOT_EXTLINUX_KERNEL_IMAGE - Kernel image name. |
| 16 | # UBOOT_EXTLINUX_FDTDIR - Device tree directory. | 16 | # UBOOT_EXTLINUX_FDTDIR - Device tree directory. |
| 17 | # UBOOT_EXTLINUX_FDT - Device tree file. | 17 | # UBOOT_EXTLINUX_FDT - Device tree file. |
| 18 | # UBOOT_EXTLINUX_FDTOVERLAYS - Device tree overlay files. Space-separated list. | ||
| 18 | # UBOOT_EXTLINUX_INITRD - Indicates a list of filesystem images to | 19 | # UBOOT_EXTLINUX_INITRD - Indicates a list of filesystem images to |
| 19 | # concatenate and use as an initrd (optional). | 20 | # concatenate and use as an initrd (optional). |
| 20 | # UBOOT_EXTLINUX_MENU_DESCRIPTION - Name to use as description. | 21 | # UBOOT_EXTLINUX_MENU_DESCRIPTION - Name to use as description. |
| @@ -66,6 +67,7 @@ | |||
| 66 | UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}" | 67 | UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}" |
| 67 | UBOOT_EXTLINUX_LABELS ??= "linux" | 68 | UBOOT_EXTLINUX_LABELS ??= "linux" |
| 68 | UBOOT_EXTLINUX_FDT ??= "" | 69 | UBOOT_EXTLINUX_FDT ??= "" |
| 70 | UBOOT_EXTLINUX_FDTOVERLAYS ??= "" | ||
| 69 | UBOOT_EXTLINUX_FDTDIR ??= "../" | 71 | UBOOT_EXTLINUX_FDTDIR ??= "../" |
| 70 | UBOOT_EXTLINUX_KERNEL_IMAGE ??= "../${KERNEL_IMAGETYPE}" | 72 | UBOOT_EXTLINUX_KERNEL_IMAGE ??= "../${KERNEL_IMAGETYPE}" |
| 71 | UBOOT_EXTLINUX_KERNEL_ARGS ??= "rootwait rw" | 73 | UBOOT_EXTLINUX_KERNEL_ARGS ??= "rootwait rw" |
| @@ -136,6 +138,7 @@ python do_create_extlinux_config() { | |||
| 136 | fdtdir = localdata.getVar('UBOOT_EXTLINUX_FDTDIR') | 138 | fdtdir = localdata.getVar('UBOOT_EXTLINUX_FDTDIR') |
| 137 | 139 | ||
| 138 | fdt = localdata.getVar('UBOOT_EXTLINUX_FDT') | 140 | fdt = localdata.getVar('UBOOT_EXTLINUX_FDT') |
| 141 | fdtoverlays = localdata.getVar('UBOOT_EXTLINUX_FDTOVERLAYS') | ||
| 139 | 142 | ||
| 140 | cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image)) | 143 | cfgfile.write('LABEL %s\n\tKERNEL %s\n' % (menu_description, kernel_image)) |
| 141 | 144 | ||
| @@ -144,6 +147,9 @@ python do_create_extlinux_config() { | |||
| 144 | elif fdtdir: | 147 | elif fdtdir: |
| 145 | cfgfile.write('\tFDTDIR %s\n' % (fdtdir)) | 148 | cfgfile.write('\tFDTDIR %s\n' % (fdtdir)) |
| 146 | 149 | ||
| 150 | if fdtoverlays: | ||
| 151 | cfgfile.write('\tFDTOVERLAYS %s\n' % (' '.join(fdtoverlays.split()))) | ||
| 152 | |||
| 147 | kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS') | 153 | kernel_args = localdata.getVar('UBOOT_EXTLINUX_KERNEL_ARGS') |
| 148 | 154 | ||
| 149 | initrd = localdata.getVar('UBOOT_EXTLINUX_INITRD') | 155 | initrd = localdata.getVar('UBOOT_EXTLINUX_INITRD') |
