aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
AgeCommit message (Collapse)Author
2021-02-17Use an include file for the common parts of the sample recipesAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2019-12-09zephyr-philosophers: update recipe to build against v2.0Naveen Saini
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2017-01-30zephyr-philosophers: use common naming conventionsJuro Bystricky
Derive the name of the resulting image based on PN. 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-10zephyr-philosophers: also deploy binary imageJuro Bystricky
Deploy both binary and ELF images in order to make it easier to flash the image on an actual board, such as Arduino-101. (Some flashing tools require binary image) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-10zephyr-kernel: refactor common codeJuro Bystricky
Several changes to simplify recipes by refactoring common code. The code common to all Zephyr builds is now in the file "zephyr-kernel-common.inc". Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04zephyr-philosophers: use ZEPHYR_GCC_VARIANT="yocto"Juro Bystricky
Setting ZEPHYR_GCC_VARIANT="yocto" will result in images being built by our own Makefile: Makefile.toolchain.yocto The Makefile already contains LIB_INCLUDE_DIR definition, so it can be removed from this recipe. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2017-01-04zephyr-philosophers: cleanupJuro Bystricky
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>