mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
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 <[email protected]> Reported-by: Dan Streetman <[email protected]> Suggested-by: Peter Foley <[email protected]> Signed-off-by: Ashutosh Dixit <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
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
|