aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2020-09-29zephyr.bbclass: Add ability to set boardJon Mason
Currently, there is no ability to set the board used by Zephyr. This limits the ability to set the board to something other than the machine name. By setting up an intermediate variable, ZEPHYR_BOARD, this can be set by those that know better (with the default to use the machine name as before). Signed-off-by: Jon Mason <jon.mason@arm.com>
2020-09-23zephyr-kernel: add Zephyr RTOS version 2.3.0 supportMah, Yock Gen
Signed-off-by: Mah, Yock Gen <yock.gen.mah@intel.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2020-04-02zephyr-kernel: add Zephyr RTOS version 2.2.0 supportNaveen Saini
Release notes: https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.2.0 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-17zephy-kernel-test: update the testcase list for x86Naveen Saini
Updated the test recipes to build against Zephyr v2.0 Code clean up Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09zephyr-kernel: add Zephyr RTOS version 2.0.0 supportNaveen Saini
Release notes: https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.0.0 Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09zephyr-kernel: drop v1.7Naveen Saini
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09zephyr-kernel-src: updated SRC_URI to point to githubNaveen Saini
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2017-04-10siteinfo-zephyr.bbclass: refactor siteinfoJuro Bystricky
Move all SITEINFO_EXTRA_DATAFUNCS and PACKAGEQA_EXTRA_MACHDEFFUNCS from various tune files (tune-arc.inc, tune-iamcu.inc, tune-nios2.inc) into a a new siteinfo-zephyr.bbclass file. Although the original code did not result in any obvious errors, in fact it did cause some multiconfig problems. [YOCTO#11166] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-04-03zephyr-flash-dfu.bbclass: modified PATH handlingJuro Bystricky
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-17zephyr-kernel.inc: also support Zephyr 1.7.0Juro Bystricky
Build kernel tests suite and kernel samples based on PREFERRED_VERSION_zephyr-kernel Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-08zephyr-qemuboot.bbclass: no rootfsJuro Bystricky
Explicitly state we don't have rootfs, otherwise default rootfs QEMU settings may be forced by runqemu. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-03-06arduino-101: Support for flashing via USBJuro Bystricky
Implement a class allowing flashing Arduino-101 using dfu-util. User needs to have dfu-utils installed on the host machine. All three cores supported (x86, ARM, ARC). Sample usage: $ MACHINE=arduino-101 bitbake xxx $ MACHINE=arduino-101 bitbake xxx -c flash_usb Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05zephyr-qemuboot.bbclass: disable QEMU networkJuro Bystricky
Setting QB_NET = "none" bypasses network configuration in runqemu. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-02-05zephyrtest.bbclass: refactorJuro Bystricky
Only keep code/variables related to individual test/package names. Moved ZEPHYR_TEST_SRCDIR into zephyr-kernel.inc as it is zephyr kernel version specific. Moved ZEPHYR_MAKE_OUTPUT into zephyr-kernel-common.inc as it is as it is not zephyr test specific but applicable to all zephyr images. Generate additional files expected by testimage.bbclass: testdata.json and a dummy manifest file Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30zephyr-qemuboot.bbclassJuro Bystricky
A bbclass used to generate qemuboot.conf and various symbolic links needed to properly run "runqemu". Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30zephyr-qemuboot.bbclassJuro Bystricky
A bbclass used to generate qemuboot.conf and various symbolic links needed to properly run "runqemu". Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-30zephyrtest.bbclass: simplify names of test binariesJuro Bystricky
Drop the prefix "zephyr-kernel-test-". Additional minor cleanup. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-18zephyr.bbclass: support for image configurationJuro Bystricky
New class to support commands such as: $ MACHINE=xxx bitbake yyy -c menuconfig $ MACHINE=xxx bitbake yyy -c devshell Kernel options are typically configured via menuconfig. The file "prj.conf" must be edited manually, hence the need for devshell. Once in devshell, user can use their favorite editor to edit the file. For proper operation, these two variables need to be set in recipes: ZEPHYR_SRC_DIR : path to the source, typically place with prj.conf ZEPHYR_BASE: Zephyr kernel tree location [YOCTO#10657] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04zephyrtest.bbclass: do not prepend 'test_'Juro Bystricky
Do not prepend 'test' to test programs. (Don't assume all test programs names begin with 'test_') Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04meta-zephyr: basic upgradeJuro Bystricky
Numerous changes to allow building and running various Zephyr tests using Zephyr release 1.6 and Yocto master distro (commit 3676601335b4673e3572d5a9987a351f0bb44bcb and later) Work in progress. Notable changes: 1. Zephyr 1.6 does not support the concept of nano and micro kernel anymore. 2. Location of various tests have changed 3. Changes due to subtle python3/python2 differences 4. Zephyr Makefile changes (including renaming) 5. Improved failed test detection 6. Remove patch files no longer needed With these changes, it is now possible to run Zephyr test suite and Zephyr sample programs. Currently only x86 CPUs are supported, with additional CPU support coming in the near future, in particular support for ARM Cortex-M3 CPUs Prerequisites: Modify local conf by adding: DISTRO="zephyr" MACHINE?="qemux86" Modify bblayers.conf by adding "meta-zephyr" to BBLAYERS To build all Zephyr tests: $ bitbake zephyr-kernel-test-all To test all built test images: $ bitbake zephyr-kernel-test-all -ctestimage You can also build and test an individual test. This is done by appending the actual test name to the "zephyr-kernel-test", for example: $ bitbake zephyr-kernel-test-test_sleep $ bitbake zephyr-kernel-test-test_sleep -ctestimage It is also possible to build Zephyr sample programs. Included is a sample recipe that builds the Zephyr "philosophers" sample: $ bitbake zephyr-philosophers Once built, you can run the created "philosophers" image in qemu (at this point the various paths have to be entered manually): $ ./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-i386 \ -kernel ./tmp/deploy/images/qemux86/philosophers.elf \ -nographic -machine type=pc-0.14 -display none -clock dynticks \ -no-acpi -balloon none Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04Create the meta-zephyr layer with empty SRC_URIRandy Witt
Initial commit: original work by Randy Witt and Richard Purdie. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>