Commit 48c9bf62 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [Debian] usbip tools packaging

BugLink: http://bugs.launchpad.net/bugs/898003Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 06e6cb81
...@@ -29,7 +29,7 @@ include $(DROOT)/rules.d/0-common-vars.mk ...@@ -29,7 +29,7 @@ include $(DROOT)/rules.d/0-common-vars.mk
# Maintainer targets # Maintainer targets
include $(DROOT)/rules.d/1-maintainer.mk include $(DROOT)/rules.d/1-maintainer.mk
do_linux_tools=$(sort $(filter-out false,$(do_tools_cpupower) $(do_tools_perf) $(do_tools_x86))) do_linux_tools=$(sort $(filter-out false,$(do_tools_usbip) $(do_tools_cpupower) $(do_tools_perf) $(do_tools_x86)))
do_cloud_tools=$(sort $(filter-out false,$(do_tools_hyperv))) do_cloud_tools=$(sort $(filter-out false,$(do_tools_hyperv)))
# Don't build tools in a cross compile environment. # Don't build tools in a cross compile environment.
......
...@@ -300,6 +300,10 @@ endif ...@@ -300,6 +300,10 @@ endif
ifeq ($(do_linux_tools),true) ifeq ($(do_linux_tools),true)
# Create the linux-tools tool links # Create the linux-tools tool links
install -d $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$* install -d $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
ifeq ($(do_tools_usbip),true)
ln -s ../../$(src_pkg_name)-tools-$(abi_release)/usbip $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
ln -s ../../$(src_pkg_name)-tools-$(abi_release)/usbipd $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
endif
ifeq ($(do_tools_cpupower),true) ifeq ($(do_tools_cpupower),true)
ln -s ../../$(src_pkg_name)-tools-$(abi_release)/cpupower $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$* ln -s ../../$(src_pkg_name)-tools-$(abi_release)/cpupower $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
endif endif
...@@ -516,6 +520,13 @@ endif ...@@ -516,6 +520,13 @@ endif
$(stampdir)/stamp-build-perarch: $(stampdir)/stamp-prepare-perarch install-arch-headers $(stampdir)/stamp-build-perarch: $(stampdir)/stamp-prepare-perarch install-arch-headers
@echo Debug: $@ @echo Debug: $@
ifeq ($(do_linux_tools),true) ifeq ($(do_linux_tools),true)
ifeq ($(do_tools_usbip),true)
chmod 755 $(builddirpa)/tools/usb/usbip/autogen.sh
cd $(builddirpa)/tools/usb/usbip && ./autogen.sh
chmod 755 $(builddirpa)/tools/usb/usbip/configure
cd $(builddirpa)/tools/usb/usbip && ./configure --prefix=$(builddirpa)/tools/usb/usbip/bin
cd $(builddirpa)/tools/usb/usbip && make install CFLAGS="-g -O2 -static" CROSS_COMPILE=$(CROSS_COMPILE)
endif
ifeq ($(do_tools_cpupower),true) ifeq ($(do_tools_cpupower),true)
# Allow for multiple installed versions of cpupower and libcpupower.so: # Allow for multiple installed versions of cpupower and libcpupower.so:
# Override LIB_MIN in order to to generate a versioned .so named # Override LIB_MIN in order to to generate a versioned .so named
...@@ -548,7 +559,12 @@ install-perarch: $(stampdir)/stamp-build-perarch ...@@ -548,7 +559,12 @@ install-perarch: $(stampdir)/stamp-build-perarch
ifeq ($(do_linux_tools),true) ifeq ($(do_linux_tools),true)
install -d $(toolspkgdir)/usr/lib install -d $(toolspkgdir)/usr/lib
install -d $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release) install -d $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
ifeq ($(do_tools_usbip),true)
install -m755 $(builddirpa)/tools/usb/usbip/bin/sbin/usbip \
$(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
install -m755 $(builddirpa)/tools/usb/usbip/bin/sbin/usbipd \
$(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
endif
ifeq ($(do_tools_cpupower),true) ifeq ($(do_tools_cpupower),true)
install -m755 $(builddirpa)/tools/power/cpupower/cpupower \ install -m755 $(builddirpa)/tools/power/cpupower/cpupower \
$(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release) $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
......
...@@ -101,6 +101,9 @@ install-tools: install-source $(stampdir)/stamp-build-perarch ...@@ -101,6 +101,9 @@ install-tools: install-source $(stampdir)/stamp-build-perarch
install -d $(toolsbin) install -d $(toolsbin)
install -d $(toolsman)/man1 install -d $(toolsman)/man1
install -m755 debian/tools/generic $(toolsbin)/usbip
install -m644 $(CURDIR)/tools/usb/usbip/doc/*.8 $(toolsman)/man1/
install -m755 debian/tools/generic $(toolsbin)/cpupower install -m755 debian/tools/generic $(toolsbin)/cpupower
install -m644 $(CURDIR)/tools/power/cpupower/man/*.1 $(toolsman)/man1/ install -m644 $(CURDIR)/tools/power/cpupower/man/*.1 $(toolsman)/man1/
......
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