|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
imx-mkimage is compiled with the host gcc, thus if one needs to add
explicit linker flags one should use BULD_LDFLAGS, not the ones
forseen for the cross compiler.
Prevents, on distros with an older gcc (e.g. OpenSuse 15.3 with gcc 7.5.0),
the following error.
| Compiling mkimage_imx8
| gcc -O2 -Wall -std=c99 -I .../imx-boot/1.0-r0/recipe-sysroot-native/usr/include -L .../imx-boot/1.0-r0/recipe-sysroot-native/usr/lib
mkimage_imx8.c -o mkimage_imx8 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0
-fdebug-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0 -fdebug-prefix-map=.../imx-boot/1.0-r0/recipe-sysroot=
-fdebug-prefix-map=.../imx-boot/1.0-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -lz
| gcc: error: unrecognized command line option ‘-fmacro-prefix-map=.../imx-boot/1.0-r0=/usr/src/debug/imx-boot/1.0-r0’
| make[1]: *** [soc.mak:87: mkimage_imx8] Error 1
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|