]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [Debian] handle dts directories
authorAndy Whitcroft <apw@canonical.com>
Tue, 6 Jan 2015 13:19:30 +0000 (13:19 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
Handle the renaming of dts files into vendor directories.  Also build
all DTS files to trigger proper directory construction.

BugLink: http://bugs.launchpad.net/bugs/1408004
Signed-off-by: Andy Whitcroft <apw@canonical.com>
debian/rules.d/2-binary-arch.mk

index fc61565d8bf673dfca089ecd51fb645fd979d0a5..29a3d3bed29c4d450416e58d2cec6359a7744619 100644 (file)
@@ -43,7 +43,7 @@ $(stampdir)/stamp-build-%: bldimg = $(call custom_override,build_image,$*)
 $(stampdir)/stamp-build-%: dtb_target = $(dtb_files_$*)
 $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
        @echo Debug: $@ build_image $(build_image) bldimg $(bldimg)
-       $(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(dtb_target)
+       $(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(if $(dtb_target),dtbs)
        @touch $@
 
 # Install the finished build
@@ -107,6 +107,7 @@ endif
        if [ "$(dtb_files)" ]; then \
                install -d $(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree; \
                for dtb_file in $(dtb_files); do \
+                       install -d `dirname $(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree/$$dtb_file`; \
                        install -m644 $(builddir)/build-$*/arch/$(build_arch)/boot/dts/$$dtb_file \
                                $(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree/$$dtb_file; \
                        echo "device-tree/$$dtb_file ?" >> $(DEBIAN)/d-i/firmware/kernel-image; \