Commit Graph

2214 Commits

Author SHA1 Message Date
Bruce Ashfield
2cec3442c6 libvirt: fix .la QA errors
oe-core 3739aaf644 [insane: Fix populate_sysroot sanity test path] means
that .la files are subject to a QA sanity check that fails if the build
paths (workdir) are found.

The ptest and main libvirt files have silently had this issue with hosts
paths.

One fix is to remove the .la files, but this could impact on target test
and builds, so our first attempt to fix them is to follow the lead of a
similar lttng_tools fix, and modify .la files to have paths and values that
are valid on target.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-11 09:41:07 -05:00
Mark Asselstine
0d2f0e570b python-six: uprev to latest
The openstack layer requires a version of six >= 1.9.0

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-09 14:28:41 -05:00
Machon Gregory
47260c0059 Allow xsm to be built with GCC 5.1.1 and greater
The patch was cherrypicked from upstream Xen. See patch header for more information.

Signed-off-by: Machon Gregory <mbgrego@tycho.nsa.gov>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 15:33:30 -05:00
Doug Goldstein
f564975386 xen: don't inject -mfpmath=sse which causes build issues
Don't inject -mfpmath=sse into the build which causes issues with the
hypervisor build.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:36 -05:00
Doug Goldstein
3915d59fdf xen: don't allow the build system to fetch
All dependencies should be reflected in the Yocto dependency and the Xen
build system should not go off fetching things on its own.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
663463da0c xen: merge do_install_append to do_install
The do_install_append is necessary for the git build as well so just
merge that into the main include.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
5817c4a29b xen: move bits common to all Xen versions to xen.inc
These items are common for all Xen versions since at least 4.5 and newer
so these should just go in the common include file.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
a19e5567dc xen: separate the extra steps into their own tasks
do_configure() was overloaded with a lot of behaviors that really were
source code patching so instead make them as extra tasks that happen
after do_patch() and before do_configure().

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
12a7d544f4 xen: fix up typo in XSM comments
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
ec4b409bd6 xen: drop explicit DEPEND on libgcc
'xen-base' is a meta package and itself should not depend on a library
this. Yocto checks the NEEDED of the dynamic section and automatically
includes those libraries as dependencies.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Doug Goldstein
45de52d11c xen: update git version to 4.6.x
Since xen.inc has been updated to support only Xen 4.6.x, the xen_git.bb
should be updated to a revision in the 4.6.x stable series.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-02-01 00:11:35 -05:00
Jason Wessel
ae6c7fb2d3 go-cross-1.3: Fix missing dependency for cross compile
The go-cross-1.3 package depends on the libgcc to be installed for the
cross compiler else you will receive an error if this package builds
first like:

runtime/cgo
/opt/tmp/sysroots/x86_64-linux/usr/bin/arm-wrs-linux-gnueabi/../../libexec/arm-wrs-linux-gnueabi/gcc/arm-wrs-linux-gnueabi/4.9.1/ld: cannot find crtbeginS.o: No such file or directory
collect2: error: ld returned 1 exit status

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-26 15:16:28 -05:00
Bruce Ashfield
9377e68bcd xen: clone 4.1 config to 4.4
4.4 is available in oe-core, and will be built by default in many
configurations. That leaves us either needing to force the preferred
version or copy our config to 4.4.

This is a direct clone of the 4.1 config to 4.4, and is currently
untested, but forms a baseline for more updates.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-19 09:53:11 -05:00
Chris Patterson
d62fe6dbd1 xen: add xen-devd to packages list.
Package was configured, but never added to PACKAGES.

