All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
To: linux-kbuild@vger.kernel.org
Cc: maximilian attems <max@stro.at>,
	Ben Hutchings <ben@decadent.org.uk>,
	Michal Marek <mmarek@suse.cz>,
	Arnaud Patard <arnaud.patard@rtp-net.org>
Subject: [patch 1/1] deb-pkg: Add device tree blobs to the package
Date: Thu, 07 Nov 2013 16:17:34 +0100	[thread overview]
Message-ID: <20131107151746.950612598@rtp-net.org> (raw)

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



             reply	other threads:[~2013-11-08  8:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07 15:17 Arnaud Patard [this message]
2013-11-08 14:36 ` [patch 1/1] deb-pkg: Add device tree blobs to the package Ben Hutchings
2013-11-12 12:52   ` Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131107151746.950612598@rtp-net.org \
    --to=arnaud.patard@rtp-net.org \
    --cc=ben@decadent.org.uk \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=max@stro.at \
    --cc=mmarek@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.