[meta-freescale] [PATCH v2 1/7] qoriq-edgescale-eds: add recipes
chunrong.guo at nxp.com
chunrong.guo at nxp.com
Tue May 8 02:29:42 PDT 2018
From: Chunrong Guo <chunrong.guo at nxp.com>
*include the following changes:
f613aac - Merge pull request #10 in DCCA/edgescale-eds from ~NXA22939/edgescale-eds:master to master
121c34a - Add 3 Phases Certificate Enroll
d61572d - Merge pull request #7 in DCCA/edgescale-eds from ~NXA23275/edgescale-eds:master to master
381baa9 - startup.sh: check OTA status
9fdcdbc - Merge pull request #6 in DCCA/edgescale-eds from ~NXA16258/edgescale-eds:master to master
3ddf7b7 - Add OTA scripts
32d041c - Merge pull request #3 in DCCA/edgescale-eds from ~NXA22939/edgescale-eds:master to master
a325b26 - add SCR.txt
efdc610 - Add mq-agent to startup.sh
b9fd32a - Update CleanSession to false
10b78eb - Add edgescale mq-agent
3a49f1b - Merge pull request #2 in DCCA/edgescale-eds from ~NXA16258/edgescale-eds:master to master
a71c083 - Add startup script to push device public ipaddress to cloud
6dd2c4f - Initial Commit
Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
---
.../qoriq-eds/qoriq-edgescale-eds.bb | 63 ++++++++++++++++++++++
.../0001-Makefile-fix-build-error.patch | 31 +++++++++++
2 files changed, 94 insertions(+)
create mode 100644 recipes-containers/qoriq-eds/qoriq-edgescale-eds.bb
create mode 100644 recipes-containers/qoriq-eds/qoriq-edgescale-eds/0001-Makefile-fix-build-error.patch
diff --git a/recipes-containers/qoriq-eds/qoriq-edgescale-eds.bb b/recipes-containers/qoriq-eds/qoriq-edgescale-eds.bb
new file mode 100644
index 0000000..ae9291e
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-edgescale-eds.bb
@@ -0,0 +1,63 @@
+SUMMARY = "EDGESCALE-EDS is a set of software agents running on device side which connects to cloud"
+HOMEPAGE = "https://github.com/NXP/qoriq-edgescale-eds.git"
+LICENSE = "NXP-EULA"
+LIC_FILES_CHKSUM = "file://src/import/EULA.txt;md5=d969f2c93b3905d4b628787ce5f8df4b"
+
+SRC_URI = "git://github.com/NXP/qoriq-edgescale-eds.git;nobranch=1 \
+ file://0001-Makefile-fix-build-error.patch \
+"
+SRCREV = "f613aac6d8f5ef32cd0ce5c3a710d951a6635336"
+
+DEPENDS = "\
+ go-logrus \
+ mqtt \
+ est-client-go \
+ "
+GO_IMPORT = "import"
+
+inherit goarch
+inherit go
+
+# This disables seccomp and apparmor, which are on by default in the
+# go package.
+EXTRA_OEMAKE="BUILDTAGS=''"
+
+do_compile() {
+ export GOARCH="${TARGET_GOARCH}"
+ export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
+ # Setup vendor directory so that it can be used in GOPATH.
+ #
+ # Go looks in a src directory under any directory in GOPATH but riddler
+ # uses 'vendor' instead of 'vendor/src'. We can fix this with a symlink.
+ #
+ # We also need to link in the ipallocator directory as that is not under
+ # a src directory.
+ #ln -sfn . "${S}/src/import/vendor/src"
+ #mkdir -p "${S}/src/import/vendor/src/github.com/opencontainers/image-tools/"
+ #ln -sfn "${S}/src/import/image" "${S}/src/import/vendor/src/github.com/opencontainers/image-tools/image"
+ #ln -sfn "${S}/src/import/version" "${S}/src/import/vendor/src/github.com/opencontainers/image-tools/version"
+ export GOPATH="${S}/src/import/"
+
+ # Pass the needed cflags/ldflags so that cgo
+ # can find the needed headers files and libraries
+ export CGO_ENABLED="1"
+ export CFLAGS=""
+ export LDFLAGS=""
+ export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+ export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+ cd ${S}/src/import
+
+ oe_runmake all
+}
+
+do_install() {
+ install -d ${D}/${bindir}
+ cp -r ${S}/src/import/startup/env.sh ${D}/${bindir}
+ cp -r ${S}/src/import/startup/startup.sh ${D}/${bindir}
+ cp -r ${S}/src/import/startup/ota-updateSet ${D}/${bindir}
+ cp -r ${S}/src/import/startup/ota-statuscheck ${D}/${bindir}
+ cp -r ${S}/src/import/mq-agent/mq-agent ${D}/${bindir}
+ cp -r ${S}/src/import/cert-agent/cert-agent ${D}/${bindir}
+}
+
+INSANE_SKIP_${PN} += "already-stripped"
diff --git a/recipes-containers/qoriq-eds/qoriq-edgescale-eds/0001-Makefile-fix-build-error.patch b/recipes-containers/qoriq-eds/qoriq-edgescale-eds/0001-Makefile-fix-build-error.patch
new file mode 100644
index 0000000..a0563a2
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-edgescale-eds/0001-Makefile-fix-build-error.patch
@@ -0,0 +1,31 @@
+From 49c9372b6d767fd537e6016ca33785c14f7301cf Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo at nxp.com>
+Date: Mon, 7 May 2018 16:50:47 +0800
+Subject: [PATCH] Makefile: fix build error
+
+fix the below error:
+/bin/sh: whoami: command not found
+
+Upstream-Status: Inappropriate [embedded-specific]
+
+Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/import/Makefile b/src/import/Makefile
+index d9b472a..e87bbd8 100644
+--- a/src/import/Makefile
++++ b/src/import/Makefile
+@@ -40,7 +40,7 @@ goenv:
+ wget -c https://redirector.gvt1.com/edgedl/go/$(GOFILE); \
+ tar -C $(HOME) -xzf $(GOFILE); \
+ fi
+- usr=`whoami`; \
++
+
+ clean:
+ for dir in $(TARGETS);\
+--
+1.8.3.1
+
--
2.7.4
More information about the meta-freescale
mailing list