diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-12-14 15:15:26 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2023-04-01 17:37:43 -0300 |
commit | 47580844ea289702870a2715f70f06e603695e4f (patch) | |
tree | 6451026a70f72432873b7ea2d19c85a15dacad8b /conf/machine/include/imx-base.inc | |
parent | f93d50e3dd78983172b9458244d2b78327a5f571 (diff) | |
download | meta-freescale-47580844ea289702870a2715f70f06e603695e4f.tar.gz |
classes/image_populate_mfgtool: init
The class provides the infrastructure for MFGTOOL generation and is tied
to images. To generate the bundle, the task populate_mfgtool must be
called. For example:
,----[ Running populate_mfgtool for core-image-minimal image ]
| $: bitbake core-image-minimal -c populate_mfgtool
`----
The class behavior is controlled through the MFGTOOLCONFIG (analogous to
PACKAGECONFIG) variable. The MFGTOOLCONFIG variable itself specifies a
space-separated list of the script to enable. Following the script, you
can determine the behavior of each script by providing up to two
order-dependent arguments, which are separated by commas. You can omit
any argument you like but must retain the separating commas. The order
is important and specifies the following:
1. Extra dependencies that should be added to the do_populate_mfgtool
task, if the script is enabled.
2. Extra binaries that should be added to the bundle, if the script is
enabled.
For example:
,----[ Defining foo.uuu.in and bar.uuu script ]
| MFGTOOLCONFIG = "foo.uuu.in bar.uuu"
| MFGTOOLCONFIG[foo.uuu.in] = "dep-foo1:do_deploy dep-foo2:do_deploy,file-foo1"
| MFGTOOLCONFIG[bar.uuu] = "dep-bar1:do_deploy,file-bar1 file-bar2"
`----
The dep-foo1:do_deploy, dep-foo2:do_deploy, and dep-bar1:do_deploy are
added to do_populate_mfgtool dependencies. In addition, file-foo1,
file-bar1, and file-bar2 are copied to the bundle, only if the script is
enabled.
During the mfgtool bundle generation, the uuu.in files are processed and
some variables replaced. The variables are:
- MACHINE
- UBOOT_BINARY
- SPL_BINARY
- IMAGE_BASENAME
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'conf/machine/include/imx-base.inc')
-rw-r--r-- | conf/machine/include/imx-base.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 277ce450..a3fe9018 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -611,5 +611,8 @@ MACHINE_FEATURES = "usbgadget usbhost vfat alsa touchscreen" | |||
611 | 611 | ||
612 | HOSTTOOLS_NONFATAL:append:mx8-nxp-bsp = " sha384sum" | 612 | HOSTTOOLS_NONFATAL:append:mx8-nxp-bsp = " sha384sum" |
613 | 613 | ||
614 | # Add task to generate the mfgtool bundle for the image. | ||
615 | IMAGE_CLASSES:append:imx-generic-bsp = " image_populate_mfgtool" | ||
616 | |||
614 | # Allow meta-imx to add NIP devices information until upstreamed. | 617 | # Allow meta-imx to add NIP devices information until upstreamed. |
615 | include conf/machine/include/imx-base-extend.inc | 618 | include conf/machine/include/imx-base-extend.inc |