From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Riesch <michael.riesch@wolfvision.net>
Subject: Re: [ptxdist] [APPLIED] kernel: activate support for device tree overlays
Date: Fri, 10 Dec 2021 14:07:28 +0100 [thread overview]
Message-ID: <20211210130728.3904192-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20211209110258.3307503-3-michael.riesch@wolfvision.net>
Thanks, applied as e825644b85e9e8c9be99784c3edf3d63ab32bcec.
Michael
[sent from post-receive hook]
On Fri, 10 Dec 2021 14:07:28 +0100, Michael Riesch <michael.riesch@wolfvision.net> wrote:
> Activate the recently introduced support for device tree overlays
> for the kernel package.
>
> Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
> Message-Id: <20211209110258.3307503-3-michael.riesch@wolfvision.net>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/platforms/kernel.in b/platforms/kernel.in
> index 9976436ce0a2..9f355f5dc026 100644
> --- a/platforms/kernel.in
> +++ b/platforms/kernel.in
> @@ -186,7 +186,7 @@ config KERNEL_DTS_PATH
> help
> Define path to the dts source file. Multiple directories can be
> specified separated by ':'. A relative path will be expanded relative
> - to the workspace and all other layers. Only on of the specified paths
> + to the workspace and all other layers. Only one of the specified paths
> can be a relative path.
>
> config KERNEL_DTS
> @@ -198,6 +198,36 @@ config KERNEL_DTS
> is used as a search path for the device tree files specified
> here. Multiple dts files can be specified, separated by spaces.
>
> +config KERNEL_DTS_SUPPORT_OVERLAYS
> + bool
> +
> +endif
> +
> +menuconfig KERNEL_DTBO
> + bool
> + select KERNEL_DTS_SUPPORT_OVERLAYS
> + prompt "Build device tree overlays "
> +
> +if KERNEL_DTBO
> +
> +config KERNEL_DTSO_PATH
> + string "path to overlay file(s)"
> + default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts/overlays:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
> + help
> + Define path to the dts(o) source file(s). Multiple directories can be
> + specified separated by ':'. A relative path will be expanded relative
> + to the workspace and all other layers. Only one of the specified paths
> + can be a relative path.
> +
> +config KERNEL_DTSO
> + string "overlay file(s)"
> + default "<youroverlay>.dtso"
> + help
> + Select the dts(o) file(s) to be compiled. For relative file
> + names KERNEL_DTSO_PATH is used as a search path for the device
> + tree files specified here.
> + Multiple dts(o) files can be specified, separated by spaces.
> +
> endif
>
> config KERNEL_CODE_SIGNING
> diff --git a/rules/kernel.make b/rules/kernel.make
> index 0ecf5f4e986f..1b70faf21dbe 100644
> --- a/rules/kernel.make
> +++ b/rules/kernel.make
> @@ -29,7 +29,11 @@ KERNEL_BUILD_DIR := $(KERNEL_DIR)-build
> KERNEL_CONFIG := $(call ptx/in-platformconfigdir, $(call remove_quotes, $(PTXCONF_KERNEL_CONFIG)))
> KERNEL_DTS_PATH := $(call remove_quotes,$(PTXCONF_KERNEL_DTS_PATH))
> KERNEL_DTS := $(call remove_quotes,$(PTXCONF_KERNEL_DTS))
> +KERNEL_DTSO_PATH := $(call remove_quotes,$(PTXCONF_KERNEL_DTSO_PATH))
> +KERNEL_DTSO := $(call remove_quotes,$(PTXCONF_KERNEL_DTSO))
> KERNEL_DTB_FILES := $(addsuffix .dtb,$(basename $(KERNEL_DTS)))
> +KERNEL_DTBO_FILES := $(addsuffix .dtbo,$(basename $(KERNEL_DTSO)))
> +KERNEL_DTBO_DIR := /boot/overlays
> KERNEL_LICENSE := GPL-2.0-only
> KERNEL_SOURCE := $(SRCDIR)/$(KERNEL).$(KERNEL_SUFFIX)
> KERNEL_DEVPKG := NO
> @@ -265,6 +269,7 @@ ifdef PTXCONF_KERNEL_MODULES_INSTALL
> @$(call world/install, KERNEL)
> endif
> @$(call world/dtb, KERNEL)
> + @$(call world/dtbo, KERNEL)
> @$(call touch)
>
> # ----------------------------------------------------------------------------
> @@ -294,6 +299,10 @@ ifdef PTXCONF_KERNEL_INSTALL
> @$(foreach dtb, $(KERNEL_DTB_FILES), \
> $(call install_copy, kernel, 0, 0, 0644, -, \
> /boot/$(dtb), n)$(ptx/nl))
> +
> + @$(foreach dtbo, $(KERNEL_DTBO_FILES), \
> + $(call install_copy, kernel, 0, 0, 0644, -, \
> + $(KERNEL_DTBO_DIR)/$(dtbo), n)$(ptx/nl))
> endif
>
> # install the ELF kernel image for debugging purpose
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
prev parent reply other threads:[~2021-12-10 13:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 11:02 [ptxdist] [PATCH v2 0/2] Add " Michael Riesch
2021-12-09 11:02 ` [ptxdist] [PATCH v2 1/2] ptxd_make_world_{dtb, dtbo}: add " Michael Riesch
2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-12-09 11:02 ` [ptxdist] [PATCH v2 2/2] kernel: activate " Michael Riesch
2021-12-10 13:07 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211210130728.3904192-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=michael.riesch@wolfvision.net \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox