linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] deb-pkg: Add device tree blobs to the package
@ 2013-11-07 15:17 Arnaud Patard
  2013-11-08 14:36 ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Patard @ 2013-11-07 15:17 UTC (permalink / raw)
  To: linux-kbuild
  Cc: maximilian attems, Ben Hutchings, Michal Marek, Arnaud Patard

When building a package with make deb-pkg (say, for arm), the dtb files are
not added to the package. Given that things are still evolving on arm, it
make sense to have them along with the kernel and modules.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---

Index: linux-next/scripts/package/builddeb
===================================================================
--- linux-next.orig/scripts/package/builddeb	2013-11-06 12:51:49.548299578 +0100
+++ linux-next/scripts/package/builddeb	2013-11-06 12:52:24.152298055 +0100
@@ -140,6 +140,10 @@ if [ -e $KBUILD_IMAGE ]; then
 else
 	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
 fi
+if grep -q "^CONFIG_OF=y" .config ; then
+	mkdir -p "$tmpdir/usr/lib/$packagename"
+	find arch/$ARCH -name *.dtb -exec cp {} "$tmpdir/usr/lib/$packagename" \;
+fi
 
 if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
 	INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 1/1] deb-pkg: Add device tree blobs to the package
  2013-11-07 15:17 [patch 1/1] deb-pkg: Add device tree blobs to the package Arnaud Patard
@ 2013-11-08 14:36 ` Ben Hutchings
  2013-11-12 12:52   ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Hutchings @ 2013-11-08 14:36 UTC (permalink / raw)
  To: Arnaud Patard; +Cc: linux-kbuild, maximilian attems, Michal Marek

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

On Thu, 2013-11-07 at 16:17 +0100, Arnaud Patard wrote:
> When building a package with make deb-pkg (say, for arm), the dtb files are
> not added to the package. Given that things are still evolving on arm, it
> make sense to have them along with the kernel and modules.
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
> ---
> 
> Index: linux-next/scripts/package/builddeb
> ===================================================================
> --- linux-next.orig/scripts/package/builddeb	2013-11-06 12:51:49.548299578 +0100
> +++ linux-next/scripts/package/builddeb	2013-11-06 12:52:24.152298055 +0100
> @@ -140,6 +140,10 @@ if [ -e $KBUILD_IMAGE ]; then
>  else
>  	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
>  fi
> +if grep -q "^CONFIG_OF=y" .config ; then
> +	mkdir -p "$tmpdir/usr/lib/$packagename"
> +	find arch/$ARCH -name *.dtb -exec cp {} "$tmpdir/usr/lib/$packagename" \;
> +fi

I would quote the '*.dtb'.  Otherwise I think this is reasonable.

Ben.

>  if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
>  	INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
> 
> 

-- 
Ben Hutchings
Horngren's Observation:
                   Among economists, the real world is often a special case.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 1/1] deb-pkg: Add device tree blobs to the package
  2013-11-08 14:36 ` Ben Hutchings
@ 2013-11-12 12:52   ` Michal Marek
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Marek @ 2013-11-12 12:52 UTC (permalink / raw)
  To: Arnaud Patard; +Cc: Ben Hutchings, linux-kbuild, maximilian attems

On 8.11.2013 15:36, Ben Hutchings wrote:
> On Thu, 2013-11-07 at 16:17 +0100, Arnaud Patard wrote:
>> When building a package with make deb-pkg (say, for arm), the dtb files are
>> not added to the package. Given that things are still evolving on arm, it
>> make sense to have them along with the kernel and modules.
>>
>> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
>> ---
>>
>> Index: linux-next/scripts/package/builddeb
>> ===================================================================
>> --- linux-next.orig/scripts/package/builddeb	2013-11-06 12:51:49.548299578 +0100
>> +++ linux-next/scripts/package/builddeb	2013-11-06 12:52:24.152298055 +0100
>> @@ -140,6 +140,10 @@ if [ -e $KBUILD_IMAGE ]; then
>>  else
>>  	cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
>>  fi
>> +if grep -q "^CONFIG_OF=y" .config ; then
>> +	mkdir -p "$tmpdir/usr/lib/$packagename"
>> +	find arch/$ARCH -name *.dtb -exec cp {} "$tmpdir/usr/lib/$packagename" \;
>> +fi
> 
> I would quote the '*.dtb'.  Otherwise I think this is reasonable.

Good catch. Arnaud, can you send a v2 with this fix?

Thanks,
Michal


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-12 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 15:17 [patch 1/1] deb-pkg: Add device tree blobs to the package Arnaud Patard
2013-11-08 14:36 ` Ben Hutchings
2013-11-12 12:52   ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).