Skip to contentSkip to conversation

imx: imx8qxp_mek: imximage: remove config.h

PATCH New Peng Fan 2 participants 4 messages Nov 5, 2018 – Dec 8, 2018

Subsystems (3)
lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/2 imx: imx8qxp_mek: imximage: remove config.h

config.h is not needed, remove it.

---
 board/freescale/imx8qxp_mek/imximage.cfg | 1 -
 1 file changed, 1 deletion(-)
board/freescale/imx8qxp_mek/imximage.cfg +0 -1
index 9d39f25bf6..bbffb1a88f 100644
@@ -7,7 +7,6 @@
  */
 
 #define __ASSEMBLY__
-#include <config.h>
 
 /* Boot from SD, sector size 0x400 */
 BOOT_FROM SD 0x400
Signature · 1 line
2.14.1
author
#1 lore raw

PATCH 2/2 arm: imx8qxp: build u-boot-dtb.cfgout before checking files

Build u-boot-dtb.cfgout before checking files, otherwise u-boot-dtb.cfgout is generated at late stage and cause final image not generated.

---
 arch/arm/mach-imx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/Makefile +1 -1
index 72fe23a2b9..a3190ad2f0 100644
@@ -89,7 +89,7 @@ IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%)
 ifeq ($(CONFIG_ARCH_IMX8), y)
 CNTR_DEPFILES := $(srctree)/tools/imx_cntr_image.sh
 IMAGE_TYPE := imx8image
-DEPFILE_EXISTS := $(shell if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
+DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
 else
 IMAGE_TYPE := imximage
 DEPFILE_EXISTS := 0
Signature · 1 line
2.14.1
#2 lore raw

PATCH 2/2 arm: imx8qxp: build u-boot-dtb.cfgout before checking files

Hi Peng,

Quoted 15 lines · Peng Fan

Build u-boot-dtb.cfgout before checking files, otherwise u-boot-dtb.cfgout is generated at late stage and cause final image not generated.

---
 arch/arm/mach-imx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/Makefile +0 -0
index 72fe23a2b9..a3190ad2f0 100644

arch/arm/mach-imx/Makefile IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%) · line 95

Quoted 8 lines
arch/arm/mach-imx/Makefile +1 -1
@@ -89,7 +89,7 @@ IMX_CONFIG = $(CONFIG_IMX_CONFIG:"%"=%)
 ifeq ($(CONFIG_ARCH_IMX8), y)
 CNTR_DEPFILES := $(srctree)/tools/imx_cntr_image.sh
 IMAGE_TYPE := imx8image
-DEPFILE_EXISTS := $(shell if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
+DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi)
 else
 IMAGE_TYPE := imximage
 DEPFILE_EXISTS := 0

This fixes an issue but it creates apparently a new one. After applying this, the board is not built clean. It looks like it cannot find ahab-container.img, even if it is present in my U-Boot directory.

+Fail open first container file ahab-container.img +make[2]: *** [u-boot-dtb.imx] Error 1 +make[1]: *** [u-boot-dtb.imx] Error 2 +make: *** [sub-make] Error 2

Without it, build is fine.

Regards,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#3 lore raw

PATCH 1/2 imx: imx8qxp_mek: imximage: remove config.h

In reply to Peng Fan
Quoted 13 lines · Peng Fan

config.h is not needed, remove it.

---
 board/freescale/imx8qxp_mek/imximage.cfg | 1 -
 1 file changed, 1 deletion(-)
board/freescale/imx8qxp_mek/imximage.cfg +0 -0
index 9d39f25bf6..bbffb1a88f 100644

board/freescale/imx8qxp_mek/imximage.cfg line 12

Quoted 7 lines
board/freescale/imx8qxp_mek/imximage.cfg +0 -1
@@ -7,7 +7,6 @@
  */
 
 #define __ASSEMBLY__
-#include <config.h>
 
 /* Boot from SD, sector size 0x400 */
 BOOT_FROM SD 0x400

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================