Paul Gortmaker | 65f6f09 | 2015-06-21 00:32:05 -0400 | [diff] [blame] | 1 | ifndef CROSS_COMPILE |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 2 | # List of programs to build |
Ashutosh Dixit | d47fb4e | 2014-12-04 13:27:29 -0800 | [diff] [blame] | 3 | hostprogs-$(CONFIG_X86_64) := mpssd |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 4 | |
| 5 | mpssd-objs := mpssd.o sysfs.o |
| 6 | |
| 7 | # Tell kbuild to always build the programs |
| 8 | always := $(hostprogs-y) |
| 9 | |
Peter Foley | 7b34577 | 2014-10-02 19:35:26 -0400 | [diff] [blame] | 10 | HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 11 | |
Caz Yokoyama | 8d49751 | 2013-09-05 16:42:39 -0700 | [diff] [blame] | 12 | ifdef DEBUG |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 13 | HOSTCFLAGS += -DDEBUG=$(DEBUG) |
Caz Yokoyama | 8d49751 | 2013-09-05 16:42:39 -0700 | [diff] [blame] | 14 | endif |
| 15 | |
Peter Foley | adb19fb | 2014-09-25 11:23:09 -0700 | [diff] [blame] | 16 | HOSTLOADLIBES_mpssd := -lpthread |
Caz Yokoyama | 8d49751 | 2013-09-05 16:42:39 -0700 | [diff] [blame] | 17 | |
| 18 | install: |
| 19 | install mpssd /usr/sbin/mpssd |
| 20 | install micctrl /usr/sbin/micctrl |
Paul Gortmaker | 65f6f09 | 2015-06-21 00:32:05 -0400 | [diff] [blame] | 21 | endif |