tools/mkexport.sh: export LDSCRIPT and STRIP definition and align with Makefile.export.

This commit is contained in:
Pavel Pisa 2019-09-10 07:14:38 -06:00 committed by Gregory Nutt
parent 1da921c00f
commit f9e9f228cb
2 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ endif
@echo "LD=\"$(LD)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "AR=\"$(AR)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "NM=\"$(NM)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "STRIP=\"$(STRIP)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "OBJCOPY=\"$(OBJCOPY)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "OBJDUMP=\"$(OBJDUMP)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "NXFLATLDFLAGS1=\"$(NXFLATLDFLAGS1)\"" >> $(EXPORTDIR)/makeinfo.sh
@ -97,6 +98,7 @@ endif
@echo "DIRLINK=\"$(DIRLINK)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "DIRUNLINK=\"$(DIRUNLINK)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "MKDEP=\"$(MKDEP)\"" >> $(EXPORTDIR)/makeinfo.sh
@echo "LDSCRIPT=\"$(LDSCRIPT)\"" >> $(EXPORTDIR)/makeinfo.sh
$(Q) chmod 755 $(EXPORTDIR)/makeinfo.sh
clean:

View File

@ -241,12 +241,14 @@ echo "OBJEXT = ${OBJEXT}" >>"${EXPORTDIR}/build/Make.defs"
echo "LIBEXT = ${LIBEXT}" >>"${EXPORTDIR}/build/Make.defs"
echo "EXEEXT = ${EXEEXT}" >>"${EXPORTDIR}/build/Make.defs"
echo "HOSTCC = ${HOSTCC}" >>"${EXPORTDIR}/build/Make.defs"
echo "HOSTINCLUDES = ${HOSTINCLUDES}" >>"${EXPORTDIR}/build/Make.defs"
echo "HOSTCFLAGS = ${HOSTCFLAGS}" >>"${EXPORTDIR}/build/Make.defs"
echo "HOSTLDFLAGS = ${HOSTLDFLAGS}" >>"${EXPORTDIR}/build/Make.defs"
echo "HOSTEXEEXT = ${HOSTEXEEXT}" >>"${EXPORTDIR}/build/Make.defs"
echo "DIRLINK = ${DIRLINK}" >>"${EXPORTDIR}/build/Make.defs"
echo "DIRUNLINK = ${DIRUNLINK}" >>"${EXPORTDIR}/build/Make.defs"
echo "MKDEP = ${MKDEP}" >>"${EXPORTDIR}/build/Make.defs"
echo "LDSCRIPT = ${LDSCRIPT}" >>"${EXPORTDIR}/build/Make.defs"
# Additional compilation options when the kernel is built