kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg"
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
@@ -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
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 byscripts/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:
Quoted 24 lines
Signed-off-by Karsten Merker <[email protected]>--- scripts/package/builddeb | 5 +++++ 1 file changed, 5 insertions(+)scripts/package/builddeb +5
-1@@ -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
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 byscripts/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:
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