* [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"
@ 2015-06-20 14:48 Karsten Merker
2015-06-22 6:04 ` Riku Voipio
0 siblings, 1 reply; 3+ messages in thread
From: Karsten Merker @ 2015-06-20 14:48 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, linux-kernel, Karsten Merker
Native Debian kernel packages include any dtbs that were generated
during the kernel build process in /usr/lib/${packagename}.
Do the same for Debian packages built by scripts/package/builddeb
(executed by the "deb-pkg" target).
Signed-off-by: Karsten Merker <merker@debian.org>
---
scripts/package/builddeb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 88dbf23..944b560 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -143,6 +143,11 @@ else
cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
fi
+# If dtbs have been built for this arch, include them in the package
+if [ -d "arch/$ARCH/boot/dts" ]; then
+ find "arch/$ARCH/boot/dts" -iname '*.dtb' -exec sh -c "mkdir -p '$tmpdir/usr/lib/$packagename'; cp '{}' '$tmpdir/usr/lib/$packagename/'" \;
+fi
+
if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
rm -f "$tmpdir/lib/modules/$version/build"
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"
2015-06-20 14:48 [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg" Karsten Merker
@ 2015-06-22 6:04 ` Riku Voipio
2015-06-22 17:03 ` Karsten Merker
0 siblings, 1 reply; 3+ messages in thread
From: Riku Voipio @ 2015-06-22 6:04 UTC (permalink / raw)
To: Karsten Merker; +Cc: Michal Marek, linux-kbuild
Hi,
On 20 June 2015 at 17:48, Karsten Merker <merker@debian.org> wrote:
> Native Debian kernel packages include any dtbs that were generated
> during the kernel build process in /usr/lib/${packagename}.
> Do the same for Debian packages built by scripts/package/builddeb
> (executed by the "deb-pkg" target).
This change has already been submitted in a few variations and is now
headed to next kernel version:
https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?h=misc&id=ca2a9d2cf6cf3dd852c3926ac7e30ee774da4638
> Signed-off-by: Karsten Merker <merker@debian.org>
> ---
> scripts/package/builddeb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 88dbf23..944b560 100755
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -143,6 +143,11 @@ else
> cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
> fi
>
> +# If dtbs have been built for this arch, include them in the package
> +if [ -d "arch/$ARCH/boot/dts" ]; then
> + find "arch/$ARCH/boot/dts" -iname '*.dtb' -exec sh -c "mkdir -p '$tmpdir/usr/lib/$packagename'; cp '{}' '$tmpdir/usr/lib/$packagename/'" \;
> +fi
> +
> if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
> rm -f "$tmpdir/lib/modules/$version/build"
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"
2015-06-22 6:04 ` Riku Voipio
@ 2015-06-22 17:03 ` Karsten Merker
0 siblings, 0 replies; 3+ messages in thread
From: Karsten Merker @ 2015-06-22 17:03 UTC (permalink / raw)
To: Riku Voipio; +Cc: Karsten Merker, Michal Marek, linux-kbuild
On Mon, Jun 22, 2015 at 09:04:43AM +0300, Riku Voipio wrote:
> On 20 June 2015 at 17:48, Karsten Merker <merker@debian.org> wrote:
> > Native Debian kernel packages include any dtbs that were generated
> > during the kernel build process in /usr/lib/${packagename}.
> > Do the same for Debian packages built by scripts/package/builddeb
> > (executed by the "deb-pkg" target).
>
> This change has already been submitted in a few variations and is now
> headed to next kernel version:
>
> https://git.kernel.org/cgit/linux/kernel/git/mmarek/kbuild.git/commit/?h=misc&id=ca2a9d2cf6cf3dd852c3926ac7e30ee774da4638
Ooops - sorry for the noise...
Regards,
Karsten
--
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-22 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 14:48 [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg" Karsten Merker
2015-06-22 6:04 ` Riku Voipio
2015-06-22 17:03 ` Karsten Merker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox