aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2016-09-27fsl-dynamic-packagearch.bbclass: Stop using ARM-specific architecturesOtavio Salvador
The code to dynamically assign the architecture does take into account the default tune so we don't need to include the other architectures with the SoC suffix into the possible package architecture list. This allow for the class to be used across different architectures (such as PowerPC) thus fixing issues while integrating it for QorIQ usage. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-09-13Use IMGDEPLOYDIR for SDCard image generationOtavio Salvador
This change is needed as the commit OE-Core:6d969bac (image: Deploy images to IMGDEPLOYDIR) has changed the deployment directory from DEPLOY_DIR_IMAGE to IMGDEPLOYDIR causing failures when using the image_types_fsl.bbclass class. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-09-08machine-overrides-extender.bbclass: Automatically set extend the ↵Otavio Salvador
MACHINEOVERRIDES This allow to grouping of different settings for similar platforms. To use the class, specify, for example: MACHINEOVERRIDES_EXTENDER_soc = "group1:group2" Change-Id: I4a7dcd353b8bedf9d8f213827d7de768783c3d5d Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-08-22fsl-u-boot-localversion.bbclass: Ensure git is run inside ${S}Otavio Salvador
The tasks does not run inside ${S} by default anymore so we must ensure to run Git inside it. Change-Id: I9bba889ed13cc386d23fa4efdac2af5b46e2d65b Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-08-09fsl-kernel-localversion: Make sure build dir exist before create .configFabio Berton
Create directory ${B} before do_preconfigure task creates file ${B}/.config Fix error: ../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-fslc-imx/ 4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/temp/run.do_preconfigure.16220: line 109: ../fsl-community-bsp/build/tmp/work/imx6slevk-poky-linux-gnueabi/ linux-fslc-imx/4.1-1.0.x+gitAUTOINC+0c0844f9fa-r0/build/.config: No such file or directory Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-07-16image_types_fsl.bbclass: Ensure i.MX23 and i.MX28 image stream are availableOtavio Salvador
The i.MX23 and i.MX28 image stream must be built prior the sdcard generation. The example of a failure is: ,---- | DEBUG: Executing shell function do_image_sdcard | 0+0 records in | 0+0 records out | 0 bytes (0 B) copied, 1.5848e-05 s, 0.0 kB/s | dd: failed to open '....rootfs.uboot.mxsboot-sdcard': No such file or directory | WARNING: exit code 1 from a shell command. `---- The failure has been found by O.S. Systems autobuilder when running the regression tests. Change-Id: I64ecca1160e038e15629516f97e8ade5d645be31 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-07-16image_types_fsl.bbclass: Allow sdcard dependencies to be setOtavio Salvador
Instead of resetting the sdcard dependencies, we append them. This allow those to be set before class inherit. Change-Id: I588a549abfe756fea38d0133c5c21ef06dfcb230 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-07-04fsl-vivante-kernel-driver-handler.bbclass: Allow build for non-i.MX6Otavio Salvador
When building for non-i.MX6, we ought to assume the SoC does not has Vivante GPU at all, or the build will fail. This fixes the build of linux-fslc-imx-rt for i.MX7D as it does not have a Vivante GPU. Change-Id: Ic8fc4808880aca381e88f6e1b6c52416bb4520c4 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-06-16fsl-kernel-localversion: Configure kernel in a separate taskAdrian Dudau
As it is implemented right now this class overwrites the .config file making it impossible for any other layer to configure the kernel in a .bbappend to the kernel recipe. By doing it in a separate task before do_configure we ensure that recipe .bbappends can make further kernel configurations in do_configure_prepend. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-15mfgtool-initramfs-image.bbclass: Fix parsing when using a barebox based machineOtavio Salvador
When building for cfa100xx machines, for meta-fsl-arm-extra, the parsing is aborted with: ,---- | ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry | 'barebox.mxsboot-sdcard' - possibly invalid type name or missing | support class | ERROR: Failed to parse recipe: | .../sources/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb `---- This error was caused by the image not providing all the filesystem types as in fact it generates a Gzipped CPIO filesystem and does not inherit the default ones. To solve the error we ought to include the override for 'mxs' SoC family so the right setting is used as well in this set of SoCs. Change-Id: If6e657793ed7af07decac217f6b3371fad1f521c Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-04-06EULA: Update EULA to March v12 versionLauren Post
Update mdsum in fsl-eula-unpack class pdate license mdsum in firmware, codec, parser and vpu Signed-off-by: Lauren Post <lauren.post@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-02-11EULA: Update to LA_OPT_BASE_LICENSE v10 November 2015Lauren Post
Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-12-19fsl-vivante-kernel-driver-handler.bbclass: Postpone defconfig changesOtavio Salvador
The defconfig changes should be done later in the process so the .config file is generated, using any other mean, and mangled to respect the distribution setting regarding the module use or not. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-22image_types_fsl.bbclass: Fix image generation for i.MX 6UltraLiteFelipe Provenzano
When the i.MX 6UltraLite (mx6ul) was separated from the SoC family mx6 (commit 24396b28f0137464cd82b9a19f705c1db180ead2) it started to create invalid sdcard images. This is because of SDCARD_GENERATION_COMMAND no more being triggered. The solution in this moment is add a mx6ul override for the SDCARD_GENERATION_COMMAND definition. Signed-off-by: Felipe Provenzano <felipeprovenzano@maxtrack.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-16image_types_fsl.bbclass: Use FAT 32 for images larger than 512MBTzu-Jung Lee
Refers to the following commit of poky for more detail. commit 722430a488f39bf583e4a557a254fb84fae4d0a7 Author: Darren Hart <dvhart@linux.intel.com> Date: Wed Dec 12 14:39:15 2012 -0800 bootimg: Use FAT 32 for images larger than 512MB Fixes [YOCTO #2138] Signed-off-by: Tzu-Jung Lee <roylee17@currantlabs.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-16image_types_fsl.bbclass: Fail if a Device Tree file is missingOtavio Salvador
When generating the rootfs we need to include all the referenced Device Tree files. The code were gracefully checking if the file existed before building the image however the expected behavior is to fail. As consequence of this change, if someone is using a very old kernel (no Device Tree based) and tries to generate an image, it will fail until the machine definition is changed to not list Device Tree files for installation. Currently all machines supported by meta-fsl-arm BSP are consistent for the default kernel in use however custom BSP may need to be changed accordingly. Change-Id: I548c65c61dfefe24154a455d097032b1598b14d3 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-16image_types_fsl.bbclass: Refactor boot image duplicated codeOtavio Salvador
The code which copies the boot scripts and Device Tree files is duplicated across the different image types. This patch reworks this code to avoid this duplication. Change-Id: Ib9405067a5419e1b295dfac9e3d3bd9b896d424e Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-10-02image_types_fsl.bbclass: make mkfs.vfat use FAT32 in all casesSchrempf Frieder
as otherwise FAT16 might be used, which seems quite outdated and can cause issues in certain environments (e.g. older versions of U-Boot) Change-Id: I2d89ad235084c4a1289fae180df043a2f9e05e63 Signed-off-by: Frieder Schrempf <frieder.schrempf@exceet.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-09-24image_types_fsl.bbclass: Fix DeviceTree copy for FAT partitionOtavio Salvador
The rootfs generation script now runs outside of the deploy directory so the code need to use the full path for the installed files. This fixes the rootfs generation process so the files are copied to the FAT partition, allowing the system to boot. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Tested-by: Daiane Angolini <daiane.angolini@freescale.com>
2015-09-22fsl-vivante-kernel-driver-handler.bbclass: Handle Vivante kernel driver providerOtavio Salvador
Enable the kernel to provide or not the Vivante kernel driver and dynamically set the proper providers per machine. The following options are supported: MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT Machine does or does not have support for the Vivante kernel driver, options are: 0 - machine does not have Vivante GPU driver support 1 - machine has Vivante GPU driver support MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE Machine uses the Vivante kernel driver as module, options are: 0 - enable the builtin kernel driver module 1 - enable the external kernel module Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-28EULA: Update to 2015.06 v8 versionLauren Post
License updated to 2015.06 v8 version. Update checksum in the fsl-eula-unpack class Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-28image_types_fsl: Add support for mx7 image generationLauren Post
Signed-off-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-28mfgtool-initramfs-image.bbclass: Add f2fs feature optionOtavio Salvador
The f2fs feature allows the use of Flash-Friendly File System during the installation. The feature is disabled by default as the f2fs-tools is offered by meta-filesystem layer which shouldn't be made as a hard dependency of meta-fsl-arm. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-06-15image_types_fsl: Fix boot.img overwrite errorGary Thomas
Recent updates to the MSDOS tools (OE-core is now at 3.0.28) have made it an error to overwrite an image using mkfs.vfat: mkfs.vfat: file XXXX/tmp/work/nitrogen6x-poky-linux-gnueabi/network-demo-image/1.0-r0/boot.img already exists mkfs.fat 3.0.28 (2015-05-16) WARNING: exit code 1 from a shell command. This patch fixes the problem by removing any old/stale images before trying to create the VFAT file system images. Change-Id: I74e02fd512b43315b29698f534192632d7780df2 Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-06-09fsl-eula-unpack: fix deploying EULAStefan Christ
If a recipe, which uses the fsl-eula-unpack bbclass, defines the variable LIC_FILES_CHKSUM like LIC_FILES_CHKSUM = "[...]" (not using "+=") the content of ${FSL_EULA_FILE}, which is added in fsl-eula-unpack, is overwritten. So the EULA isn't deployed to the ${LICENSE_DIRECTORY}. Using 'LIC_FILES_CHKSUM_append' should work in any cases. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-06-09fsl-eula-unpack: fix outdated EULA checksumStefan Christ
The md5 checksum in LIC_FILES_CHKSUM was taken from an older version of the Freescale EULA. This leads to build errors like ERROR: imx-gpu-viv: md5 data is not matching for file://[...]/meta-fsl-arm/EULA;md5=6df184a9b1950b68e17fdcd7513bdb97 ERROR: imx-gpu-viv: The new md5 checksum is acdb807ac7275fe32f9f64992e111241 Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-06-01fsl-eula-unpack: deploy Freescale EULAStefan Christ
Add the file which contains the Freescale EULA to variable LIC_FILES_CHKSUM, so the EULA is deployed in the folder ${LICENSE_DIRECTORY}/${PN}/ for all recipes which use the bbclass fsl-eula-unpack. Add a vardepsexclude to variable LIC_FILES_CHKSUM to share the sstate cache across multiple build directories. See commit commit e8c6cf822889c02b76db03f2e9c6915a1bda1c06 Author: Christopher Larson <kergoth@gmail.com> Date: Wed Oct 23 22:30:41 2013 +0000 fsl-eula-unpack: add FSL_EULA_FILE to vardepsexclude Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-05-11image_types_fsl.bbclass: use dd's option fsync instead of syncStefan Christ
The shell command sync flushes all filesystem buffers in the system. On a bigger multiuser system there are multiple gigs of data sometimes in the buffer which then are written out to disk at once. It's better to only flush the specific file with dd's option 'fsync'. Change-Id: I6476444dbbc28e4f8756066e531734ef1de71fdb Signed-off-by: Stefan Christ <s.christ@phytec.de> Tested-by: Nikolay Dimitrov <picmaster@mail.bg> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-04-02fsl-dynamic-packagearch.bbclass: Fix support for empty MACHINE_SOCARCH_SUFFIXOtavio Salvador
When MACHINE_SOCARCH_SUFFIX is empty a duplicated architecture will be included in PACKAGE_ARCHS. The expected behaviour is to not include duplicated values and raise an error in case a MACHINE_SOCARCH package tries to be build. Change-Id: I98d936409554e4e7725c8af6c0a0a0344ddec751 Reported-by: Lauren Post <lauren.post@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-04-02fsl-dynamic-packagearch.bbclass: Fix package skip when MACHINE_SOCARCH is unsetOtavio Salvador
The 'bb.parse.SkipPackage' exception was missing a 'raise' call to proper inform the BitBake tool parsing system about the error, now the package is properly skipped when necessary. Change-Id: Ie736186c8e459eea55c1455547e1da8f7111e165 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-04-02fsl-kernel-localversion.bbclass: Fix Git hash in versionOtavio Salvador
The .scmversion file needs to be located in the Git source, otherwise the build system does not use it. This fixes the regression introduced in f69b21d (fsl-kernel-localversion.bbclass: Fix building using out-of-tree). Change-Id: I7f06279f5b1f9aee18d1a5a39a22b27f4c34f365 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-04-01fsl-dynamic-packagearch: add all MACHINE_SOCARCH feedsMax Krummenacher
This ensures that all MACHINE_SOCARCH feeds are part of PACKAGE_EXTRA_ARCHS. oe-core now puts packages into feed dirs dependent on the used instruction sets. http://cgit.openembedded.org/openembedded-core/commit/?id=3e760031f91fb87c3e2f62b77a117eb41164f259 This is true also for packages in MACHINE_SOCARCH, i.e. we get in deploy/ipk for an angstrom based build: armv7ahf-vfp-neon-mx6qdl armv7at2hf-vfp-neon-mx6qdl so we must put both into PACKAGE_EXTRA_ARCHS. TUNE_FEATURES defines if arm and/or thumb feeds are possible with the current configuration. Change-Id: I47ed7c3a5cbdc488801cd9198e822f9845565559 Signed-off-by: Max Krummenacher <max.oss.09@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-03-12vf/twr-vf65gs10: add new SoC family "vf" for Vybrid in generalStefan Agner
This patch introduces a new base SoC family "vf". The family includes all Freescale Vybrid SoC based modules, which is the single core (vf50/VF5xx) or dual core (vf60/VF6xx) variant. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-02-05image_types_fsl.bbclass: fix typosAlexandre Belloni
Few comments are using bytes instead of block. Also remove useless seek=1 Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-02-05image_types_fsl.bbclass: Drop UBOOT_PADDING supportOtavio Salvador
The U-Boot 2009.08 has been removed so every version now supported does not use padding. This patch drops the code which added the possibility of use old U-Boot version but which was unused for long time. Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-02-04fsl-eula-unpack.bbclass: Avoid warning about wrong 'S' being setOtavio Salvador
The binary files packages provided by Freescale need to have the specialized unpack method called before the OE-Core original one. This unsures that the source is available when sanity tests are done. This fixes following warning: ,---- | WARNING: .../libfslcodec/4.0.2-r0/libfslcodec-4.0.2 ('S') don't | exist, you must set 'S' to a proper value `---- Change-Id: Ie85c5b2abdc34449503b543e5fc8d8e914ac0c1c Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-12-21fsl-kernel-localversion.bbclass: Fix building using out-of-treeOtavio Salvador
Since OE-Core:df9975f4 (kernel: Fix non linux-yocto builds) the way the build of kernel is done has change. Now the source code is moved placed at STAGING_KERNEL_DIR and the build is done at ${WORKDIR}/build which is B. This patch adapts the configure task prepending to cope with those changes. Change-Id: I9ea4254ffd56e4b7201daf9a90b52756a399c0f6 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-12-04image_types_fsl.bbclass: Use 69K as offset to load imageOtavio Salvador
The U-Boot mainline uses 69K as offset so we ought to use it here; this aligns the SD card image layout to work out of box with all U-Boot mainline based SPL boards. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-10-11image_types_fsl.bbclass: typo fix (s/Unkown/Unknown/)Mario Domenech Goulart
Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-09-01fsl-u-boot-localversion: Easy LOCALVERSION handlingOtavio Salvador
This class allow for easy extending of U-Boot recipes to easy the LOCALVERSION handling, allowing to reuse of code between different U-Boot recipes The following options are supported: SCMVERSION Puts the Git hash in U-Boot local version LOCALVERSION Value used in LOCALVERSION (default to '+fslc') This about avoid code duplication among Layerscape and i.MX. Change-Id: Icec618092d1f70606051619b6f6118f50e7f1ba5 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-09-01fsl-kernel-localversion: Easy LOCALVERSION handlingOtavio Salvador
This class allow for easy extending of kernel recipes to easy the LOCALVERSION handling, allowing to reuse of code between different kernel recipes The following options are supported: SCMVERSION Puts the Git hash in kernel local version LOCALVERSION Value used in LOCALVERSION (default to '+fslc') This about avoid code duplication among Layerscape and i.MX. Change-Id: I3999dbdc2cb761063fe5f83dea65ddb14adec80c Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-06-05image_types_fsl.bbclass: Add U-Boot NAND support for i.MX23/i.MX28Alexey Ignatov
This adds support to generate the U-Boot image for use with NAND (uboot.mxsboot-nand) and allows for custom params to be given for mxsboot using the MXSBOOT_NAND_ARGS variable which should be defined in the machine definition file. Signed-off-by: Alexey Ignatov <lexszero@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-03-17image_types_fsl.bbclass: Avoid wrong dependency for no bootloaderOtavio Salvador
When IMAGE_BOOTLOADER is empty we shouldn't add '':do_deploy as dependency as it does not exist. So handle this corner case to allow bootloader-less images to build fine. Change-Id: I04dc81bbb4184f79e88e1693239f2628a9819d7d Reported-by: Ilya Smelykh <ilya.smelykh@gmail.com> Reported-by: Tarek El-Sherbiny <tarek.elsherbiny@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-03-11mfgtool-initramfs-image.bbclass: rename PACKAGE_GROUP to FEATURE_PACKAGESJavier Viguera
Clean bitbake warning: WARNING: PACKAGE_GROUP is deprecated, please use FEATURE_PACKAGES instead Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-03-11image_types_fsl: Use explicit task dependency to boost buildOtavio Salvador
Instead of depending of all tasks of recipes, we should depend on the required task so we can start building the rootfs earlier in the build process and earn some build time gain. Change-Id: I770afe79edba0320ae697f9bcdaf340fbcb09eeb Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-03-03mfgtool-initramfs-image.bbclass: Abstracts the MfgTool's initramfs needsOtavio Salvador
Manage the initramfs requirements for Manufacturing Tool use and allow future addition of new filesystem support if needed. Change-Id: Ia3a1f0d32d1a12209262096162adeb36909c509b Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-02-28image_types_fsl.bbclass: Fix imx-bootlets build with new image codeOtavio Salvador
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE} anymore, the imx-bootlets code need to be reworked to take this into account. Change-Id: Ic7890557e93b47997590143047816ecb0378ad13 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2014-02-27image_types_fsl.bbclass: fix barebox bootstream generationAlexandre Belloni
Since the image_types.bbclass is not cd'ing to ${DEPLOY_DIR_IMAGE} anymore, do that in a subshell before generating the boostream. This fixes the following build failure: ERROR: Error: The image creation script '.../core-image-minimal/1.0-r0/temp/create_image.barebox.mxsboot-sdcard' returned 1: error: unable to find command file imx-bootlets-barebox_ivt.bd-cfa10058 Change-Id: I5881c6bc333bef42a3f61d07b7bbd6c87c7d45e7 Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2014-02-21image_types_fsl.bbclass: Add fstype dependencyOtavio Salvador
The sdcard requires the rootfs filesystem to be built before using it so we must make this dependency explicit. Change-Id: Ibacba4c2ff5250785b50d6a7bc7ddf77f6309bb6 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2014-02-19fsl-dynamic-packagearch.bbclass: fix typoJavier Viguera
s/PACHAGE_ARCH/PACKAGE_ARCH Signed-off-by: Javier Viguera <javier.viguera@digi.com>