Siviuze commented on code in PR #10398:
URL: https://github.com/apache/nuttx/pull/10398#discussion_r1307511894


##########
tools/mkexport.sh:
##########
@@ -265,8 +292,19 @@ if [ "X${USRONLY}" != "Xy" ]; then
   echo "LDENDGROUP       = ${LDENDGROUP}" >>"${EXPORTDIR}/scripts/Make.defs"
   echo "LDFLAGS          = ${LDFLAGS}" >>"${EXPORTDIR}/scripts/Make.defs"
   echo "LDSTARTGROUP     = ${LDSTARTGROUP}" >>"${EXPORTDIR}/scripts/Make.defs"
+
+  echo "set(EXTRA_LIBS       \"${EXTRA_LIBS}\")"   
>>"${EXPORTDIR}/scripts/target.cmake"
+  echo "set(EXTRA_OBJS       \"${EXTRA_OBJS}\")"   
>>"${EXPORTDIR}/scripts/target.cmake"
+  echo "set(HEAD_OBJ         \"${HEAD_OBJ}\")"     
>>"${EXPORTDIR}/scripts/target.cmake"
+  echo "set(LDENDGROUP       \"${LDENDGROUP}\")"   
>>"${EXPORTDIR}/scripts/target.cmake"
+  echo "set(LDFLAGS          \"${LDFLAGS}\")"      
>>"${EXPORTDIR}/scripts/target.cmake"
+  echo "set(LDSTARTGROUP     \"${LDSTARTGROUP}\")" 
>>"${EXPORTDIR}/scripts/target.cmake"
 fi
 
+# Copy the CMake toolchain file
+
+cp "${TOPDIR}/tools/toolchainfile.cmake.export" 
"${EXPORTDIR}/scripts/toolchainfile.cmake"

Review Comment:
   I took the name from buildroot project: I can rename it if you prefer.
   
   P.S. My previous comment missed the point of your question so I 
deleted/updated it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to