Fix a bug which prevents parsing this Makefile without having a
previously-built loader binary elsewhere.
This commit is contained in:
parent
bb65fdf6e0
commit
0153af6a16
@ -16,8 +16,10 @@ LOADER= ${.OBJDIR}/../loader/loader
|
||||
LOADER= ${.CURDIR}/../loader/loader
|
||||
.endif
|
||||
|
||||
.if exists(${LOADER})
|
||||
LOADER_SIZE != wc -c ${LOADER} | awk '{print int(($$1 + 15) / 16)}'
|
||||
AFLAGS= --defsym LOADER_SIZE=${LOADER_SIZE}
|
||||
.endif
|
||||
|
||||
${BOOT}: ${BSECT} ${LDR} ${LOADER}
|
||||
cat ${BSECT} ${LDR} ${LOADER} > ${.TARGET}.tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user