Reported-by: Machon Gregory <mbgrego@tycho.nsa.gov>
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-19 08:49:32 -05:00
Chris Patterson
6ec960100f xen.cfg: enable CONFIG_HYPERVISOR_GUEST by default
Required dependency for CONFIG_XEN.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-14 15:37:46 -05:00
Chris Patterson
9d9372c0f9 xen: package remus-netbuf-setup into xen-remus
Package remus-netbuf-setup script which does not ship with
any existing package (throwing up a QA warning).

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-05 11:47:17 -05:00
Chris Patterson
99b2937ed4 seabios: drop shipped defconfig and use defaults
Upstream Xen opted to simply use 'make defconfig' to get a
generic seabios config.  Follow suit and remove old config.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-05 11:47:17 -05:00
Chris Patterson
faaa14e113 xen: add libnl to DEPENDS
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-01-05 11:47:17 -05:00
Bruce Ashfield
dbca9a89c0 linux-yocto: remove dangling bbappends
3.14 and 3.19 are gone from oe-core, so we drop our bbappends as well.

Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-21 12:35:20 -05:00
Chris Patterson
1b354e1f2a xen: uprev to 4.6.0
- Update LICENSE checksum.
- Drop udev package that has been removed
  (replaced with xl devd / xendriverdomain)

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:51:29 -05:00
Doug Goldstein
3ebf38aaeb xen: drop unnecessary variable modifications
These variable modifications are necessary so that Yocto can supply
--sysroot. The other variables are unmodified so there's no reason to
modify them.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:51:29 -05:00
Doug Goldstein
03b7e818e6 xen: add support for files added with Xen 4.6
Xen 4.6 dropped udev support and has instead switched to their own
'devd' daemon run by the xl command. There is a SysV init script
provided with it but no systemd service file.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:51:29 -05:00
Chris Patterson
591eb3e2ea xen: empty out rdepends for xen-dev to lose QA warning
It appears that it defaults to rdepend on xen, causing a QA error:
  WARNING: QA Issue: xen-dev rdepends on xen,
  but it isn't a build dependency? [build-deps]

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:51:29 -05:00
Chris Patterson
92e7221ca8 seabios: uprev to 1.9.0
SeaBIOS 1.7.5 fails to compile on newer gcc, so update it! :)

Also removing PR while I'm here.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:51:29 -05:00
Chris Patterson
ac7e0529fc xen.cfg: update for linux 4.1
- Drop old kernel options and add some newly available ones.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:50:52 -05:00
Machon Gregory
7115b25f96 Enables XSM functionality in builds that contain "xsm" in the PACKAGECONFIG.
* Correctly identifies xenpolicy by ${PV}
* Adds a check to identify if xsm is specified in PACKAGECONFIG and if so manually sets XSM_ENABLE in Xen's .config

Signed-off-by: Machon Gregory <mbgrego@tycho.nsa.gov>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:49:51 -05:00
Machon Gregory
ac6ab1b406 Disables OCaml tools.
There is currently no support for OCaml in OpenEmbedded.

Signed-off-by: Machon Gregory <mbgrego@tycho.nsa.gov>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2015-12-25 22:48:59 -05:00
Doug Goldstein
48c9261487 xen: drop PR variable from include file
The PR server has taken care of revision bumps for quite some time, so
we can safely drop PR from the xen .inc file.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 09:14:10 -05:00
Doug Goldstein
1dd907acd3 xen: resolve issue when using sstate cache
When using an sstate cache xen/xen.gz was not being installed into the
image.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 09:13:18 -05:00
Doug Goldstein
60c4033238 xen: move udev dependency to package that needs it
xen-base doesn't need udev but the xen-udev package which contains all
the udev scripts does.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 09:13:18 -05:00
Doug Goldstein
78be9e97a5 xen: use proper variable for /usr/share path
Don't open code /usr/share but instead use ${datadir} which is more
correct.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 09:13:17 -05:00
Mark Asselstine
f7dcf5bce9 openvswitch: enable systemd support
Make the necessary updates to get openvswitch to be compatible with
systemd. Up to now if you built a systemd supported image openvswitch
was using the systemd sysvinit wrappers, by making these changes we
now support systemd natively.

Note that there is no equivalent systemd support for
openvswitch-testcontroller. Following the lead of upstream this
is not something that should be run by the init system.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 08:47:25 -05:00
Mark Asselstine
5181ec2259 openvswitch: rename openvswitch-controller
As of version 2.4.0 openvswitch-controller has been renamed to
openvswitch-testcontroller. This was documented in the upstream 'NEWS':

   - test-controller has been renamed ovs-testcontroller at request of users
     who find it useful for testing basic OpenFlow setups.  It is still not
     a necessary or desirable part of most Open vSwitch deployments.

