[meta-freescale] [PATCH v2 3/7] qoriq-kubelet-extras: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

41d127f - update EULA to latest version
4b51fcc - Merge pull request #1 in DCCA/eds-kubelet from 
~NXA16258/eds-kubelet:master to master
dbbde12 - kubelet: update to support both arm and arm64 platform
d4e78ef - add SCR.txt
d75f9f7 - Initial Commit

Signed-off-by: Chunrong Guo 
---
 .../qoriq-eds/qoriq-kubelet-extras.bb   | 21 +
 1 file changed, 21 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/qoriq-kubelet-extras.bb

diff --git a/recipes-containers/qoriq-eds/qoriq-kubelet-extras.bb 
b/recipes-containers/qoriq-eds/qoriq-kubelet-extras.bb
new file mode 100644
index 000..1612477
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-kubelet-extras.bb
@@ -0,0 +1,21 @@
+SUMMARY = "NXP kubernetes configuration scripts"
+HOMEPAGE = "https://github.com/nxp/qoriq-eds-kubelet.git;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://EULA.txt;md5=d969f2c93b3905d4b628787ce5f8df4b"
+
+SRC_URI = "git://github.com/NXP/qoriq-eds-kubelet.git;nobranch=1"
+SRCREV = "4b51fccefe4620ccb44c9639055a0c7db8ddd87f"
+
+RDEPENDS_${PN} = "qoriq-eds-kubelet"
+
+S = "${WORKDIR}/git"
+
+do_compile[noexec] = "1"
+
+do_install() {
+install -d ${D}/${bindir}/
+install -d ${D}/${sysconfdir}/
+install -m 655 ${S}/etc/kubernetes/* ${D}/${sysconfdir}
+install -m 655 ${S}/scripts/*  ${D}/${bindir}
+}
+
-- 
2.7.4

-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] [3rdparty][master][PATCH] linux-congatec: 4.1.15 -> 4.9.11

2018-05-08 Thread Alex de Cabo
Bump from cgt_imx6_4.1.15_2.0.0 to cgt_imx_4.9.11_1.0.0

Signed-off-by: Alex de Cabo 
---
 ...mx6-Change-bit-color-depth-and-pix-format.patch |  36 --
 .../linux/linux-congatec-4.1.15/defconfig  | 439 
 .../linux/linux-congatec-4.9.11/defconfig  | 457 +
 recipes-kernel/linux/linux-congatec_4.1.15.bb  |  19 -
 recipes-kernel/linux/linux-congatec_4.9.11.bb  |  16 +
 5 files changed, 473 insertions(+), 494 deletions(-)
 delete mode 100644 
recipes-kernel/linux/linux-congatec-4.1.15/0001-imx6qdl-qmx6-Change-bit-color-depth-and-pix-format.patch
 delete mode 100644 recipes-kernel/linux/linux-congatec-4.1.15/defconfig
 create mode 100755 recipes-kernel/linux/linux-congatec-4.9.11/defconfig
 delete mode 100644 recipes-kernel/linux/linux-congatec_4.1.15.bb
 create mode 100755 recipes-kernel/linux/linux-congatec_4.9.11.bb

diff --git 
a/recipes-kernel/linux/linux-congatec-4.1.15/0001-imx6qdl-qmx6-Change-bit-color-depth-and-pix-format.patch
 
b/recipes-kernel/linux/linux-congatec-4.1.15/0001-imx6qdl-qmx6-Change-bit-color-depth-and-pix-format.patch
deleted file mode 100644
index 181b9a2..000
--- 
a/recipes-kernel/linux/linux-congatec-4.1.15/0001-imx6qdl-qmx6-Change-bit-color-depth-and-pix-format.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 8a1fbfd7f93b635223525f4932a4d5f31d6735ce Mon Sep 17 00:00:00 2001
-From: Alex de Cabo 
-Date: Fri, 10 Feb 2017 08:53:23 +0100
-Subject: [PATCH] imx6qdl-qmx6: Change bit color depth and pix format
-
-Change the default color depth and pix format to be suitable
-with the LVDS-to-DVI adaptor present in the Conga-QKIT

- arch/arm/boot/dts/imx6qdl-qmx6.dtsi | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/arch/arm/boot/dts/imx6qdl-qmx6.dtsi 
b/arch/arm/boot/dts/imx6qdl-qmx6.dtsi
-index 759e066..10d27be 100644
 a/arch/arm/boot/dts/imx6qdl-qmx6.dtsi
-+++ b/arch/arm/boot/dts/imx6qdl-qmx6.dtsi
-@@ -330,7 +330,7 @@
-   mxcfb1: fb@0 {
-   compatible = "fsl,mxc_sdc_fb";
-   disp_dev = "ldb";
--  interface_pix_fmt = "RGB666";
-+  interface_pix_fmt = "RGB24";
-   default_bpp = <16>;
-   int_clk = <0>;
-   late_init = <0>;
-@@ -752,7 +752,7 @@
- 
-   lvds-channel@0 {
-   fsl,data-mapping = "spwg";
--  fsl,data-width = <18>;
-+  fsl,data-width = <24>;
-   primary;
-   status = "okay";
- 
--- 
-1.9.1
-
diff --git a/recipes-kernel/linux/linux-congatec-4.1.15/defconfig 
b/recipes-kernel/linux/linux-congatec-4.1.15/defconfig
deleted file mode 100644
index a28cca9..000
--- a/recipes-kernel/linux/linux-congatec-4.1.15/defconfig
+++ /dev/null
@@ -1,439 +0,0 @@
-CONFIG_KERNEL_LZO=y
-CONFIG_SYSVIPC=y
-CONFIG_FHANDLE=y
-CONFIG_NO_HZ=y
-CONFIG_HIGH_RES_TIMERS=y
-CONFIG_IKCONFIG=y
-CONFIG_IKCONFIG_PROC=y
-CONFIG_LOG_BUF_SHIFT=18
-CONFIG_CGROUPS=y
-CONFIG_RELAY=y
-CONFIG_BLK_DEV_INITRD=y
-CONFIG_EXPERT=y
-CONFIG_KALLSYMS_ALL=y
-CONFIG_PERF_EVENTS=y
-# CONFIG_SLUB_DEBUG is not set
-# CONFIG_COMPAT_BRK is not set
-CONFIG_MODULES=y
-CONFIG_MODULE_UNLOAD=y
-CONFIG_MODVERSIONS=y
-CONFIG_MODULE_SRCVERSION_ALL=y
-# CONFIG_BLK_DEV_BSG is not set
-CONFIG_ARCH_MXC=y
-CONFIG_SOC_IMX50=y
-CONFIG_SOC_IMX53=y
-CONFIG_SOC_IMX6Q=y
-CONFIG_SOC_IMX6SL=y
-CONFIG_SOC_IMX6SX=y
-CONFIG_SOC_IMX6ULL=y
-CONFIG_SOC_IMX7D=y
-CONFIG_SOC_VF610=y
-# CONFIG_SWP_EMULATE is not set
-CONFIG_SMP=y
-CONFIG_HAVE_ARM_ARCH_TIMER=y
-CONFIG_VMSPLIT_2G=y
-CONFIG_PREEMPT=y
-CONFIG_AEABI=y
-CONFIG_HIGHMEM=y
-CONFIG_CMA=y
-CONFIG_CMDLINE="noinitrd console=ttymxc0,115200"
-CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
-CONFIG_CPU_FREQ_GOV_POWERSAVE=y
-CONFIG_CPU_FREQ_GOV_USERSPACE=y
-CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
-CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
-CONFIG_ARM_IMX6Q_CPUFREQ=y
-CONFIG_ARM_IMX7D_CPUFREQ=y
-CONFIG_CPU_IDLE=y
-CONFIG_VFP=y
-CONFIG_NEON=y
-CONFIG_BINFMT_MISC=m
-CONFIG_PM_DEBUG=y
-CONFIG_PM_TEST_SUSPEND=y
-CONFIG_NET=y
-CONFIG_PACKET=y
-CONFIG_UNIX=y
-CONFIG_INET=y
-CONFIG_IP_PNP=y
-CONFIG_IP_PNP_DHCP=y
-# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
-# CONFIG_INET_XFRM_MODE_TUNNEL is not set
-# CONFIG_INET_XFRM_MODE_BEET is not set
-# CONFIG_INET_LRO is not set
-CONFIG_IPV6=y
-CONFIG_VLAN_8021Q=y
-CONFIG_LLC2=y
-CONFIG_CAN=y
-CONFIG_CAN_FLEXCAN=y
-CONFIG_CAN_M_CAN=y
-CONFIG_BT=y
-CONFIG_BT_RFCOMM=y
-CONFIG_BT_RFCOMM_TTY=y
-CONFIG_BT_BNEP=y
-CONFIG_BT_BNEP_MC_FILTER=y
-CONFIG_BT_BNEP_PROTO_FILTER=y
-CONFIG_BT_HIDP=y
-CONFIG_BT_HCIBTUSB=y
-CONFIG_BT_HCIUART=y
-CONFIG_BT_HCIUART_BCSP=y
-CONFIG_BT_HCIUART_ATH3K=y
-CONFIG_BT_HCIBCM203X=y
-CONFIG_BT_ATH3K=y
-CONFIG_CFG80211=y
-CONFIG_MAC80211=y
-CONFIG_DEVTMPFS=y
-CONFIG_DEVTMPFS_MOUNT=y
-# CONFIG_STANDALONE is not set
-CONFIG_DMA_CMA=y
-CONFIG_CMA_SIZE_MBYTES=0
-CONFIG_IMX_WEIM=y
-CONFIG_CONNECTOR=y
-CONFIG_MTD=y
-CONFIG_MTD_CMDLINE_PARTS=y

[meta-freescale] [PATCH v2 6/7] mqtt: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*include the following changes:
b30bf69 - Merge branch 'master' of https://github.com/yosssi/gmq
31bcd32 - Fixed the comment of "version".
9d35a86 - Update README.md

* qoriq-edgescale-eds depends mqtt

Signed-off-by: Chunrong Guo 
---
 recipes-containers/qoriq-eds/mqtt_git.bb | 28 
 1 file changed, 28 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/mqtt_git.bb

diff --git a/recipes-containers/qoriq-eds/mqtt_git.bb 
b/recipes-containers/qoriq-eds/mqtt_git.bb
new file mode 100644
index 000..de383c4
--- /dev/null
+++ b/recipes-containers/qoriq-eds/mqtt_git.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "A golang registry for global request variables."
+HOMEPAGE = "https://github.com/Sirupsen/logrus;
+SECTION = "devel/go"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2509f45544da1ecce869ce2de1aa44dd"
+
+SRCNAME = "mqtt"
+
+PKG_NAME = "github.com/yosssi/gmq"
+SRC_URI = "git://${PKG_NAME}.git"
+
+SRCREV = "b221999646da8ea48ff0796c2b0191aa510d062e"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+   install -d ${D}${prefix}/local/go/src/${PKG_NAME}
+   cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
+}
+
+SYSROOT_PREPROCESS_FUNCS += "mqtt_sysroot_preprocess"
+
+mqtt_sysroot_preprocess () {
+install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
+cp -r ${D}${prefix}/local/go/src/${PKG_NAME} 
${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
+}
+
+FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
-- 
2.7.4

-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] [PATCH v2 4/7] qoriq-eds-bootstrap: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*include the following changes:
72abfd9 - update the appendix content
0f0fdaf - update License
ff0f925 - Edgescale bootstrap certificate enroll app

Signed-off-by: Chunrong Guo 
---
 .../qoriq-eds/qoriq-eds-bootstrap.bb   | 24 
 .../0001-fix-install-error.patch   | 26 ++
 2 files changed, 50 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/qoriq-eds-bootstrap.bb
 create mode 100644 
recipes-containers/qoriq-eds/qoriq-eds-bootstrap/0001-fix-install-error.patch

diff --git a/recipes-containers/qoriq-eds/qoriq-eds-bootstrap.bb 
b/recipes-containers/qoriq-eds/qoriq-eds-bootstrap.bb
new file mode 100644
index 000..fb80deb
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-eds-bootstrap.bb
@@ -0,0 +1,24 @@
+SUMMARY = "eds-bootstrap application binary"
+HOMEPAGE = "https://github.com/nxp/qoriq-eds-bootstrap.git;
+LICENSE = "NXP-Binary-EULA"
+LIC_FILES_CHKSUM = 
"file://NXP-Binary-EULA.txt;md5=685768ff8092cc783d95e3480cb9bdb1"
+
+SRC_URI = "git://github.com/NXP/qoriq-eds-bootstrap.git;nobranch=1 \
+file://0001-fix-install-error.patch \
+"
+SRCREV = "72abfd9b61cc8a6d10e4808a87ff4ce1e2b99020"
+
+ARCH_qoriq-arm = "arm"
+ARCH_qoriq-arm64 = "arm64"
+
+S = "${WORKDIR}/git"
+
+do_compile[noexec] = "1"
+
+do_install () {
+install -d ${D}/usr/bin
+cp -r  ${S}/${ARCH}/* ${D}/usr/bin
+chown -R root:root ${D}
+}
+
+INSANE_SKIP_${PN} += "already-stripped"
diff --git 
a/recipes-containers/qoriq-eds/qoriq-eds-bootstrap/0001-fix-install-error.patch 
b/recipes-containers/qoriq-eds/qoriq-eds-bootstrap/0001-fix-install-error.patch
new file mode 100644
index 000..81288f9
--- /dev/null
+++ 
b/recipes-containers/qoriq-eds/qoriq-eds-bootstrap/0001-fix-install-error.patch
@@ -0,0 +1,26 @@
+From 0def325c522c6c0df39562addab67e4fd150cb48 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo 
+Date: Tue, 24 Apr 2018 16:25:57 +0800
+Subject: [PATCH] fix install error
+
+Signed-off-by: Chunrong Guo 
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index d40c839..32c0abe 100644
+--- a/Makefile
 b/Makefile
+@@ -9,6 +9,6 @@ INSTALL ?= install
+ ARCH ?= arm64
+ 
+ install:
+-  $(INSTALL) -d --mode 755 $(INSTALL_DIR)/usr/local/bin
+-  sudo cp -r ${ARCH}/bootstrap-enroll $(INSTALL_DIR)/usr/local/bin/
++  $(INSTALL) -d --mode 755 $(INSTALL_DIR)/usr/bin
++  cp -r ${ARCH}/bootstrap-enroll $(INSTALL_DIR)/usr/bin/
+ 
+-- 
+2.7.4
+
-- 
2.7.4

-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] [PATCH v2 5/7] qoriq-eds-puppet: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*include the following changes:
15fc857 - update EULA to latest version
62b2160 - add SCR.txt
afb06cb - fix restart problem
8d66e48 - Initial Commit

Signed-off-by: Chunrong Guo 
---
 recipes-containers/qoriq-eds/qoriq-eds-puppet.bb | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/qoriq-eds-puppet.bb

diff --git a/recipes-containers/qoriq-eds/qoriq-eds-puppet.bb 
b/recipes-containers/qoriq-eds/qoriq-eds-puppet.bb
new file mode 100644
index 000..332ef5b
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-eds-puppet.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Open source Puppet is a configuration management system"
+HOMEPAGE = "https://github.com/nxp/qoriq-eds-puppet.git;
+LICENSE = "NXP-EULA"
+LIC_FILES_CHKSUM = "file://EULA.txt;md5=d969f2c93b3905d4b628787ce5f8df4b"
+
+SRC_URI = "git://github.com/nxp/qoriq-eds-puppet.git;nobranch=1"
+SRCREV = "62b21601e045e472604cd6680a1a4eb835da0539"
+
+
+RDEPENDS_${PN} = "puppet"
+S = "${WORKDIR}/git"
+
+do_install() {
+install -d ${D}${sysconfdir}/puppetlabs/puppet/
+install -d ${D}${bindir}/
+
+install -m 655 ${S}/puppet.sh ${D}${bindir}
+install -m 655 ${S}/puppet.conf ${D}${sysconfdir}/puppetlabs/puppet/
+}
-- 
2.7.4

-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] [PATCH v2 7/7] est-client-go: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*include the following changes:
14471c0 - Fix indentation.
e103235 - Merge branch 'master' of https://github.com/laurentluce/est-client-go
a81899f - Rely on pkcs7 lib to convert from pkcs7 to pem, instead of using 
openssl.
0ee2ed3 - Update Client structure.
79813ac - Update README.md
0ce2f31 - Update README.md
630f918 - Update README.md
1955bc0 - Update README with more comments.
20700b3 - Update README.
9691805 - golint.
76aff0e - Update README.md
2aa555d - Update README.
8dce887 - Enroll and Reenroll.
3caa92e - Basic CaCerts.
0d9ae88 - Initial commit

*qoriq-edgescale-eds depends est-client-go

Signed-off-by: Chunrong Guo 
---
 recipes-containers/qoriq-eds/est-client-go_git.bb | 28 +++
 1 file changed, 28 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/est-client-go_git.bb

diff --git a/recipes-containers/qoriq-eds/est-client-go_git.bb 
b/recipes-containers/qoriq-eds/est-client-go_git.bb
new file mode 100644
index 000..afaf233
--- /dev/null
+++ b/recipes-containers/qoriq-eds/est-client-go_git.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "A golang registry for global request variables."
+HOMEPAGE = "https://github.com/Sirupsen/logrus;
+SECTION = "devel/go"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b6b7e206ebc611ea880bb400fd48de48"
+
+SRCNAME = "mqtt"
+
+PKG_NAME = "github.com/laurentluce/est-client-go"
+SRC_URI = "git://${PKG_NAME}.git"
+
+SRCREV = "14471c0ce01a9b67577ff1eeb0241bced09d387f"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+   install -d ${D}${prefix}/local/go/src/${PKG_NAME}
+   cp -r ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
+}
+
+SYSROOT_PREPROCESS_FUNCS += "est_client_go_sysroot_preprocess"
+
+est_client_go_sysroot_preprocess () {
+install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
+cp -r ${D}${prefix}/local/go/src/${PKG_NAME} 
${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
+}
+
+FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
-- 
2.7.4

-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] [PATCH v2 2/7] qoriq-eds-kubelet: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*include the following changes:
d3ada01 - Kubernetes version v1.7.0 file updates
14b32e4 - Merge pull request #48162 from 
yguo0905/automated-cherry-pick-of-#47549-upstream-release-1.7
4a4b04e - Merge pull request #48266 from 
piosz/automated-cherry-pick-of-#48066-upstream-release-1.7
e8b5441 - Revert "Decrese fluentd cpu request"
d420643 - Merge pull request #48218 from 
dnardo/automated-cherry-pick-of-#48004-upstream-release-1.7
3a79966 - Merge pull request #48155 from 
ajitak/automated-cherry-pick-of-#47892-upstream-release-1.7
3648549 - Merge pull request #48229 from 
caesarxuchao/automated-cherry-pick-of-#48205-#48183-#48118-upstream-release-1.7
5afafb6 - Merge pull request #48238 from 
caesarxuchao/automated-cherry-pick-of-#48235-upstream-release-1.7
d7bb1ef - Implement GetCapacity in container_manager_unsupported
77c5be4 - Merge pull request #48230 from 
caesarxuchao/automated-cherry-pick-of-#48123-upstream-release-1.7
641ace7 - Kubelet: Centralize Capacity discovery of standard resources in 
Container manager. Have storage derive node capacity from container manager. 
Move certain cAdvisor interfa
28c96d1 - Ensures node becomes schedulable at the end of tests that delete nodes
72c2705 - Fix kube-proxy panic when running with "--cleanup-iptables=true"

Signed-off-by: Chunrong Guo 
---
 recipes-containers/qoriq-eds/qoriq-eds-kubelet.bb  | 90 ++
 .../build-kube-toolchain-to-run-on-host.patch  | 19 +
 2 files changed, 109 insertions(+)
 create mode 100644 recipes-containers/qoriq-eds/qoriq-eds-kubelet.bb
 create mode 100644 
recipes-containers/qoriq-eds/qoriq-eds-kubelet/build-kube-toolchain-to-run-on-host.patch

diff --git a/recipes-containers/qoriq-eds/qoriq-eds-kubelet.bb 
b/recipes-containers/qoriq-eds/qoriq-eds-kubelet.bb
new file mode 100644
index 000..26da900
--- /dev/null
+++ b/recipes-containers/qoriq-eds/qoriq-eds-kubelet.bb
@@ -0,0 +1,90 @@
+HOMEPAGE = "git://github.com/kubernetes/kubernetes"
+SUMMARY = "Production-Grade Container Scheduling and Management"
+DESCRIPTION = "Kubernetes is an open source system for managing containerized \
+applications across multiple hosts, providing basic mechanisms for deployment, 
\
+maintenance, and scaling of applications. \
+"
+
+SRC_URI = 
"git://github.com/kubernetes/kubernetes.git;nobranch=1;name=kubernetes \
+  file://build-kube-toolchain-to-run-on-host.patch \
+"
+SRCREV = "d3ada0119e776222f11ec7945e6d860061339aad"
+
+DEPENDS += "rsync-native \
+coreutils-native \
+   "
+ALLOW_EMPTY_${PN} = "1"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = 
"file://src/import/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+GO_IMPORT = "import"
+
+inherit systemd
+inherit go
+inherit goarch
+
+do_compile() {
+sed -i "s:export CC=.*-gcc$:export CC=${HOST_PREFIX}gcc:g" 
${S}/src/import/hack/lib/golang.sh
+   export GOARCH="${TARGET_GOARCH}"
+   export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
+   export GOPATH="${S}/src/import:${S}/src/import/vendor"
+
+   # 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}"
+
+   # link fixups for compilation
+   rm -f ${S}/src/import/vendor/src
+   ln -sf ./ ${S}/src/import/vendor/src
+
+   export 
GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor:${STAGING_DIR_TARGET}/${prefix}/local/go"
+   export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
+
+   # Pass the needed cflags/ldflags so that cgo
+   # can find the needed headers files and libraries
+   export CGO_ENABLED="1"
+   export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+   export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+
+   cd ${S}/src/import
+export KUBE_BUILD_PLATFORMS="${HOST_GOOS}/${BUILD_GOARCH}"
+   export GOARCH="${BUILD_GOARCH}"
+   make generated_files
+   export KUBE_BUILD_PLATFORMS="${HOST_GOOS}/${TARGET_GOARCH}"
+   export GOARCH="${TARGET_GOARCH}"
+   # to limit what is built, use 'WHAT', i.e. make WHAT=cmd/kubelet
+   make WHAT="/cmd/libs/go2idl/deepcopy-gen"
+make WHAT=cmd/kubelet
+}
+
+do_install() {
+install -d ${D}${bindir}
+install -d ${D}${systemd_unitdir}/system/
+install -d ${D}${systemd_unitdir}/system/kubelet.service.d/
+
+install -d ${D}${sysconfdir}/kubernetes/manifests/
+
+#install -m 755 -D ${S}/src/import/_output/bin/kube* ${D}/${bindir}
+if ls ${S}/src/import/_output/local/bin/*/${TARGET_GOARCH}/kube* > 
/dev/null 2>&1 ; then
+install -m 755 -D 
${S}/src/import/_output/local/bin/*/${TARGET_GOARCH}/kube* ${D}/${bindir}
+elif ls 

[meta-freescale] [PATCH v2 1/7] qoriq-edgescale-eds: add recipes

2018-05-08 Thread chunrong . guo
From: Chunrong Guo 

*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 
---
 .../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 000..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 000..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 
+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 
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/import/Makefile b/src/import/Makefile
+index d9b472a..e87bbd8 100644
+--- 

Re: [meta-freescale] The sumo branch of meta-freescale

2018-05-08 Thread Otavio Salvador
On Tue, May 8, 2018 at 5:40 AM, Zhenhua Luo  wrote:
> The ‘sumo’ branch has not been created for meta-freescale layer yet, may I
> know what’s the plan to make the YP 2.5 branch available in this Yocto
> layer?

I am still working on build failure and integrating the i.MX8 stuff so
sumo is not ready for use yet.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] The sumo branch of meta-freescale

2018-05-08 Thread Zhenhua Luo
Hi Otavio,

The 'sumo' branch has not been created for meta-freescale layer yet, may I know 
what's the plan to make the YP 2.5 branch available in this Yocto layer?


Best Regards,

Zhenhua
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale