From: patrick.oppenlander@gmail.com
To: buildroot@buildroot.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Patrick Oppenlander <patrick.oppenlander@gmail.com>
Subject: Re: [Buildroot] [PATCH] ti-k3-r5-loader: support devicetree customisation
Date: Mon, 4 Sep 2023 09:06:09 +1000 [thread overview]
Message-ID: <20230903230647.311877-2-patrick.oppenlander@gmail.com> (raw)
In-Reply-To: <20230902191549.44efa583@windsurf>
From: Patrick Oppenlander <patrick.oppenlander@gmail.com>
Hi Thomas,
sorry about that. Resend below.
Patrick
---
boot/ti-k3-r5-loader/Config.in | 10 ++++++++++
boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 5 +++++
2 files changed, 15 insertions(+)
diff --git a/boot/ti-k3-r5-loader/Config.in b/boot/ti-k3-r5-loader/Config.in
index 2419babe70..580abf59ec 100644
--- a/boot/ti-k3-r5-loader/Config.in
+++ b/boot/ti-k3-r5-loader/Config.in
@@ -92,3 +92,13 @@ config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_CONFIG_FILE
Path to the TI K3 R5 Loader configuration file.
endif
+
+config BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_DTS_PATH
+ string "Device Tree Source file paths"
+ help
+ Space-separated list of paths to device tree source files
+ that will be copied to arch/ARCH/dts/ before starting the
+ build.
+
+ To use this device tree source file, the TI K3 R5 Loader
+ configuration file must refer to it.
diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
index 8311e1b401..012f4ee52d 100644
--- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
+++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk
@@ -77,7 +77,12 @@ TI_K3_R5_LOADER_MAKE_OPTS += TI_SECURE_DEV_PKG=$(TI_CORE_SECDEV_K3_INSTALL_DIR)
endif
endif
+TI_K3_R5_LOADER_CUSTOM_DTS_PATH = $(call qstrip,$(BR2_TARGET_TI_K3_R5_LOADER_CUSTOM_DTS_PATH))
+
define TI_K3_R5_LOADER_BUILD_CMDS
+ $(if $(TI_K3_R5_LOADER_CUSTOM_DTS_PATH),
+ cp -f $(TI_K3_R5_LOADER_CUSTOM_DTS_PATH) $(@D)/arch/arm/dts/
+ )
$(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS)
endef
--
2.42.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-09-03 23:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 7:16 [Buildroot] [PATCH] ti-k3-r5-loader: support devicetree customisation Patrick Oppenlander
2023-08-15 23:09 ` Patrick Oppenlander
2023-09-02 17:15 ` Thomas Petazzoni via buildroot
2023-09-03 23:06 ` patrick.oppenlander [this message]
2023-09-04 16:26 ` Thomas Petazzoni via buildroot
2023-09-05 0:33 ` Patrick Oppenlander
2023-09-05 0:33 ` patrick.oppenlander
2023-09-05 7:07 ` Thomas Petazzoni via buildroot
2023-09-07 0:30 ` patrick.oppenlander
2024-04-30 13:37 ` [Buildroot] [PATCH v2] ti-k3-r5-loader: support devicetree customization Gero Schwäricke via buildroot
2024-04-30 13:42 ` Gero Schwäricke via buildroot
2024-05-01 21:53 ` Romain Naour
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=20230903230647.311877-2-patrick.oppenlander@gmail.com \
--to=patrick.oppenlander@gmail.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.