Commit fbe45706 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] install all dtb files

BugLink: http://bugs.launchpad.net/bugs/1408002Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 10444a41
...@@ -181,6 +181,9 @@ do_flavour_image_package=true ...@@ -181,6 +181,9 @@ do_flavour_image_package=true
# The general flavour specific header package. # The general flavour specific header package.
do_flavour_header_package=true do_flavour_header_package=true
# DTBs
do_dtbs=false
# Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008) # Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
# #
# These 2 environment variables set the -j value of the kernel build. For example, # These 2 environment variables set the -j value of the kernel build. For example,
......
...@@ -40,10 +40,9 @@ build-%: $(stampdir)/stamp-build-% ...@@ -40,10 +40,9 @@ build-%: $(stampdir)/stamp-build-%
# Do the actual build, including image and modules # Do the actual build, including image and modules
$(stampdir)/stamp-build-%: target_flavour = $* $(stampdir)/stamp-build-%: target_flavour = $*
$(stampdir)/stamp-build-%: bldimg = $(call custom_override,build_image,$*) $(stampdir)/stamp-build-%: bldimg = $(call custom_override,build_image,$*)
$(stampdir)/stamp-build-%: dtb_target = $(dtb_files_$*)
$(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-% $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
@echo Debug: $@ build_image $(build_image) bldimg $(bldimg) @echo Debug: $@ build_image $(build_image) bldimg $(bldimg)
$(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(if $(dtb_target),dtbs) $(build_cd) $(kmake) $(build_O) $(conc_level) $(bldimg) modules $(if $(filter true,$(do_dtbs)),dtbs)
@touch $@ @touch $@
# Install the finished build # Install the finished build
...@@ -60,7 +59,6 @@ install-%: kernfile = $(call custom_override,kernel_file,$*) ...@@ -60,7 +59,6 @@ install-%: kernfile = $(call custom_override,kernel_file,$*)
install-%: instfile = $(call custom_override,install_file,$*) install-%: instfile = $(call custom_override,install_file,$*)
install-%: hdrdir = $(CURDIR)/debian/$(basepkg)-$*/usr/src/$(basepkg)-$* install-%: hdrdir = $(CURDIR)/debian/$(basepkg)-$*/usr/src/$(basepkg)-$*
install-%: target_flavour = $* install-%: target_flavour = $*
install-%: dtb_files = $(dtb_files_$*)
install-%: CONFIG_MODULE_SIG_HASH=sha512 install-%: CONFIG_MODULE_SIG_HASH=sha512
install-%: MODSECKEY=$(builddir)/build-$*/signing_key.priv install-%: MODSECKEY=$(builddir)/build-$*/signing_key.priv
install-%: MODPUBKEY=$(builddir)/build-$*/signing_key.x509 install-%: MODPUBKEY=$(builddir)/build-$*/signing_key.x509
...@@ -104,13 +102,12 @@ endif ...@@ -104,13 +102,12 @@ endif
$(pkgdir)/boot/abi-$(abi_release)-$* $(pkgdir)/boot/abi-$(abi_release)-$*
install -m600 $(builddir)/build-$*/System.map \ install -m600 $(builddir)/build-$*/System.map \
$(pkgdir)/boot/System.map-$(abi_release)-$* $(pkgdir)/boot/System.map-$(abi_release)-$*
if [ "$(dtb_files)" ]; then \ if [ "$(filter true,$(do_dtbs))" ]; then \
install -d $(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree; \ $(build_cd) $(kmake) $(build_O) $(conc_level) dtbs_install \
for dtb_file in $(dtb_files); do \ INSTALL_DTBS_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree; \
install -d `dirname $(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree/$$dtb_file`; \ ( cd $(pkgdir)/lib/firmware/$(abi_release)-$*/ && find device-tree -print ) | \
install -m644 $(builddir)/build-$*/arch/$(build_arch)/boot/dts/$$dtb_file \ while read dtb_file; do \
$(pkgdir)/lib/firmware/$(abi_release)-$*/device-tree/$$dtb_file; \ echo "$$dtb_file ?" >> $(DEBIAN)/d-i/firmware/kernel-image; \
echo "device-tree/$$dtb_file ?" >> $(DEBIAN)/d-i/firmware/kernel-image; \
done; \ done; \
fi fi
ifeq ($(no_dumpfile),) ifeq ($(no_dumpfile),)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment