diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2019-12-07 12:17:38 +0000 |
---|---|---|
committer | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2019-12-26 22:55:29 +0000 |
commit | bef92f97c6fec492f664722256eda34d39e66bad (patch) | |
tree | dadf9d760c525fda195db7ee0068aaf1504bb965 /debian/rules.real | |
parent | 5af2d5ec1de7178e5e250299a8be1d1b62a58764 (diff) | |
download | kernel_replicant_linux-bef92f97c6fec492f664722256eda34d39e66bad.tar.gz kernel_replicant_linux-bef92f97c6fec492f664722256eda34d39e66bad.tar.bz2 kernel_replicant_linux-bef92f97c6fec492f664722256eda34d39e66bad.zip |
debian/rules: Add rules for libtraceevent
Add build rules for libtracevent which will eventually call Makefile
added earlier and will build it and package the shared library.
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Diffstat (limited to 'debian/rules.real')
-rw-r--r-- | debian/rules.real | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/debian/rules.real b/debian/rules.real index 1e526ff75a12..2dcbaf4fb5da 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -69,7 +69,8 @@ build-arch-arch: \ $(call if_package, linux-cpupower, build-cpupower) \ $(call if_package, liblockdep-dev, build-liblockdep) \ $(call if_package, libbpf-dev, build-libbpf) \ - $(call if_package, hyperv-daemons, build-hyperv-daemons) + $(call if_package, hyperv-daemons, build-hyperv-daemons) \ + $(call if_package, libtraceevent-dev, build-libtraceevent) binary-arch-arch: \ $(call if_package, $(SOURCE_BASENAME)-config-$(VERSION), install-config_$(ARCH)) \ $(call if_package, linux-headers-$(ABINAME)-all, install-headers_$(ARCH)) \ @@ -83,7 +84,8 @@ binary-arch-arch: \ $(call if_package, linux-cpupower, install-cpupower) \ $(call if_package, liblockdep-dev, install-liblockdep) \ $(call if_package, libbpf-dev, install-libbpf) \ - $(call if_package, hyperv-daemons, install-hyperv-daemons) + $(call if_package, hyperv-daemons, install-hyperv-daemons) \ + $(call if_package, libtraceevent-dev, install-libtraceevent) build-indep: \ $(call if_package, $(SOURCE_BASENAME)-doc-$(VERSION), $(STAMPS_DIR)/build-doc) @@ -903,6 +905,35 @@ install-bootwrapper: build-bootwrapper dh_md5sums dh_builddeb +build-libtraceevent: $(STAMPS_DIR)/build-tools-headers + $(call make-tools,tools/lib/traceevent) + +install-libtraceevent: DH_OPTIONS = $(addprefix -p,$(filter libtraceevent%,$(packages_enabled))) +install-libtraceevent: SHLIB_PACKAGE = $(filter-out libtraceevent%-plugin,$(filter-out libtraceevent-dev,$(filter libtraceevent%,$(packages_enabled)))) +install-libtraceevent: DIR = $(CURDIR)/debian/libtraceevent-tmp +install-libtraceevent: build-libtraceevent + dh_testdir + dh_testroot + dh_prep + $(call make-tools,tools/lib/traceevent) install DESTDIR=$(DIR) + env -u DH_OPTIONS dh_install -p$(SHLIB_PACKAGE) --sourcedir=$(DIR) \ + 'usr/lib/*/libtraceevent.so.*' + dh_install --sourcedir=$(DIR) + dh_installchangelogs +ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) + dh_installdocs +endif + dh_strip + dh_compress + dh_fixperms + env -u DH_OPTIONS dh_makeshlibs -p$(SHLIB_PACKAGE) \ + $(SHLIB_PACKAGE) + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + .PHONY: binary-% build-% install-% setup-% source-% # vim: filetype=make |