Age | Commit message (Collapse) | Author |
|
It is useful to specify glob patterns in platform files to select device
tree sources. When switching development branches, some patterns may not
match any file. The shell expands those patterns to themselves, which
causes build failures. Fix this by setting the nullglob option, to make
those patterns expand to a null string.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Make it possible to build device tree sources only, separately from the
kernel image.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The -m option to the DT checks catches additional errors.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The --no-dt, --no-image and --no-modules options have incorrectly been
added to the help text. Remove them.
Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
It's useful to build a FIT image with DTBs stored outside of the kernel
tree, for instance to test vendor-supplied DTBs. Support this by
allowing DTB paths to be absolute. Compilation of the DTB is skipped in
that case.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The kbuild.sh script strips the directory name from the DTB destination.
This is correct when no destination is specified explicitly, as we want
to strip the directory name of the source for arm64 platforms where DT
sources are stored in per-vendor directories. However, in some cases, we
want to store the DTB in a sub-directory. A common use case is Raspberry
Pi platforms that store overlays in an overlays/ subdirectory.
Make this possible by stripping the directory name only when the
destination is implicit.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Require matches for the directory pattern to be a full directory name,
to reduce the risk of false matches.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Introduction of the kernel component selection build option broke DT
build. Fix it.
Fixes: e7385853e45b ("kbuild: Add options to selectively compile kernel components")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This is required to merge overlays, as the base DTB needs to be
relocated. Only the base address needs to be specified by platforms,
addresses for all DTBs are calculated automatically.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Include DT overlays specified by the platform in the FIT image. Overlay
compilation should ideally be handled by kbuild, but as a first step,
the overlay files have to be manually copied to the output directory.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
If fit_conf_prefix is unset, "conf-" is used as a default prefix. This
also applies if fit_conf_prefix is set but null. Support null
fit_conf_prefix.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The board name is stored in $platform, not $board.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
There's no need to rebuild the image in kflash, we only need to source
the image type support script to get the correct image file name.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
lsblk doesn't require root permisions.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
If the partition table doesn't support labels, use the filesystem label
as a fallback.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
When checking labels for flash partitions, the partition device is
created with an incorrect (and unset) variable name for the partition
index. Fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Not all boot loaders use the same naming scheme for configurations. Make
the configuration name prefix configurable by platforms.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Add an optional argument to the --doc option to select documentation
directories to build.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
To avoid depending on the sphinx version installed on the host, run the
documentation build in a python virtual environment.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Add support for overriding the image file name, using the same mechanism
as for DTB files. The 'image' parameter can specify both the image make
target and image destination file name, separated by a ':'. If no ':' is
found, the image make target is used as the image destination file name.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Add support for passing additional arguments to make. The arguments can
be specified after the platform name, or, if no platform name is
specified, after an empty option (--).
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The --partitions argument can be used to select which partitions to
flash. By default kflash will flash all partitions defined in the
platform file.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This is more convenient as it combines the kernel and device tree.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This enables kflash.sh support.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The script eases flashing a kernel, modules and DT to a removable
device. It detects the device based on partition name patterns defined
in platform files, performs sanity checks to avoid overwriting system
disks (such as making sure none of the target partitions are already
mounted), copies files to raw partitions with dd or to file systems with
cp or rsync, and beeps when done.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
This was done due to the latest stable version of the kernel not having
implicit-fallthrough warnings fixed for ARM architectures. Now that this
has been fixed, enable the warning again.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Use the new extra_kcflags mechanism to disable treating warnings as
errors for BSP kernels.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Platform files can specify extra CFLAGS by extending the kcflags
environment variable. When a kernel tree for a platform contains both
BSP and mainline branches, different CFLAGS may be needed, as BSPs are
usually littered with warnings. Make it possible to specify extra CFLAGS
per kernel version through a new extra_kcflags array.
This mechanism can be extended later if needed by storing version
comparison strings as array keys (e.g. "<=4.19").
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The loadaddr specified for the zynqmp platform is invalid for the
ZCU106. While the Image format doesn't make use of loadaddr, in
preparation for a later switch to a FIT image, update the loadaddr
already.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The kernel has enabled the implicit fallthrough warning without fixing
all warnings on ARM first. Disable the warning until this gets
addressed.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The kernel image file that the uImage and srec images are built from is
stored in $image_kernel, not $kernel_image. Fix it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
The architecture is stored in a variable called $arch, not $ARCH. Fix
it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|