Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI with Azure Pipelines #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'
11 changes: 11 additions & 0 deletions meta-phosphor/conf/distro/include/phosphor-base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions meta-phosphor/recipes-core/u-root/u-root_git.bb
Original file line number Diff line number Diff line change
@@ -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}/*"