Our initscripts and such have continued to reference the old name
despite the application name name changing and so
openvswitch-controller packaging has been broken for some time now.

We rename the openvswitch-controller package to reflect the upstream
name change and apply  this name change throughout. We also drop the
RDEPENDS as the upstream comments also indicate that this package is
not needed for a normal openvswitch deployment.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 08:47:25 -05:00
Mark Asselstine
9772ddbec3 openvswitch: drop version 1.10.0 and 2.1.3
There are some changes that we need to make in the .inc file to
properly support more recent releases of openvswitch. These changes
are not compatible with these older versions of openvswitch, so rather
than make accommodations in the .inc file to continue to support this
version we will simply drop them.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-15 08:47:25 -05:00
Jianchuan Wang
26a3e2c0d8 protobuf-c: Inherit pkgconfig
Finding the libprotobuf.* incorrectly if the host have pkgconfig

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-12-02 16:28:12 -05:00
Jianchuan Wang
2f4211f3e9 openvswitch: Uprev to latest stable version 2.4.0
Uprev to git rev bb429e09f7783f1ba23ac0682ed9edf424f0cfbb (based on 2.4.0)
- Remove non_reproducible_builds_cleanup.patch since it
  have been in the version 2.4.0.

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-11-03 04:51:05 -05:00
Ioan-Adrian Ratiu
33ff94aadc go-net: add SRC_URI checksums
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-30 08:40:12 -04:00
Ioan-Adrian Ratiu
4ebff3b02e go-sqlite: add SRC_URI checksums
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-30 08:40:12 -04:00
Roy Li
adf21981ca lxc: upgrade it to 1.1.4
V1.1.4 includes a fix for CVE-2015-1335:

lxc-start in lxc before 1.0.8 and 1.1.x before 1.1.4 allows local container
administrators to escape AppArmor confinement via a symlink attack on a (1)
mount target or (2) bind mount source.
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1335

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-30 08:38:06 -04:00
Amy Fong
c861012e9c docker: fix paths for cross compile
Some of the cgo variables were pointing to host paths and not target
Fix install rules - binaries can be installed to a subdirectory.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Amy Fong
d0ef47396d Enable go-cross 1.3 to coexist with later versions
Since we need go 1.3 to co-exist with later versions (ie 1.4),
package go-cross_1.3 as go-cross-1.3_1.3.

