From 36d73114598d474e44f8660674fda7d9b7e1dd85 Mon Sep 17 00:00:00 2001 From: "Diaz de Grenu, Jose" Date: Fri, 29 Jul 2016 17:08:25 +0200 Subject: [PATCH] meta-digi-arm: trustfence-cst: fix native recipe and Makefile This package is native only, this patch ensures it can only be built natively and fix the following problems: * Add openssl-native rather than openssl to the dependencies. * Use the $(CC) $(LDFLAGS) and $(CFLAGS) that Yocto provides to avoid a compilation error. Signed-off-by: Diaz de Grenu, Jose --- .../trustfence-cst/trustfence-cst-2.3.2/Makefile | 5 ++--- ...tfence-cst_2.3.2.bb => trustfence-cst-native_2.3.2.bb} | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) rename meta-digi-arm/recipes-bsp/trustfence-cst/{trustfence-cst_2.3.2.bb => trustfence-cst-native_2.3.2.bb} (93%) diff --git a/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-2.3.2/Makefile b/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-2.3.2/Makefile index f443ef3d1..ed9df8301 100644 --- a/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-2.3.2/Makefile +++ b/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-2.3.2/Makefile @@ -1,7 +1,6 @@ TARGET = linux64/cst LIBS = -lfrontend -lcrypto -CC = gcc -CFLAGS = -g -Wall +CFLAGS += -g -Wall .PHONY: default all clean @@ -18,7 +17,7 @@ LIBS_PATH = linux64/lib .PRECIOUS: $(TARGET) $(OBJECTS) $(TARGET): $(OBJECTS) - $(CC) $(OBJECTS) $(CFLAGS) -L $(LIBS_PATH) $(LIBS) -I $(HEADERS) -o $@ + $(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -L $(LIBS_PATH) $(LIBS) -I $(HEADERS) -o $@ clean: -rm -f *.o $(TARGET) diff --git a/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst_2.3.2.bb b/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-native_2.3.2.bb similarity index 93% rename from meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst_2.3.2.bb rename to meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-native_2.3.2.bb index eb5fd5f39..ec1d8a6a7 100644 --- a/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst_2.3.2.bb +++ b/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst-native_2.3.2.bb @@ -3,9 +3,11 @@ DESCRIPTION = "Provides software code signing support designed for use with i.MX HOMEPAGE = "https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL" LICENSE = "CLOSED" -DEPENDS = "openssl" +DEPENDS = "openssl-native" -S= "${WORKDIR}/cst-${PV}" +S = "${WORKDIR}/cst-${PV}" + +inherit native SRC_URI = " \ ${@base_conditional('TRUSTFENCE_SIGN', '1', 'file://cst-${PV}.tar.gz', '', d)} \ @@ -32,5 +34,3 @@ do_install () { install -m 0755 ca/v3_ca.cnf ${D}${bindir}/v3_ca.cnf install -m 0755 ca/v3_usr.cnf ${D}${bindir}/v3_usr.cnf } - -BBCLASSEXTEND = "native"