]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
crypto/fsl: fix obj-yy in Makefile
authorClemens Gruber <clemens.gruber@pqgruber.com>
Sun, 3 Sep 2017 17:17:10 +0000 (19:17 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 4 Sep 2017 13:02:07 +0000 (09:02 -0400)
When enabling CONFIG_CMD_BLOB and/or CONFIG_CMD_DEKBLOB, the build fails
with a linker error:
  ...
  LD      u-boot
arch/arm/mach-imx/built-in.o: In function `blob_encap_dek':
/home/clemens/dev/u-boot/arch/arm/mach-imx/cmd_dek.c:46: undefined
reference to `blob_dek'

This is due to an error in the Makefile, resulting in obj-yy/obj-yn/..
and fsl_blob.o is therefore not linked.

Fix it by splitting it up into two obj-y lines.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
drivers/crypto/fsl/Makefile

index fd736cf3bea98d3af4e7f88a9fdf5a74a5884af8..ea878e1822076931fc8ed513767a0bb4a5fb9b44 100644 (file)
@@ -6,5 +6,6 @@
 
 obj-y += sec.o
 obj-$(CONFIG_FSL_CAAM) += jr.o fsl_hash.o jobdesc.o error.o
-obj-$(CONFIG_CMD_BLOB)$(CONFIG_CMD_DEKBLOB) += fsl_blob.o
+obj-$(CONFIG_CMD_BLOB) += fsl_blob.o
+obj-$(CONFIG_CMD_DEKBLOB) += fsl_blob.o
 obj-$(CONFIG_RSA_FREESCALE_EXP) += fsl_rsa.o