Require DESTDIR to be set when installing for a different architecture.
This commit is contained in:
parent
60d3d21057
commit
e576df395b
@ -480,6 +480,18 @@ kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries}
|
||||
#
|
||||
SPECIAL_INSTALLCHECKS=
|
||||
|
||||
#
|
||||
# Require DESTDIR to be set if installing for a different architecture.
|
||||
#
|
||||
.if ${TARGET_ARCH} != ${MACHINE_ARCH} || ${TARGET} != ${MACHINE}
|
||||
SPECIAL_INSTALLCHECKS+= installcheck_DESTDIR
|
||||
installcheck_DESTDIR:
|
||||
.if !defined(DESTDIR) || empty(DESTDIR)
|
||||
@echo "ERROR: Please set DESTDIR!"; \
|
||||
false
|
||||
.endif
|
||||
.endif
|
||||
|
||||
#
|
||||
# installcheck
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user