Commit 9cb8e0ac authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Juerg Haefliger
parent a347495a
...@@ -435,6 +435,26 @@ endif ...@@ -435,6 +435,26 @@ endif
rm -rf $(headers_tmp) rm -rf $(headers_tmp)
define dh_all
dh_installchangelogs -p$(1)
dh_installdocs -p$(1)
dh_compress -p$(1)
dh_fixperms -p$(1) -X/boot/
dh_shlibdeps -p$(1) $(shlibdeps_opts)
dh_installdeb -p$(1)
dh_installdebconf -p$(1)
$(lockme) dh_gencontrol -p$(1) -- -Vlinux:rprovides='$(rprovides)'
dh_md5sums -p$(1)
dh_builddeb -p$(1) -- $(2)
endef
define newline
endef
define dh_all_inline
$(subst ${newline},; \${newline},$(call dh_all,$(1),$(2)))
endef
binary-arch-headers: install-arch-headers binary-arch-headers: install-arch-headers
@echo Debug: $@ @echo Debug: $@
dh_testdir dh_testdir
...@@ -444,14 +464,7 @@ ifneq ($(DEBIAN),debian.master) ...@@ -444,14 +464,7 @@ ifneq ($(DEBIAN),debian.master)
echo "non-master branch building linux-libc-dev, aborting" echo "non-master branch building linux-libc-dev, aborting"
exit 1 exit 1
endif endif
dh_installchangelogs -plinux-libc-dev $(call dh_all,linux-libc-dev)
dh_installdocs -plinux-libc-dev
dh_compress -plinux-libc-dev
dh_fixperms -plinux-libc-dev
dh_installdeb -plinux-libc-dev
$(lockme) dh_gencontrol -plinux-libc-dev -- $(libc_dev_version)
dh_md5sums -plinux-libc-dev
dh_builddeb -plinux-libc-dev
endif endif
binary-%: pkgimg = $(bin_pkg_name)-$* binary-%: pkgimg = $(bin_pkg_name)-$*
...@@ -470,25 +483,8 @@ binary-%: install-% ...@@ -470,25 +483,8 @@ binary-%: install-%
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_installchangelogs -p$(pkgimg) $(call dh_all,$(pkgimg),-Zbzip2 -z9)
dh_installdocs -p$(pkgimg) $(call dh_all,$(pkgimg_mods))
dh_compress -p$(pkgimg)
dh_fixperms -p$(pkgimg) -X/boot/
dh_installdeb -p$(pkgimg)
dh_shlibdeps -p$(pkgimg) $(shlibdeps_opts)
$(lockme) dh_gencontrol -p$(pkgimg) -- -Vlinux:rprovides='$(rprovides)'
dh_md5sums -p$(pkgimg)
dh_builddeb -p$(pkgimg) -- -Zbzip2 -z9
dh_installchangelogs -p$(pkgimg_mods)
dh_installdocs -p$(pkgimg_mods)
dh_compress -p$(pkgimg_mods)
dh_fixperms -p$(pkgimg_mods) -X/boot/
dh_installdeb -p$(pkgimg_mods)
dh_shlibdeps -p$(pkgimg_mods) $(shlibdeps_opts)
$(lockme) dh_gencontrol -p$(pkgimg_mods)
dh_md5sums -p$(pkgimg_mods)
dh_builddeb -p$(pkgimg_mods)
ifeq ($(do_extras_package),true) ifeq ($(do_extras_package),true)
ifeq ($(ship_extras_package),false) ifeq ($(ship_extras_package),false)
...@@ -500,53 +496,22 @@ ifeq ($(do_extras_package),true) ...@@ -500,53 +496,22 @@ ifeq ($(do_extras_package),true)
| tee -a $(target_flavour).not-shipped.log; | tee -a $(target_flavour).not-shipped.log;
else else
if [ -f $(DEBIAN)/control.d/$(target_flavour).inclusion-list ] ; then \ if [ -f $(DEBIAN)/control.d/$(target_flavour).inclusion-list ] ; then \
dh_installchangelogs -p$(pkgimg_ex); \ $(call dh_all_inline,$(pkgimg_ex),-Zbzip2 -z9); \
dh_installdocs -p$(pkgimg_ex); \
dh_compress -p$(pkgimg_ex); \
dh_fixperms -p$(pkgimg_ex) -X/boot/; \
dh_installdeb -p$(pkgimg_ex); \
dh_shlibdeps -p$(pkgimg_ex) $(shlibdeps_opts); \
$(lockme) dh_gencontrol -p$(pkgimg_ex); \
dh_md5sums -p$(pkgimg_ex); \
dh_builddeb -p$(pkgimg_ex) -- -Zbzip2 -z9; \
fi fi
endif endif
endif endif
dh_installchangelogs -p$(pkghdr) $(call dh_all,$(pkghdr))
dh_installdocs -p$(pkghdr)
dh_compress -p$(pkghdr)
dh_fixperms -p$(pkghdr)
dh_shlibdeps -p$(pkghdr) $(shlibdeps_opts)
dh_installdeb -p$(pkghdr)
$(lockme) dh_gencontrol -p$(pkghdr)
dh_md5sums -p$(pkghdr)
dh_builddeb -p$(pkghdr)
ifneq ($(skipsub),true) ifneq ($(skipsub),true)
@set -e; for sub in $($(*)_sub); do \ @set -e; for sub in $($(*)_sub); do \
pkg=$(bin_pkg_name)-$$sub; \ pkg=$(bin_pkg_name)-$$sub; \
dh_installchangelogs -p$$pkg; \ $(call dh_all_inline,$$pkg); \
dh_installdocs -p$$pkg; \
dh_compress -p$$pkg; \
dh_fixperms -p$$pkg -X/boot/; \
dh_shlibdeps -p$$pkg $(shlibdeps_opts); \
dh_installdeb -p$$pkg; \
$(lockme) dh_gencontrol -p$$pkg; \
dh_md5sums -p$$pkg; \
dh_builddeb -p$$pkg; \
done done
endif endif
ifneq ($(skipdbg),true) ifneq ($(skipdbg),true)
dh_installchangelogs -p$(dbgpkg) $(call dh_all,$(dbgpkg))
dh_installdocs -p$(dbgpkg)
dh_compress -p$(dbgpkg)
dh_fixperms -p$(dbgpkg)
dh_installdeb -p$(dbgpkg)
$(lockme) dh_gencontrol -p$(dbgpkg)
dh_md5sums -p$(dbgpkg)
dh_builddeb -p$(dbgpkg)
# Hokay...here's where we do a little twiddling... # Hokay...here's where we do a little twiddling...
# Renaming the debug package prevents it from getting into # Renaming the debug package prevents it from getting into
...@@ -571,26 +536,10 @@ ifneq ($(skipdbg),true) ...@@ -571,26 +536,10 @@ ifneq ($(skipdbg),true)
endif endif
ifeq ($(do_linux_tools),true) ifeq ($(do_linux_tools),true)
dh_installchangelogs -p$(pkgtools) $(call dh_all,$(pkgtools))
dh_installdocs -p$(pkgtools)
dh_compress -p$(pkgtools)
dh_fixperms -p$(pkgtools)
dh_shlibdeps -p$(pkgtools) $(shlibdeps_opts)
dh_installdeb -p$(pkgtools)
$(lockme) dh_gencontrol -p$(pkgtools)
dh_md5sums -p$(pkgtools)
dh_builddeb -p$(pkgtools)
endif endif
ifeq ($(do_cloud_tools),true) ifeq ($(do_cloud_tools),true)
dh_installchangelogs -p$(pkgcloud) $(call dh_all,$(pkgcloud))
dh_installdocs -p$(pkgcloud)
dh_compress -p$(pkgcloud)
dh_fixperms -p$(pkgcloud)
dh_shlibdeps -p$(pkgcloud) $(shlibdeps_opts)
dh_installdeb -p$(pkgcloud)
$(lockme) dh_gencontrol -p$(pkgcloud)
dh_md5sums -p$(pkgcloud)
dh_builddeb -p$(pkgcloud)
endif endif
ifneq ($(full_build),false) ifneq ($(full_build),false)
...@@ -715,28 +664,10 @@ binary-perarch: cloudpkg = $(cloud_pkg_name) ...@@ -715,28 +664,10 @@ binary-perarch: cloudpkg = $(cloud_pkg_name)
binary-perarch: install-perarch binary-perarch: install-perarch
@echo Debug: $@ @echo Debug: $@
ifeq ($(do_linux_tools),true) ifeq ($(do_linux_tools),true)
dh_strip -p$(toolspkg) $(call dh_all,$(toolspkg))
dh_installchangelogs -p$(toolspkg)
dh_installdocs -p$(toolspkg)
dh_compress -p$(toolspkg)
dh_fixperms -p$(toolspkg)
dh_shlibdeps -p$(toolspkg) $(shlibdeps_opts)
dh_installdeb -p$(toolspkg)
$(lockme) dh_gencontrol -p$(toolspkg)
dh_md5sums -p$(toolspkg)
dh_builddeb -p$(toolspkg)
endif endif
ifeq ($(do_cloud_tools),true) ifeq ($(do_cloud_tools),true)
dh_strip -p$(cloudpkg) $(call dh_all,$(cloudpkg))
dh_installchangelogs -p$(cloudpkg)
dh_installdocs -p$(cloudpkg)
dh_compress -p$(cloudpkg)
dh_fixperms -p$(cloudpkg)
dh_shlibdeps -p$(cloudpkg) $(shlibdeps_opts)
dh_installdeb -p$(cloudpkg)
$(lockme) dh_gencontrol -p$(cloudpkg)
dh_md5sums -p$(cloudpkg)
dh_builddeb -p$(cloudpkg)
endif endif
binary-debs: signing = $(CURDIR)/debian/$(bin_pkg_name)-signing binary-debs: signing = $(CURDIR)/debian/$(bin_pkg_name)-signing
......
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