Commit Graph

107 Commits

Author SHA1 Message Date
hadrien barral hWX1125572 44f489b715 qemu: Enable KVM
We now have a QEMU/KVM AArch64 board.

Signed-off-by: hadrien barral hWX1125572 <hadrien.barral@huawei.com>
2022-11-29 12:52:58 +09:00
Stephanos Ioannidis 59b2286921 meta-zephyr-sdk: Pull in AArch64 host build fix
This commit pulls in the Zephyr Poky commit that fixes the host tools
build on the AArch64 host.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-11-07 23:59:03 +09:00
Stephanos Ioannidis 13381c2f35 meta-zephyr-sdk: Downgrade glibc to 2.27
This commit pulls in the Poky commit that downgrades the glibc version
to 2.27 in order to ensure that the nativesdk binaries are compatible
with older Linux distros.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-11-07 04:23:42 +09:00
Stephanos Ioannidis 98678001d4 openocd: Pull in sleeping target flash failure fix
This commit pulls in the fix for the OpenOCD failing to flash a target
when the target is in sleep state.

Note that this is only a workaround until the Zephyr-side OpenOCD
configurations are updated to fundamentally fix this issue -- refer to
the linked OpenOCD commit message for more details.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-09-29 19:09:03 +09:00
Eugeniy Paltsev ce283dd576 meta-zephyr-sdk: arc_qemu: Update to 2022.08.04 release
This commit updates the ARC QEMU to 2022.08.04 tag.

Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
2022-08-11 20:44:22 +09:00
Stephanos Ioannidis f00d03cf53 qemu: Update to QEMU 7.0 release
This commit updates the QEMU version to 7.0.0.

QEMU 7.0 is required to support the new ratified RISC-V extensions such
as Zve* and Zb*.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-06-22 18:19:30 +09:00
Stephanos Ioannidis 2e58d8145f meta-zephyr-sdk: Upgrade meson to 0.59.3
This commit upgrades the meson package version from 0.59.2 to 0.59.3.

Meson 0.59.3 or above is required for building QEMU 7.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-06-22 10:20:51 +09:00
Stephanos Ioannidis 9e6fc86d08 meta-zephyr-sdk: Upgrade meson to 0.59.2
This commit upgrades the meson package version from 0.59.1 to 0.59.2.

(based on poky commit 1d345f0bc826fb42eb179b939cb8313d3f4afda1)

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-06-22 10:20:51 +09:00
Stephanos Ioannidis 81e9f01f83 openocd: Pull in zephyr-20220611
This commit pulls in the Zephyr OpenOCD branch that is based on the
latest OpenOCD commit as of 2022-06-11 (`zephyr-20220611` branch).

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-06-14 22:28:50 +09:00
Stephanos Ioannidis 524d52fbc7 meta-zephyr-sdk: openocd: Pull in Cyclone V SoC JTAG device order fix
This commit pulls in the OpenOCD patch that fixes the JTAG device order
for the Intel Cyclone V SoC.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-05-14 02:30:07 +09:00
Stephanos Ioannidis 540a80965c meta-zephyr-sdk: arc_qemu: Update to 2022.04.26 release
This commit updates the ARC QEMU to 2022.04.26 release (tag).

NOTE: This change was initiated because the original commit
2625a6fbc3f60233e1d340931d00242d82230091 no longer exists in the
upstream repository.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-05-14 01:41:29 +09:00
Stephanos Ioannidis 01159070ba qemu: Pull in I2C device emulation support for ARM targets
This commit pulls in the patches required to support the emulation of
the I2C devices (e.g. LSM303DLHC magnetometer) on the ARM targets.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-26 04:10:06 +09:00
Alexey Brodkin 5631596471 meta-zephyr-sdk: Add separate QEMU recipe for ARC
This commit makes the following changes to add a separate QEMU recipe
for ARC.

1. Re-generate "cross.patch" as there're quite some changes in the
   newer "configure" script.

2. Remove "--disable-sheepdog" as otherwise configurations fails with
   --------------->8------------
   ERROR: unknown option --disable-sheepdog
   --------------->8------------

3. Add symlinks to the ARC QEMU emulator executables in `/usr/bin`.

Co-authored-by: Stephanos Ioannidis <root@stephanos.io>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-21 20:13:37 +09:00
Stephanos Ioannidis d1d1660e03 qemu: Update to QEMU 6.2 release
This commit updates the QEMU version to 6.2.

QEMU 6.2 is required to support ARM M-Profile Vector Extension (MVE)
emulation.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-21 20:13:37 +09:00
Stephanos Ioannidis 1abfff001f qemu: Use Zephyr fork
Use the Zephyr QEMU fork (zephyrproject-rtos/qemu) to build the QEMU
for the Zephyr SDK.

This uses the `zephyr-qemu-v6.0.0` branch in the Zephyr QEMU fork,
which is based on the QEMU v6.0.0 release and contains all the Zephyr-
related patches previously used by the OE build system.

