Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/mkexport.sh: stop refering kernel path
Browse files Browse the repository at this point in the history
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>
yf13 committed Jan 26, 2025
1 parent 6be1ae0 commit fb2f3cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/mkexport.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit fb2f3cf

Please sign in to comment.