scripts: kwbimage: fix build with non-glibc systems
get_current_dir_name is a glibc extension, thus replace it
with a call to standard POSIX pathconf/malloc/gecwd.

The result slightly differs, because get_current_dir_name consults
the $PWD environment variable as as well, but that's ok, as it's
just an error message.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 799d94d commit d2211c83365e5473cede0aa4704294d03270e59c
@Ahmad Fatoum Ahmad Fatoum authored on 27 May 2019
Sascha Hauer committed on 28 May 2019
Showing 1 changed file
View
scripts/kwbimage.c