go 1.3 will be installed to a different path than go-cross, this requires
go packages needing go 1.3 to set its PATH to:
        export PATH=${STAGING_BINDIR_NATIVE}/${HOST_SYS}/go-1.3:$PATH

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Amy Fong
7817649098 Backport go-cross: set alignment for the .rel.plt section on 32-bit architectures
submitted to upstream https://github.com/errordeveloper/oe-meta-go

    go-cross: set alignment for the .rel.plt section on 32-bit architectures

    This patch is cherry picked from golang's upstream, and this patch will
    fix the package of etcd's following build error:

    ERROR: debugedit failed with exit code 256 (cmd was 'bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit' -b 'bitbake_build/tmp/work/cortexa7t2hf-vfp-neon-wrs-linux-gnueabi' -d '/usr/src/debug' -i -l 'bitbake_build/tmp/work/cortexa7t2hf-vfp-neon-wrs-linux-gnueabi/etcd/git-r0/debugsources.list' 'bitbake_build/tmp/work/cortexa7t2hf-vfp-neon-wrs-linux-gnueabi/etcd/git-r0/package/usr/bin/etcd'):
    bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/rpm/bin/debugedit: elf_update: invalid section alignment
    ERROR: Function failed: split_and_strip_files
    ERROR: Logfile of failure stored in: bitbake_build/tmp/work/cortexa7t2hf-vfp-neon-wrs-linux-gnueabi/etcd/git-r0/temp/do_package/log.do_package.109414
    ERROR: Task 12 (layers/meta-overc/meta-pod/recipes-connectivity/etcd/etcd_git.bb, do_package) failed with exit code '1'

    Signed-off-by: fupan li <fupan.li@windriver.com>

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Amy Fong
4988689b73 Backport go-cross: fix the building failed for quark bsp
submitted to upstream https://github.com/errordeveloper/oe-meta-go

    go-cross: fix the building failed for quark bsp

    Quark used i586 architecture, and golang dealt intel 32bit
    architecture as 386, so export GOARCH = "386" when the TARGET_ARCH
    is i586 to support quark bsp.

    Signed-off-by: fupan li <fupan.li@windriver.com>

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Amy Fong
7360250a0f Backport go-cross: fix the bug of cross building error
submitted to upstream https://github.com/errordeveloper/oe-meta-go

    go-cross: fix the bug of cross building error

    When a package's recipe inherit "cross" bbclass, its CC and CXX are defined
    as the host native gcc and g++ instead of the host cross toolchain, fot this
    case, CC_FOR_TARGET and CXX_FOR_TARGET should be defined the same with CC and
    CXX, instead they are should be define as host cross toolchain's CC and CXX,
    otherwise, it will build failed for target arm architecture as below:

    | # Building packages and commands for linux/arm.
    | + CC='gcc '
    | + bitbake_build/tmp/work/x86_64-wrs-linux-gnueabi/go-cross/1.4-r0/go/pkg/tool/linux_amd64/go_bootstrap install -ccflags '' -gcflags '' -ldflags '' -v std
    | runtime
    | errors
    | sync/atomic
    | unicode
    | unicode/utf8
    | math
    | sort
    | encoding
    | unicode/utf16
    | container/list
    | crypto/subtle
    | runtime/cgo
    | container/ring
    | image/color
    | runtime/race
    | # runtime/cgo
    | gcc: error: unrecognized command line option '-marm'

    Signed-off-by: fupan li <fupan.li@windriver.com>

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Amy Fong
ac2adfb169 docker: needs go 1.3
The current version of docker (1.6.2) requires go 1.3

See go 1.4 sqlite issue:
https://github.com/docker/docker/issues/9649

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-13 11:29:57 -04:00
Jianchuan Wang
839e04c295 protobuf-c: Add protobuf's pkgconfig path into PKG_CONFIG_PATH
Add the protobuf's pkgconfig path into PKG_CONFIG_PATH
so that pkg-config can find the protoc from sysroot in the configure process.
And don't conflict even if installing the protobuf in the localhost.

Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-02 08:52:51 -04:00
Jim Somerville
49e29c7f83 lxc: logs: use base filenames when reporting src files
Problem:  Logs are nice in that they report the source file,
routine, and line number where an issue occurs.  But the
file is printed as the absolute filename.  Users do not
need to see a long spew of path directory names where the package
just happened to have been built on some host somewhere.  It
can be confusing to anyone other than the developer.

Solution:  Introduce a configure option to chop off all leading
directories so that just the source filename ie. basename is printed.

[ Upstream status:  Not needed.  These absolute filenames are a
  consequence of poky/bitbake feeding the absolute filenames to
  the compiler.  If you build lxc outside of poky/bitbake, just
  the basenames are fed to the compiler. ]

Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-10-02 08:52:48 -04:00
Mark Asselstine
a7841b8560 libvirt: Properly shutdown libvirtd.service
We build libvirt without support for sd_notify (dbus) therefor we have
to run libvirtd as a 'forking daemon' (per commit
055744cdbc we pass --daemon)

We need to update the systemd service file to reflect this such that
the libvirtd.service can be properly stopped. If we ever enable
sd_notify support in libvirt we can revert back to using the 'notify'
systemd type. Without this change libvirtd continue to run even if the
stop command is issued, subsequent attempts to start the service will
fail.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16 16:10:11 -04:00
Roy Li
a27d411aef libvirt: upgrade 1.2.17 -> 1.2.19
The release notes is http://libvirt.org/news.html

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16 16:10:10 -04:00
Amy Fong
84b521fe4a docker: update SRC_URI
Author: Amy Fong <amy.fong@windriver.com>
Date:   Wed Sep 16 00:12:10 2015 -0400

    docker: update SRC_URI

    branch=release is no longer valid in the git tree,
    updating the branch to v1.6.2

    Signed-off-by: Amy Fong <amy.fong@windriver.com>

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16 16:10:05 -04:00