linux-kbuild: Add objtool

This commit is contained in:
Ben Hutchings 2017-12-26 21:22:40 +00:00
parent 7f35685e4b
commit 4932bdacf1
4 changed files with 12 additions and 0 deletions

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ linux (4.15~rc5-1~exp1) UNRELEASED; urgency=medium
phram when locked down"
* cpupower: Move library to multiarch directory
* [rt] Disable until it is updated for 4.15 or later
* linux-kbuild: Add objtool
-- Ben Hutchings <ben@decadent.org.uk> Tue, 26 Dec 2017 16:25:55 +0000

View File

@ -1,6 +1,7 @@
SUBDIRS = \
hv \
lib/lockdep \
objtool \
perf \
power \
usb/usbip

9
debian/rules.d/tools/objtool/Makefile vendored Normal file
View File

@ -0,0 +1,9 @@
include $(top_rulesdir)/Makefile.inc
all:
# For now, only supported target architecture is x86. Later we'll need to build
# for multiple targets and add a wrapper, same as for modpost.
$(MAKE) -C $(top_srcdir)/tools/objtool O=$(CURDIR) ARCH=x86
install:
install -D -m755 objtool $(DESTDIR)/$(installdir)/objtool

1
debian/rules.real vendored
View File

@ -548,6 +548,7 @@ install-kbuild: $(STAMPS_DIR)/build-tools
dh_testroot
dh_prep
$(call make-tools,scripts) install DESTDIR=$(DIR) prefix=$(PREFIX_DIR)
$(call make-tools,tools/objtool) install DESTDIR=$(DIR) prefix=$(PREFIX_DIR)
dh_link $(PREFIX_DIR) /usr/src/$(PACKAGE_NAME)
dh_installchangelogs
dh_installdocs