This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit d13b745be48022d623443f6c89b9c2d1b38cdf94
Author: Yanfeng Liu <p-liuyanfe...@xiaomi.com>
AuthorDate: Sun Jan 26 16:30:35 2025 +0800

    tools/mkexport.sh: stop refering kernel path
    
    This stops exported LDELFFLAGS from referring to kernel folder
    linkscripts because kernel folder might not be present in such
    app building use cases.
    
    Signed-off-by: Yanfeng Liu <p-liuyanfe...@xiaomi.com>
---
 tools/mkexport.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/mkexport.sh b/tools/mkexport.sh
index f9f2377c31..a37a75e537 100755
--- a/tools/mkexport.sh
+++ b/tools/mkexport.sh
@@ -231,6 +231,10 @@ if [ "X${USRONLY}" != "Xy" ]; then
   done
 fi
 
+# Drop kernel folder modlib/gnu-elf.ld as the exported script shall suffice
+
+LDELFFLAGS=$(echo "$LDELFFLAGS" | sed -e 's:-T.*ld::')
+
 # Set LDMODULEFLAGS so that kernel modules can build in kernel mode
 
 LDMODULEFLAGS="-r"

Reply via email to