summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMaciej Gabryelski <maciej.gabryelski@3mdeb.com>2022-04-21 10:11:43 +0200
committerMichał Żygowski <michal.zygowski@3mdeb.com>2022-12-09 11:05:56 +0000
commit9d2902f7502598baa4a31d33b57ab340fa1daaed (patch)
treec56d072acad3fc5c8f2c03eb2e377efa9ca293b3 /util
parent1fc12db95f7c1e353fd9fd4d496946cd17a733a4 (diff)
downloadcoreboot-9d2902f7502598baa4a31d33b57ab340fa1daaed.tar.gz
coreboot-9d2902f7502598baa4a31d33b57ab340fa1daaed.tar.bz2
coreboot-9d2902f7502598baa4a31d33b57ab340fa1daaed.zip
util/inteltool/Makefile: improve cross-compilation support
Use tool from INSTALL variable to create directory instead of mkdir to be compatible with other cross-compilation buildsystems (like Yocto). Signed-off-by: Maciej Gabryelski <maciej.gabryelski@3mdeb.com> Change-Id: I0b0949d07baae1ae1d7b22ac3d0b8913f81d89c1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70104 Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/inteltool/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/inteltool/Makefile b/util/inteltool/Makefile
index 3b692fd332af..e6e122bc4500 100644
--- a/util/inteltool/Makefile
+++ b/util/inteltool/Makefile
@@ -77,9 +77,9 @@ pciutils:
@rm -rf .test.c .test .test.dSYM
install: $(PROGRAM)
- mkdir -p $(DESTDIR)$(PREFIX)/sbin
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/sbin
$(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man8
$(INSTALL) -p -m644 $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8
.PHONY: all clean distclean dep pciutils