Re: [PATCH] deb-pkg: install device tree blobs in linux-image package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2014-04-12 at 20:15 +0300, Fathi Boudra wrote:
> Signed-off-by: Fathi Boudra <fathi.boudra@xxxxxxxxxx>
> ---
>  scripts/package/builddeb | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index f46e4dd..24cb3b1 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -165,6 +165,11 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
>  	fi
>  fi
>  
> +if grep -q '^CONFIG_OF=y' $KCONFIG_CONFIG ; then
> +	mkdir -p "$tmpdir/boot/dtb/$version"

The boot loader only needs to read at most one of the installed DTB
files on any given system, and you can't in general expect it to read a
DTB from the filesystem.  So why not install them in
/usr/lib/linux-image-$version where flash-kernel expects?

> +	INSTALL_DTBS_PATH="$tmpdir/boot/dtb/$version" $MAKE KBUILD_SRC= dtbs_install
> +fi
> +

The dtbs_install target is (currently) specific to arm so this appears
to break other architectures where CONFIG_OF is used.

(But it's good to know that it's there, and we should maybe start using
it in the Debian official packages.)

Ben.

>  if [ "$ARCH" != "um" ]; then
>  	$MAKE headers_check KBUILD_SRC=
>  	$MAKE headers_install KBUILD_SRC= INSTALL_HDR_PATH="$libc_headers_dir/usr"

-- 
Ben Hutchings
I say we take off; nuke the site from orbit.  It's the only way to be sure.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux