On 14 April 2014 22:55, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote: > 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? >From various discussions, I think it's agreed that /usr/lib/... isn't the right path to use (and we use it since years in Linaro images unfortunately). The consensus seems to follow bootloader spec: http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ and install the DTBs under /boot. Get it versioned is preferable. It should address the various bootloaders (U-boot, UEFI, GRUB, barebox, etc...) requirements, except the VFAT file system. IMO we should support the distribution wide consensus in this case, instead of flash-kernel (Debian/Ubuntu specific tool) expectations. We'll probably end up by adding a symlink to keep compatibility with older systems or fix flash-kernel. Any other feedback on this topic is appreciated. >> + 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. Right. I'll fix it. > (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. Cheers, -- Fathi Boudra -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html