From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 10 Dec 2021 14:09:47 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mvfel-0025A2-Le for lore@lore.pengutronix.de; Fri, 10 Dec 2021 14:09:47 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mvfel-00005N-5D; Fri, 10 Dec 2021 14:09:47 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvfcY-0005eo-Ee; Fri, 10 Dec 2021 14:07:30 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1mvfcY-003mPM-Dh; Fri, 10 Dec 2021 14:07:29 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1mvfcW-00GNfr-NA; Fri, 10 Dec 2021 14:07:28 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 10 Dec 2021 14:07:28 +0100 Message-Id: <20211210130728.3904192-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211209110258.3307503-3-michael.riesch@wolfvision.net> References: <20211209110258.3307503-3-michael.riesch@wolfvision.net> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] kernel: activate support for device tree overlays X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michael Riesch Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as e825644b85e9e8c9be99784c3edf3d63ab32bcec. Michael [sent from post-receive hook] On Fri, 10 Dec 2021 14:07:28 +0100, Michael Riesch wrote: > Activate the recently introduced support for device tree overlays > for the kernel package. > > Signed-off-by: Michael Riesch > Message-Id: <20211209110258.3307503-3-michael.riesch@wolfvision.net> > Signed-off-by: Michael Olbrich > > 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 ".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