Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 1 | additional-dirs += $(objutil)/futility |
| 2 | |
Yu-Ping Wu | 0beddb5 | 2020-03-09 10:58:37 +0800 | [diff] [blame] | 3 | VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility |
| 4 | |
| 5 | $(VBOOT_FUTILITY): |
Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 6 | @printf " MAKE $(subst $(objutil)/,,$(@))\n" |
Paul Kocialkowski | 4611451 | 2016-07-24 12:10:38 +0200 | [diff] [blame] | 7 | unset CFLAGS LDFLAGS; $(MAKE) -C $(VBOOT_SOURCE) \ |
Yu-Ping Wu | 0beddb5 | 2020-03-09 10:58:37 +0800 | [diff] [blame] | 8 | BUILD=$(VBOOT_HOST_BUILD) \ |
Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 9 | CC="$(HOSTCC)" \ |
Manoj Gupta | 297e9c8 | 2019-09-07 02:44:52 -0700 | [diff] [blame] | 10 | $(if $(HOSTPKGCONFIG), PKG_CONFIG="$(HOSTPKGCONFIG)") \ |
Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 11 | V=$(V) \ |
Yu-Ping Wu | 0beddb5 | 2020-03-09 10:58:37 +0800 | [diff] [blame] | 12 | $@ |
Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 13 | |
Yu-Ping Wu | 0beddb5 | 2020-03-09 10:58:37 +0800 | [diff] [blame] | 14 | $(objutil)/futility/futility: $(VBOOT_FUTILITY) |
| 15 | mkdir -p $(dir $@) |
Patrick Georgi | bda8a04b | 2016-02-01 12:03:04 +0100 | [diff] [blame] | 16 | cp $< $@.tmp |
| 17 | mv $@.tmp $@ |