Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbbFTOss (ORCPT ); Sat, 20 Jun 2015 10:48:48 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:50079 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547AbbFTOsl (ORCPT ); Sat, 20 Jun 2015 10:48:41 -0400 From: Karsten Merker To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Karsten Merker Subject: [PATCH] kbuild: builddeb: Include dtbs in the Debian package built by "make deb-pkg" Date: Sat, 20 Jun 2015 16:48:09 +0200 Message-Id: <1434811689-6923-1-git-send-email-merker@debian.org> X-Mailer: git-send-email 2.1.4 X-Provags-ID: V03:K0:DmMyPDAYHKovKaMMm5Sd78/9le2LAS3TaM/5z+PtAvBFP4s1u9A RBomogrDQ0ynD1osSrWhguoLvcOFb/CmoZN5MuJJNMuo0+X8+eQGW2/gGzwtEwJVig6k9sd 2lUtfZ3NE5nxVOIxQEJ3o6xmc4rUt11oMZUfkupuojDLicNCkN/gDTiUaqLA0HgqlM3do+C o8JfAucCwH23KBR5OfYmQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:wv1e2vZlMzE=:jUocCH4IMBrkmOhwDUsV2N WvFfYWmRT9zQDUVCf4Iw8jMFoqpJxJ0fZ8XYMtCJGjl87aMBhkK7IKjx2prK1tBZ2Uqzw9Hwh UK6HjDG6Cjh2ApSWu3EIpJ2qDMyj3a6uwr5tl0TUWqCx1s4KsS7/QjM86WIbBs/WBDWgfxAjL /jpymPzpW30DP4orjCFYrze5y0D3Cpd9fXrxlH/gdfnwakuQ7/VwDqMtwDlC4f0WVaj+6yoRk DgDqs5SdMpxoPub7ZHYTbjbwRyH3gslwG+6e3En6zhtkxVJkrntKgRvMvxtsVuZmhNgQvbA4x U4lfA5Sju587/tdJjjmuq6PCziRptjlhRxNbyoqare2erYebDAOKa8oFO/yZ+39lv3dJaa4Pq 03hiAieAdN3fhRDsu8aINst6qTA5GScaBYkgRNcIZhEo7sN7MlEmAx7TvKJH7fKpaGK7bcP5X CzZfN1FOUR4SmYhIyXxJwQ/YeEwrvKQDYL79Wb0E2Uwj96f28IE10X8uiYlj/9QUv3r5HGSUW odZ+86XhdEGxCUrCAp8DGaMgAiZBoWBcbXj5ryRCpQksmKKBZdMN7miYTyNTAB3ylovZkBWkN Kx3SFB4kBB9gmZ3bw7hqM+RM6gUiE6O141/ZogVyiIRmgjci3rgSK4lbUIng739edivUk78rR oAQTWqTfcqGQTakHs8px1tpDX Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1169 Lines: 32 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 --- 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-kernel" in Please read the FAQ at http://www.tux.org/lkml/