forked from Minki/linux
d47fb4ec7e
mic/mpssd along with MIC drivers are currently only usable on x86_64. So build mic/mpssd only for x86_64 to avoid build breaks on big-endian systems. Reported-by: Daniel Borkmann <dborkman@redhat.com> Reported-by: Dan Streetman <ddstreet@gmail.com> Suggested-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
20 lines
391 B
Makefile
20 lines
391 B
Makefile
# List of programs to build
|
|
hostprogs-$(CONFIG_X86_64) := mpssd
|
|
|
|
mpssd-objs := mpssd.o sysfs.o
|
|
|
|
# Tell kbuild to always build the programs
|
|
always := $(hostprogs-y)
|
|
|
|
HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include
|
|
|
|
ifdef DEBUG
|
|
HOSTCFLAGS += -DDEBUG=$(DEBUG)
|
|
endif
|
|
|
|
HOSTLOADLIBES_mpssd := -lpthread
|
|
|
|
install:
|
|
install mpssd /usr/sbin/mpssd
|
|
install micctrl /usr/sbin/micctrl
|