Skip to contentSkip to conversation

kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"

PATCH In review Karsten Merker 2 participants 3 messages Jun 20, 2015 – Jun 22, 2015 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"

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).

---
 scripts/package/builddeb | 5 +++++
 1 file changed, 5 insertions(+)
scripts/package/builddeb +5 -0
index 88dbf23..944b560 100755
@@ -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"
Signature · 4 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
#1 lore raw

Hi,

Quoted 4 lines · 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).

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

Quoted 24 lines
---
 scripts/package/builddeb | 5 +++++
 1 file changed, 5 insertions(+)
scripts/package/builddeb +5 -1
index 88dbf23..944b560 100755
@@ -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

Quoted 2 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in

#2 lore raw
Quoted 10 lines · Riku Voipio
Quoted 4 lines · 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).

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

Signature · 5 lines
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