package/imx-mkimage: add -std=c99 to CFLAGS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 6 Mar 2019 17:49:18 +0000 (18:49 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 7 Mar 2019 20:44:12 +0000 (21:44 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/4c31d97a9aaf9ef887e68d64efe468c81f8cf7bc

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/imx-mkimage/imx-mkimage.mk

index 9f8e7d2d01a810108f59836d9c4bc100f8f694b9..d8d8b10b324268c1cfc97e39490abe7bb8ddae8c 100644 (file)
@@ -14,7 +14,9 @@ HOST_IMX_MKIMAGE_DEPENDENCIES = host-zlib
 ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M),y)
 # i.MX8M needs a different binary
 define HOST_IMX_MKIMAGE_BUILD_CMDS
-       $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)/iMX8M -f soc.mak mkimage_imx8
+       $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
+               CFLAGS="$(HOST_CFLAGS) -std=c99" \
+               -C $(@D)/iMX8M -f soc.mak mkimage_imx8
 endef
 define HOST_IMX_MKIMAGE_INSTALL_CMDS
        $(INSTALL) -D -m 755 $(@D)/iMX8M/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8
@@ -23,7 +25,9 @@ endef
 else
 # i.MX8 and i.MX8X
 define HOST_IMX_MKIMAGE_BUILD_CMDS
-       $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
+       $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
+               CFLAGS="$(HOST_CFLAGS) -std=c99" \
+               -C $(@D) MKIMG=mkimage_imx8 mkimage_imx8
 endef
 define HOST_IMX_MKIMAGE_INSTALL_CMDS
        $(INSTALL) -D -m 755 $(@D)/mkimage_imx8 $(HOST_DIR)/bin/mkimage_imx8