Skip to content
Snippets Groups Projects
Commit b5a5e4c7 authored by Felix Fietkau's avatar Felix Fietkau Committed by Sam Ravnborg
Browse files

kbuild: fix unportability in gen_initramfs_list.sh


On a Mac OS X machine the output of ls -l is different from a standard
Linux machine. Use readlink instead of parsing a hardcoded field number
from the ls output.

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 01dee188
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ parse() { ...@@ -135,7 +135,7 @@ parse() {
str="${ftype} ${name} ${str} ${dev} ${maj} ${min}" str="${ftype} ${name} ${str} ${dev} ${maj} ${min}"
;; ;;
"slink") "slink")
local target=`field 11 $(LC_ALL=C ls -l "${location}")` local target=`readlink "${location}"`
str="${ftype} ${name} ${target} ${str}" str="${ftype} ${name} ${target} ${str}"
;; ;;
*) *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment