summaryrefslogtreecommitdiffstats
path: root/debian/rules.d/tools/objtool/Makefile
blob: 9990cde31532e0c6bec9d7ac8fac5c1fc08b5eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
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.
# objtool explicitly sets CC and LD to be native tools; we need to override
# this on the command line to make cross-builds work.
	$(MAKE) -C $(top_srcdir)/tools/objtool O=$(CURDIR) HOSTARCH=$(KERNEL_ARCH) ARCH=x86 CC=$(CC) LD=$(CROSS_COMPILE)ld V=$(KBUILD_VERBOSE)

install:
	install -D -m755 objtool $(DESTDIR)/$(installdir)/objtool