summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2020-11-02class: fitimage: Delete deltask for sdk and package install supportMaik Otto
The sdk and package install was not possible with the deltask for this features. Signed-off-by: Maik Otto <m.otto@phytec.de> Acked-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-11-02classes: stm32mp1: remove unused bbclass filesChristophe Parant
- Remove extlinuxconf-stm32mp.bbclass which was not used in last BSP version (leftover from ALPHA BSP) - Remove extlinuxconf-phycore-stm32mp.bbclass, as this file does not need to be duplicated anymore from meta-st (extlinuxconf-stm32mp.bbclass from meta-st now works with phycore-stm32mp machines). Signed-off-by: Christophe Parant <c.parant@phytec.fr> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-10-30fitImage: change Kernel name from fitImage.fitimg to fitImageMaik Otto
The fitImage is a defined kernel type, which is used as name for the kernel image. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-10-30class: fitimage: set default for load and entry address to emptyMaik Otto
The load and entry address was not right, but the Barebox do not parse the load and entry addresses from the fitImage. The barebox patch with commit:8666aae1db002d500ca1a9ec2cfdd7155ab0494b (2020-08-14) fix the parse error. This patch set the load and entry address to empty, so that the barebox use its default values. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-09-11classes: fitimage.bbclass: Fix "signer" property nameAlbert Schwarzkopf
The correct name of the "signer" property is actually "signer-name". Signed-off-by: Albert Schwarzkopf <a.schwarzkopf@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-08-24fitimage.bbclass: Set default values for loadaddress and entrypointMartin Schwan
Set default values for the loadaddress and entrypoint to prevent printing empty lines. Signed-off-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-08-24fitimage.bbclass: Replace "aarch64" with "arm64" in FIT archMartin Schwan
The FIT parameter "arch" expects "arm64" instead of "aarch64" as a valid value. Signed-off-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-08-24fitimage.bbclass: Set a default for FIT image signing switchMartin Schwan
Set the default for the FIT image signing process to be disabled. Previously, an error would be thrown that FITIMAGE_SIGN is not defined when not using the secureboot.bbclass. Signed-off-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-04-07class: wic-helper: add BAREBOX_BINARY to WICVARSMaik Otto
Add the new variable BAREBOX_BINARY to WICVARS for variable change of the Barebox in the wic file. Using the same wic file for standard and secure boot is possible. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-04-02BSPYOCTO-563 kconfig.bbclass: merge INTREE_DEFCONFIGJan Remmet
if INTREE_DEFCONFIG is a list there is a difference in the output .config between passing all to make and use of merge_config.sh make sets all dependent configs for the first defconfig adding the others on top of this. merge_config.sh combines all defconfigs and let make than set all dependent configs. So you can easy (un)set an option and don't need to track all dependency changes issued by previous defconfigs. Signed-off-by: Jan Remmet <j.remmet@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-04-02kconfig.bbclass: remove sub shell workaroundJan Remmet
Since commit: 06ed63672607 ("kconfig.bbclass: fix file origin for .cfg files") fragments have an absolute path Signed-off-by: Jan Remmet <j.remmet@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-03-11classes : fitimage: add depends on phytec-dev-caMaik Otto
Add depends on phytec-dev-ca, but ca can be change with adjusting the cert_path in the distro. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Norbert Wesp <n.wesp@phytec.de>
2020-03-11classes/fitimage: change symlink for fitImage to static nameMaik Otto
change the name of the symlink for the fitImage to the static name fitImage.fitimg. The static name will be used for sdcard image creation. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Norbert Wesp <n.wesp@phytec.de>
2020-02-18conf: machine: Replace parse_dtbs by oftree + KERNEL_DEVICETREEStefan Riedmueller
parse_dtbs is only available inside the wic-helper class thus it is not possible to parse IMAGE_BOOT_FILES outside the wic-helper class recipes. This is problematic when using IMAGE_BOOT_FILES for other tasks such as creating RAUC bundles. Replace parse_dtbs by the newly deployed oftree file and KERNEL_DEVICETREE. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2020-02-06classes: fitimage.bbclass: Image/Kernel Artifact Naming ChangesNorbert Wesp
With thud name variables (e.g. IMAGE_NAME) use a new IMAGE_VERSION_SUFFIX variable instead of DATETIME. Within commit 'b763d82f2502da2c4a7563177621f824a3428a6e' I missed this file. Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-10-23layer: add support for phyCORE-STM32MP1Stefan Müller-Klieser
This is the work of Dominique Vovard To add support for the phyCORE-STM32MP1 module to the OpenSTLinux distribution. Signed-off-by: Dominique Vovard <dominique.vovard@dv-consultant.com> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-07-17kernel/barebox/u-boot: Fix COMPATIBLE_MACHINE expressionsNorbert Wesp
COMPATIBLE_MACHINE is matched as regular expression. Thus phyflex-imx6-1 matches phyflex-imx6-1 but also phyflex-imx6-11, phyflex-imx6-12 and so forth. In kernel, barebox and u-boot recipes we only want to match the exact machine. Surround the COMPATIBLE_MACHINE expressions with '^(' at the beginning and with ')$' at the end to achieve this. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-07-08classes: wic-helper: Add helper class for imx8 boardsJanine Hagemann
Need to add two additional functions to do_wic_image_depends. Without these the firmware-build is not finished but the sdcard image is. Signed-off-by: Janine Hagemann <j.hagemann@phytec.de> Signed-off-by: Norbert Wesp <n.wesp@phytec.de>
2019-06-12class: add creation of fit-image for secure bootMaik Otto
The Flattened Image Tree (FIT) format is already widely used in u-boot and Barebox. It is a flattened device tree (FDT) in a particular format with images contained within. FITs include hashes to verify images, so it is relatively straightforward to add signatures as well. Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-05-10kconfig.bbclass: fix config command callStefan Müller-Klieser
The config call was already handled in the kconfig class. Do not rely on the cml1 managed config call, as this currently generates silent errors and can lead to inconsistencies in future. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-04-09wic-am335x-helper, phyam335x.inc: refactor variable namesNorbert Wesp
Rename _BASE_NAME to _NAME and _SYMLINK to _LINK_NAME. This is for consistency to follow upstream refactoring of variable names. This was already done for barebox with commit: 6d18d013705312d6f2b2b7af933ba194f5410bc9 Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-04-03wic-helper: fix prebootloader dependencyStefan Müller-Klieser
Commit e23ebe4d4f accidentally removed the prebootloader dependency. Add it again. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-04-02wic-helper: strip vendor prefix off dtb filenamesDavid Brandt
The device tree files for the arm64 ARCH are filed in vendor sub directories, i.e. freescale/dtb-name. Stripping them here fixes build for imx8(m) builds. Signed-off-by: David Brandt <d.brandt@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-01-29wic-helper: Remove zImage prefix for DTBsWadim Egorov
Commit c5b70d7 kernel-devicetree.bbclass: Fix and simplify instalation of DTB files changed the name for the deployment of DTBs. Remove zImage prefix so WIC is able to find our DTBs again. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2019-01-29kconfig.bbclass: fix file origin for .cfg filesStefan Müller-Klieser
When we inject files into the build, we need to stick to the yocto workflow. Files used in SRC_URI get copied to the WORKDIR. For further processing, we need to take the file version from WORKDIR and don't use the original source version of the file. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-11-16wic-helper: fix build errorStefan Müller-Klieser
Single task dependencies are no longer possible. IMAGE_TYPEDEP should be used for image dependencies. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-08-02wic: fix image build dependenciesStefan Müller-Klieser
Upstream removed the IMAGE_DEPENDS variable, adapt to the changes. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-06-21classes: wic-helper: updatesDaniel Schultz
Changes: - description - change python rename function to bash append - Add EMMC creator: This function creates an EMMC image and writes the MLO at 0x0, 0x20000, 0x40000 and 0x60000 to support RAW boot for AM335x SoCs. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-03-20classes: Remove old SD card image scriptsDaniel Schultz
These scripts are replaced with the WIC tool. So they aren't necessary anymore. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-03-20classes: Create WIC helper classDaniel Schultz
This class contains information for the WIC tool about the PHYTEC BSP. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2017-02-16classes: barebox-environment: change loglevelStefan Müller-Klieser
Overwriting environment files is ordinary recipe work and should be logged to the recipe log and not stdout. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-12-21classes: image_type_fsl: Change images deploy dir to IMGDEPLOYDIRChristian Hemp
This change is needed as the poky commit 9cc4492 image: Deploy images to IMGDEPLOYDIR changed deployment directory from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR causing failures when using the image_types_fsl.bbclass Signed-off-by: Christian Hemp <christian.hemp@gmail.com> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-12-09classes: am335x: Fix SD image creationDaniel Schultz
This change is needed as the poky commit 9cc4492 image: Deploy images to IMGDEPLOYDIR changed deployment directory from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR causing failures when using the am335x_sd_image-phy.bbclass Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-12-09classes: rk3288_sd_image: Change images deploy dir to IMGDEPLOYDIRWadim Egorov
This change is needed as the poky commit 9cc4492 image: Deploy images to IMGDEPLOYDIR changed deployment directory from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR causing failures when using the rk3288_sd_image-phy.bbclass Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-10-31classes: add patch-auto-append.bbclassStefan Christ
In a KSP project you have to mostly patch the kernel. If there is no extra kernel repository, the patches are included in the meta layer. While development it's annoying to constantly update the list of patches in the SRC_URI. Especially if the name of a patch file changes afterwards. Here the patch-auto-append class comes to rescue. Just include the three lines inherit patch-auto-append PATCH_AUTO_APPEND_DIRS_prepend := "${THISDIR}/${PN}" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" in your bbappend and you never have to update the SRC_URI again. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-10-06classes: remove old barebox env handlingStefan Lengfeld
Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
2016-10-06classes: add new barebox environment handlingStefan Lengfeld
This implementation should make it easier to overwrite environment files in bbappend and other layers. Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
2016-09-27barebox: move env handling into separate bbclassStefan Christ
This makes refactoring easier. Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
2016-09-21buildinfo: update class for krogothStefan Lengfeld
In the new poky version krogoth the parsing behavior has changed. Now bitbake variables like "${SRCREV}" are not expanded in python tasks anymore. You have to use the python function 'd.getVar("SRCREV", True)'. Adapt the bbclass for that changed. Furthermore update some comments and use a single bb.plain call instead of two, because bitbake now prints an additional prefix. Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
2016-09-07classes: Add sd image class for RK3288 SoCsWadim Egorov
This class creates an image that can be written onto a SD card using dd, e.g: dd if=phytec-qt5demo-image-phycore-rk3288-2.sdcard of=/dev/sdb Also enable sdcard in the local.conf for RK3288 SoCs to deploy sdcard images. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de>
2016-08-19kconfig.bbclass: add explicit execution directoryStefan Müller-Klieser
Bitbake does not use ${B} as default execution directory any longer. We need to specify it for required tasks or use only absolute paths. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-08-19kconfig.bbclass: fix menuconfig commandStefan Müller-Klieser
Variables don't get expanded in python task context any longer. This needs to be explicit now. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-06-28phygittag: adapt to bitbake API changeStefan Müller-Klieser
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-04-18phygittag: fix BRANCH for upstream tagsStefan Christ
It should be possible to use upstream tags in your barebox/kernel recipes for our integration branches. A recipe with uses the upstream tag directly without phytec local patches may look like: # recipe filename linux-mainline_4.1.18.bb inherit phygittag GIT_URL = "git://git.phytec.de/${PN}" SRC_URI = "${GIT_URL};branch=${BRANCH};protocol=git" ... The phygittag bbclass will generate BRANCH = "v4.1.18-phy" GIT_TAG = "v4.1.18" This setup assumes that the tag "v4.1.18" is available in the repository git://git.phytec.de/linux-mainline and the branch "v4.1.18-phy" exists in this repository. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2016-04-07image_types_fsl: cleanup boot.img explicitlyStefan Christ
Fix error mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows mkfs.vfat: file [...]/work/phyflex_imx6_2-phytec-linux-gnueabi/phytec-qt5demo-image/1.0-r0/boot.img already exists mkfs.fat 3.0.28 (2015-05-16) that aborts the build. Happens sometimes on fresh builds. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-12-14fsl-bin-unpack: use global FSL_MIRRORStefan Christ
Use a global variable FSL_MIRROR, so the URL can be shared between recipes. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-12-14fsl-bin-unpack: rework Freescale's EULA handlingStefan Christ
Instead of a self made EULA handling use new Yocto interface with variables LICENSE_FLAGS and LICENSE_FLAGS_WHITELIST. See http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#enabling-commercially-licensed-recipes for details. For the user not much will change. Instead of putting ACCEPT_FSL_EULA = "1" into the local.conf, now he/she has to add LICENSE_FLAGS_WHITELIST += "license-freescale-v4-june-2013" to accept a single version or LICENSE_FLAGS_WHITELIST += "license-freescale" to accept any version. For now the license must be provided in an extra file 'COPYING'. In the next gpu library version this won't be needed anymore. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-12-02kconfig.bbclass: Add .scmversion dummyStefan Müller-Klieser
This removes the "+" appended to the version string. The "+" handling is inconsistent between different service calls, which leads to different version string outcome. This is the same fix used in kernel.bbclass. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-11-27kconfig.bbclass: Fix non-POSIX comparisonStefan Müller-Klieser
String comparison with "==" is apparently not POSIX compliant and is a problem for dash. It can be replaced with a single "=". Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
2015-11-23kconfig.bbclass: Set auto version handling to offStefan Müller-Klieser
This fixes a race condition for module builds and perf where perf modifies the source tree at some point in time. Also this removes the dirty flag. We will not easily get rid of it with the shared workdir approach anyway. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>