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 <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
parent
a8c50c16ea
commit
36d7311459
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
Loading…
Reference in New Issue