[linux] 01/03: linux-kbuild: Add objtool

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sat Jan 6 08:02:51 UTC 2018


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to branch sid
in repository linux.

commit 3c9fb40bbb2e944e51336abbab388f50374cefde
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Tue Dec 26 21:22:40 2017 +0000

    linux-kbuild: Add objtool
---
 debian/changelog                      | 7 +++++++
 debian/rules.d/tools/Makefile         | 1 +
 debian/rules.d/tools/objtool/Makefile | 9 +++++++++
 debian/rules.real                     | 1 +
 4 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 66ac861..b3c5c50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+linux (4.14.12-2) UNRELEASED; urgency=medium
+
+  [ Ben Hutchings ]
+  * linux-kbuild: Add objtool
+
+ -- Salvatore Bonaccorso <carnil at debian.org>  Sat, 06 Jan 2018 07:37:50 +0100
+
 linux (4.14.12-1) unstable; urgency=medium
 
   * New upstream stable update:
diff --git a/debian/rules.d/tools/Makefile b/debian/rules.d/tools/Makefile
index 454aa67..3c7dba3 100644
--- a/debian/rules.d/tools/Makefile
+++ b/debian/rules.d/tools/Makefile
@@ -1,6 +1,7 @@
 SUBDIRS = \
 	hv \
 	lib/lockdep \
+	objtool \
 	perf \
 	power \
 	usb/usbip
diff --git a/debian/rules.d/tools/objtool/Makefile b/debian/rules.d/tools/objtool/Makefile
new file mode 100644
index 0000000..532e5b7
--- /dev/null
+++ b/debian/rules.d/tools/objtool/Makefile
@@ -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
diff --git a/debian/rules.real b/debian/rules.real
index 6cdea7c..d460d9b 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list