From 7200e5ac0d782dcbbf79839d726eff16bbff787c Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 7 Dec 2018 11:12:29 -0800 Subject: [PATCH 1/2] Add recipe for u-root DO NOT USE THIS CODE. This commit is untested, relies on undefined behavior, and may burn your house down, empty your bank account, and do all manner of bad things that I don't take responsibility for. Change-Id: I6c8b18755783f1aab994faae9b6c2a25739c9292 Signed-off-by: Ed Tanous --- .../conf/distro/include/phosphor-base.inc | 11 +++++++++++ meta-phosphor/recipes-core/u-root/u-root_git.bb | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 meta-phosphor/recipes-core/u-root/u-root_git.bb diff --git a/meta-phosphor/conf/distro/include/phosphor-base.inc b/meta-phosphor/conf/distro/include/phosphor-base.inc index 8be3b7442082..57d6fb0c54e4 100644 --- a/meta-phosphor/conf/distro/include/phosphor-base.inc +++ b/meta-phosphor/conf/distro/include/phosphor-base.inc @@ -130,6 +130,17 @@ DISTRO_EXTRA_RDEPENDS_remove_qemuarm = "packagegroup-core-device-devel" # TODO: openbmc/openbmc#12345 - Upgrade to pygobject-3. PREFERRED_VERSION_python-pygobject = "2.%" +GOVERSION ?= "1.10%" +PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}" +PREFERRED_VERSION_go-cross-${TARGET_ARCH} ?= "${GOVERSION}" +PREFERRED_VERSION_go-crosssdk-${SDK_ARCH} ?= "${GOVERSION}" +PREFERRED_VERSION_go-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GOVERSION}" +PREFERRED_VERSION_go ?= "${GOVERSION}" +PREFERRED_VERSION_go-native ?= "${GOVERSION}" +PREFERRED_VERSION_go-runtime ?= "${GOVERSION}" +PREFERRED_VERSION_nativesdk-go ?= "${GOVERSION}" +PREFERRED_VERSION_nativesdk-go-runtime ?= "${GOVERSION}" + include conf/distro/include/openbmc-phosphor/${MACHINE}.inc KERNEL_FEATURES_append = " phosphor-gpio-keys" diff --git a/meta-phosphor/recipes-core/u-root/u-root_git.bb b/meta-phosphor/recipes-core/u-root/u-root_git.bb new file mode 100644 index 000000000000..08b17726ffab --- /dev/null +++ b/meta-phosphor/recipes-core/u-root/u-root_git.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "u-root contains simple Go versions of many standard Linux tools, similar to busybox. It's a pure Go userland!" + +GO_IMPORT = "github.com/u-root/u-root/" +inherit go + +SRC_URI = "git://${GO_IMPORT};protocol=https;destsuffix=${PN}-${PV}/src/${GO_IMPORT}" +SRCREV = "64df2083953289d5f15839890437a138d77c8d74" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=3166936844c72a95321cd536eaf26413" + +#GOBUILDFLAGS += "-build=bb ./cmds/{ip,ls,cp}" + +# This package doesn't build for 32 bit targets because of what appears to be an int32 vs int64 issue with a maxrss variable +GO_INSTALL_FILTEROUT = "github.com/u-root/u-root/scripts/build_perf" + +FILES_${PN} += "${GOBIN_FINAL}/*" From 1eb0e7b9f2639c94f541257cfb3ddc3448c93df0 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Fri, 1 Mar 2019 17:17:57 -0800 Subject: [PATCH 2/2] Set up CI with Azure Pipelines --- azure-pipelines.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000000..9ef9b7afc826 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,18 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'Ubuntu-16.04' + +steps: + +- script: | + export TEMPLATECONF=meta-intel/conf + source oe-init-build-env + bitbake obmc-phosphor-image + displayName: 'Build'