Note that the patch file `cross.patch` was not integrated into the
Zephyr fork branch because it is a Yocto/OE build environment-specific
workaround.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-21 20:13:37 +09:00
Stephanos Ioannidis e2a58e4ed5 meta-zephyr-sdk: Upgrade meson to 0.59.1
This commit upgrades the meson package version from 0.55.1, which is
provided by the current Poky distribution used, to 0.59.1.

Meson 0.58.2 or above is required for building QEMU 6.2.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-21 20:13:37 +09:00
Stephanos Ioannidis b0bda725ef meta-zephyr-sdk: Enable cross compilation
This commit enables cross compilation of the meta-zephyr-sdk by
allowing the host machine variable (MACHINE) to be overridden when
calling the build script.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-03-01 07:38:55 -05:00
Stephanos Ioannidis de9b29b446 meta-zephyr-sdk: Fix expat source URI
This commit updates the source URI for the expat component by
overriding the SRC_URI variable specified in the meta layer.

Note that the old mirror specified in the meta layer is no longer
available and has officially been relocated to GitHub [1].

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>

[1] https://github.com/libexpat/libexpat
2022-03-01 07:38:55 -05:00
Stephanos Ioannidis eaca8bd65e meta-zephyr-sdk: Fix libpcre source URI
This commit updates the source URI for the libpcre and libpcre2
components by overriding the SRC_URI variable specified in the meta
layer.

Note that the old mirror specified in the meta layer is no longer
available and has officially been relocated to GitHub [1].

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>

[1] https://pcre.org/
2022-03-01 07:38:55 -05:00
Stephanos Ioannidis 67d9f59450 openocd: Pull in OpenOCD fixes
Pull in the following OpenOCD fixes:

* tfc/target: stm32: Fix missing DBG clock on stm32g0/l0
* target/arc: implement dummy checksum_memory()

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-11-16 10:51:44 +09:00
Paul Sokolovsky c045f51616 meta-zephyr-sdk: xilinx_qemu: Enable "microblazeel" emulation target
MicroBlaze emulation is needed to boot a Linux on a Xilinx zcu102
target, which is in turn useful for end-to-end demonstration of
OpenAMP capabilities (Linux host boots a (Zephyr) image on a
remote processor and interacts with it).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2021-10-19 09:30:59 -05:00
Paul Sokolovsky 106830b506 meta-zephyr-sdk: xilinx_qemu: Update to QEMU 5.1.0
Uses the same git revision as Xilinx PetaLinux 2021.1. Allows to be better
aligned with vendor tooling/samples/etc. when working on integration
projects like OpenAMP.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2021-10-13 10:37:54 -05:00
Stephanos Ioannidis bb1ac90413 qemu: Add MIPS little endian emulation
This commit adds the `mipsel-softmmu` build for the QEMU, so that we
can emulate the little endian MIPS targets.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-10-09 07:42:14 -05:00
Alexey Brodkin f5539519e1 qemu: Allow setup of ARC's "virt" board memory size
We used to be very generous with memory allocation for ARC's "virt"
board assuming people would run Linux on it and all 2 GiB of RAM
will be consumed anyway.

But in case of Zephyr we don't need that much, yet QEMU tries to allocate
2 GiB right away meaninglessly claiming hosts's memory.

And while it's typically not a big deal if 1 QEMU instance is run on
an up-to-date host (we have 10s of GiBs to our disposal), in case of
massive parallel QEMU execution like in Zephyr's "twister", it really starts
to get in a way. So we now allow user to specify amount of memory we'd like
to have on emulated target and thus significantly lower memory pressure and
requirements on "twister"-running hosts.

See https://github.com/zephyrproject-rtos/sdk-ng/issues/291.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-09-01 07:52:19 -05:00
Kumar Gala 8a2c5bdb85 qemu: Backport fix for TFM
Pull in a patch from upstream qemu to fix issue with TFM

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-07-19 09:36:16 -05:00
Kumar Gala 52086e14d8 openocd: Update to recent upstream (20210630)
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-07-01 16:33:45 -05:00
Kumar Gala aaa5f95675 qemu: Pull in fixes for ARM MPS2/3 platform
Pull patch series from upstream QEMU for:

hw/arm: Fix modelling of SSE-300 TCMs and SRAM

https://patchwork.kernel.org/project/qemu-devel/list/?series=479755

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-05-11 13:45:31 -05:00
Kumar Gala 422531c38b qemu: Update to qemu 6 release
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-29 22:35:45 -05:00
Kumar Gala 57afee38ca qemu: Update to base of QEMU 6.0.0-rc4 + ARC64 support
Update the patches to be against QEMU 6.0.0-rc4 and pull in a few
upstream patches for the MPS3 AN524.  Additionally we have an updated
patch for ARC which also adds ARC64 support.

