zstd is a lot faster when compressing and decompressing, which helps
with iteration speed.
Use the CONVERSIONTYPES machinery builtin rather than re-implementing it
ourselves here.
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Signed-off-by: Matt Madison <matt@madison.systems>
OE-Core master has udpated how the toolchain virtual providers
are handled, so update the layer accordingly.
This affects the gcc-for-nvcc extra toolchain build we have for
CUDA builds, and a few other recipes that have some explicit
references to the old toolchain virtual/<something> names.
Signed-off-by: Matt Madison <matt@madison.systems>
With the Jetson minimal UEFI, no application is loaded from the
ESP partition by the bootloader, so allow for the possibility
that someone has removed the ESP from the storage layout.
Signed-off-by: Matt Madison <matt@madison.systems>
Install UefiUpdateSecurityKeys.dtbo, if available, to staging directory in tegra-uefi-keys recipe, then
copy it from the staging directory when assembling BUP for capsule update.
Signed-off-by: Jean-Philippe Arnaud <jeanphilippe.arnaud@medtronic.com>
Remove ESP image dependency for BUP generation. The BUP generation
script doesn't use it, and the only mention of ESP partition is in the list
of boot artifacts to be included into BUP image (bup_type=bl), where
the ESP image is explicitly marked to be skipped.
Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
This change permits passing kernel command line arguments that include
quoted strings, including dyndbg. Without single quotes, these
invocations of `mkbootimg` will silently produce incorrect results.
Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Signed-off-by: Matt Madison <matt@madison.systems>
The global tegra-mender-setup.bbclass from the meta-mender-community
layer uses the L4T_VERSION variable to define a `l4t-mender-<version>`
machine override, so that variable also needs to be available globally.
Signed-off-by: Zachary T Welch <zach@aquabyte.ai>
Signed-off-by: Matt Madison <matt@madison.systems>
When using clang, one could use llvm runtime to provide C/C++ runtime libs
instead, here, since it uses gcc, also use relevant runtime settings
Signed-off-by: Khem Raj <raj.khem@gmail.com>
TOOLCHAIN variable is indicative of which compiler toolchain
should be used and for cuda-gcc class its GCC obviously, therefore
make it clear here, this helps in builds when default toolchain is
clang/llvm ( using meta-clang ) and defaulting TOOLCHAIN = "clang"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Remove unnecessary dependency between firmware BUP and EFI system partition image.
This creates circular dependency if you want to place your kernel on ESP.
The spillover of some boot firmware partitions into
the eMMC was specific to some of the Xavier models,
so we can drop handling of that case.
Signed-off-by: Matt Madison <matt@madison.systems>
* Drop obsolete variables that were specific to Xavier models
* Make doscard.sh script dependent on existence of an sdcard
stanza in the storage layout
* Add doexternal.sh script to allow for off-device population
of a USB or NVMe drive
Signed-off-by: Matt Madison <matt@madison.systems>
We had been disabling the metadata_csum_seed ext4 attribute
because the cboot ext4 implementation did not support it.
The UEFI ext4 implementation does support it, however, so
we can remove the disablement from TEGRA_EXT4_OPTIONS.
Signed-off-by: Matt Madison <matt@madison.systems>
to build all of the NVIDIA out-of-tree modules and device trees.
This also removes the old nvidia-display-driver recipe, since the
source for the display drivers is coupled with the other out-of-tree
drivers.
Added patches for fixing:
* driver ordering between nvidia-drm and tegra-drm
* build compatibility with gcc 14
Signed-off-by: Matt Madison <matt@madison.systems>
- Move the capsule signing logic to a class in preparation for
supporting capsule signing via a signing server in a means
similar to tegra-uefi-signing.
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
- Encapsulate knowledge of local signing by moving most TEGRA_UEFI_DB_*
references to tegra-uefi-signing.bbclass.
- All recipes just call the tegra_uefi_* signing functions.
- Recipes that require uefi signing inherit ${TEGRA_UEFI_SIGNING_CLASS}
which defaults to tegra-uefi-signing.bbclass. Users can assign
their own class to override the default uefi signing function
behavior (to use a signing server, as an example).
- Use weak default assignment for TEGRA_UEFI_SIGNING_CLASS and
TEGRA_UEFI_USE_SIGNED_FILES in the event they are not defined.
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
from image_types_tegra.bbclass to tegra-common.inc. This enables
a future change in the digsigserver signing class to pass this
value in the MANIFEST to the signing server without having to
inherit from image_types_tegra to get this single value. EMMC_BCT
and EMMC_BCT_OVERRIDES are already defined in machine configuration files
so moving this here for consistency.
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
Signed-off-by: Matt Madison <matt@madison.systems>
The version of dash in Ubuntu 20.04 doesn't implicitly quote the output
of a command executed in a $(...) expression. Update the script functions
to avoid using that construct in that way.
Signed-off-by: Matt Madison <matt@madison.systems>
* Remove the default copy of UefiUpdateSecurityKeys.dts from
the tegra-uefi-keys-dtb SRC_URI. Users wanting to rotate their
UEFI keys can add that file to the SRC_URI in a bbappend.
* Update the DTB overlay enumeration function in image_types_tegra
to include the update keys for BUP generation only if the overlay
is present
Signed-off-by: Chad McQuillen <chad.mcquillen@lexmark.com>
Signed-off-by: Matt Madison <matt@madison.systems
Move the copying of the initrd flasher out of the common function,
since it's not needed for BUP payload generation.
Signed-off-by: Matt Madison <matt@madison.systems>