mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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-liuyanfeng9@xiaomi.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user