We update the build recipe based on the upstream yocto recipe to
deal with the use of meson/ninja in the QEMU build system.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-21 07:29:31 -05:00
Kumar Gala 707982780a meta-zephyr-sdk: Update yocto 3.2.3
We need a newer meson for building qemu so update to yocto 3.2.3
to pick that up.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-14 15:31:50 -05:00
Kumar Gala 210a1dd60f openocd: Update to recent upstream (20201109)
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-11-09 16:49:27 -06:00
Kumar Gala d2e24531b4 qemu: backport some pmp riscv fixes from upstream
Pull in some fixes related to PMP support on RISCV from upstream qemu

Fixes #277

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-10-19 09:58:29 -05:00
Kumar Gala 7ef9d3fe71 bossa: Pull in Add support to SAM4L SoC Family
Pull in changes from https://github.com/shumatech/BOSSA/pull/143

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-10-09 09:07:37 -05:00
Kumar Gala 28c795fd3b openocd: Update to recent upstream (20200928)
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-09-30 12:00:04 -05:00
Kumar Gala a2d4e4b277 qemu: Update to qemu 5.1
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-08-12 11:40:25 -05:00
Kumar Gala e22e87a556 openocd: bump to new upstream based openocd
Bump SHA to point to openocd based on upstream SHA:
fa9a4d4db5cfe44b7aadb1b8ef220f94423742a1

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-08-07 09:50:04 -05:00
Kumar Gala 9aaca5379c meta-zephyr-sdk: hosttools: remove mime files
Newer yocto build introduces mime files for some reason into the sdk
build.  Remove them in our packaged version since we don't need them.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala d9c8519ab7 meta-zephyr-sdk: Add support for building on ARM64 (aarch64) host
For yocto/poky:
* SDKMACHINE should be either x86_64 or aarch64
* MACHINE should be either qemux86 or qemuarm64

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 9e96ecfc27 meta-zephyr-sdk: Update openocd recipe
Pull in libftdi and libusb-compat recipes from meta-openembedded.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 5150ae121e meta-zephyr-sdk: rework hidapi recipe
Pull in hidapi_git.bb recipe from upstream meta-openembedded repo.

hidapi need a udev version so we use eudev and eudev will pull in kmod.
We add eudev_%.bbappend and kmod_git.bbappend to enable building those
recipes for a native-sdk (had a patch to the poky repo to handle this
before).

Finally, pull in hidapi via the openocd recipe and don't explicitly
list in hosttools-tarball recipe.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala e72f967738 meta-zephyr-sdk: remove dtc recipe
Upstream yocto has a recipe for dtc 1.5.1 so we don't need our own
anymore.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 5d31fea0ff meta-zephyr-sdk: Update yocto 3.1.1
We don't need of the patches to yocto as part of updating to version
3.1.1.  Rename meta-yocto to meta-poky as part of update to 3.1.1

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala bbde50f396 meta-zephyr-sdk: qemu: Disable some features that aren't used
Disabled various virtualization, disk, etc features that are not
relevant for Zephyr's usage of qemu.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 5d4fe7fc7b meta-zephyr-sdk: xilinx_qemu: Disable some features that aren't used
Disabled various virtualization, disk, etc features that are not
relevant for Zephyr's usage of qemu.

NOTE: Disabling of KVM lets xilinx_qemu build on an arm64 host.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala e4cabf8fee meta-zephyr-sdk: xilinx_qemu: Update to QEMU 5.0.0 base
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 1bf6f4affb meta-zephyr-sdk: seabios: Move to using prebuilt zephyr seabios binaries
Remove the seabios recipe and just fetch prebuilt binaries for the
zephyr tweaks to seabios.  This makes things a little simpler in not
having to build seabios on non-x86 (ie arm64) host platforms.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala d0eb67ffc9 meta-zephyr-sdk: set DISTRO_FEATURES to "none".
Set various DISTRO_FEATURES* to "none" (ie empty string) as we don't
need any features for the purpose of building a mini-nativesdk with
qemu, dtc, bossa, and openocd.  This reduces building recipes we
don't need.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 1297b0483d meta-zephyr-sdk: hosttools: Remove unneeded qemu firmware files
Remove some of the larger qemu firmware files that we don't use.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 23c38dab99 meta-zephyr-sdk: hosttools: Updates to prep for yocto update
Make some changes that are forward compatible with newer yocto versions.
Use ${MULTIMACH_TARGET_SYS} instead of ${MULTIMACH_HOST_SYS} as
${MULTIMACH_HOST_SYS} doesn't exist in newer yocto versions.

Also tweak the LIC_FILES_CHKSUM to just be on the MIT license as the
toplevel LICENSE file differs in newer yocto versions.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00
Kumar Gala 1a742306e5 meta-zephyr-sdk: remove used meta-toolchain.bbappend
The meta-toolchain.bbappend file isn't used for anything.  We use
recipes-hosttools/hosttools/hosttools-tarball.bb to handle the sysroot
cleanup so we can remove this file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-07-16 16:38:44 -05:00