* [PATCH v4] kbuild: buildtar: add dtbs support
@ 2020-06-27 12:25 Domenico Andreoli
2020-06-28 3:46 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Domenico Andreoli @ 2020-06-27 12:25 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Michal Marek, Linux Kbuild mailing list,
Linux Kernel Mailing List, Olof Johansson, Will Deacon,
Catalin Marinas
From: Domenico Andreoli <domenico.andreoli@linux.com>
Make 'make tar-pkg' install dtbs.
v4:
- Install the dtbs before modules & kernel, not after
- Check for the dtbs_install target before attempting to invoke it
v3:
- Check for CONFIG_OF_EARLY_FLATTREE=y instead of ARCH before installing dtbs
v2:
- Add the kernel release to the destination path
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
---
scripts/package/buildtar | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: b/scripts/package/buildtar
===================================================================
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -53,6 +53,18 @@ rm -rf -- "${tmpdir}"
mkdir -p -- "${tmpdir}/boot"
dirs=boot
+
+#
+# Try to install dtbs
+#
+if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then
+ # Only some architectures with OF support have this target
+ if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then
+ $MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install
+ fi
+fi
+
+
#
# Try to install modules
#
--
rsa4096: 3B10 0CA1 8674 ACBA B4FE FCD2 CE5B CF17 9960 DE13
ed25519: FFB4 0CC3 7F2E 091D F7DA 356E CC79 2832 ED38 CB05
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v4] kbuild: buildtar: add dtbs support
2020-06-27 12:25 [PATCH v4] kbuild: buildtar: add dtbs support Domenico Andreoli
@ 2020-06-28 3:46 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2020-06-28 3:46 UTC (permalink / raw)
To: Masahiro Yamada, Michal Marek, Linux Kbuild mailing list,
Linux Kernel Mailing List, Olof Johansson, Will Deacon,
Catalin Marinas
On Sat, Jun 27, 2020 at 9:25 PM Domenico Andreoli
<domenico.andreoli@linux.com> wrote:
>
> From: Domenico Andreoli <domenico.andreoli@linux.com>
>
> Make 'make tar-pkg' install dtbs.
>
> v4:
> - Install the dtbs before modules & kernel, not after
> - Check for the dtbs_install target before attempting to invoke it
>
> v3:
> - Check for CONFIG_OF_EARLY_FLATTREE=y instead of ARCH before installing dtbs
>
> v2:
> - Add the kernel release to the destination path
>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
Applied to linux-kbuild.
Thanks.
> ---
> scripts/package/buildtar | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> Index: b/scripts/package/buildtar
> ===================================================================
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -53,6 +53,18 @@ rm -rf -- "${tmpdir}"
> mkdir -p -- "${tmpdir}/boot"
> dirs=boot
>
> +
> +#
> +# Try to install dtbs
> +#
> +if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then
> + # Only some architectures with OF support have this target
> + if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then
> + $MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install
> + fi
> +fi
> +
> +
> #
> # Try to install modules
> #
>
> --
> rsa4096: 3B10 0CA1 8674 ACBA B4FE FCD2 CE5B CF17 9960 DE13
> ed25519: FFB4 0CC3 7F2E 091D F7DA 356E CC79 2832 ED38 CB05
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-28 3:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-27 12:25 [PATCH v4] kbuild: buildtar: add dtbs support Domenico Andreoli
2020-06-28 3:46 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox