summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-11libusbgx: rework g1.schema handlingApalis-iMX8_Console-Image_3.0b1.40-20190612Max Krummenacher
Add the product name at compile time so that we do not need to provide slightly different copies of the file. While at it set package arch to machine arch. The packages created are machine specific due to the g1.schema file. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-28Revert "image_type_tezi.bbclass: drop some useless code"Max Krummenacher
With thud I still see "basehash value changed" errors, even though the commit e74158b6c is available in the OE thud branch. This reverts commit 9f84ffa4b42b4d518191116614aef269ab227f0e. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-23image_type_tezi: check argument to basenameStefan Agner
Check whether argument two is given before passing it to basename. This avoids build failure when building without deploying device trees in the bootfs (e.g. TorizonCore). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-05-22image_type_tezi.bbclass: extend for apalis-imx8Max Krummenacher
The i.MX8 kernel is currently 20MB and doesn't fit in the hard coded 16MB boot partition size. Set the boot partition size dynamically to twice the payload size rounded up to the next power of 2, but at least to 16MB. The Apalis iMX8 needs additional firmware for HDMI in the boot partition. Provide a new MACHINE_BOOT_FILES variable which adds to the list of to be installed files. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-20tezi-metadata: drop compatible machine restrictionStefan Agner
We have generic prepare.sh and wrapup.sh scripts hence tezi-metadata is buildable and useable for any machine. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 746241667086b2572b6d446b243ace00a09228a8)
2019-05-20image_type_tezi.bbclass: drop hard-coded tar.xzMing Liu
Replace hard-coded tar.xz by TEZI_ROOT_SUFFIX since the rootfs image suffix is being controlled by that variable. Signed-off-by: Ming Liu <liu.ming50@gmail.com> (cherry picked from commit 88f649a1b13762024413ba57e87b58b3a6bb6812)
2019-05-20image_type_tezi.bbclass: drop some useless codeMing Liu
We currently have some tricky code intended to get rid of the "basehash value changed" errors, but they are actually not needed. Since the references to "DATE" only exist in image tasks or their prefuncs, so they would be expanded at task executing time but not recipe parsing time, a 'vardepsexclude' flag would be enough in this case. I guess the reason we introduced this piece of code was that we found we still could see the annoying "basehash value changed" errors with 'vardepsexclude' flag set at that moment, but that's probably was not caused by our code, it's actually another issue now had been fixed in OE by e74158b6cc1d683ab14ef5d47ec531f986fc2259: [ rm_work: sort the value of do_build dependencies ] We can safely drop these useless code per my test. Signed-off-by: Ming Liu <liu.ming50@gmail.com> (cherry picked from commit 1b5ef0c9c3d5765622d45725d9fd64154cf27fed)
2019-05-20image_type_tezi.bbclass: normalize some comment textsMing Liu
Signed-off-by: Ming Liu <liu.ming50@gmail.com> (cherry picked from commit e9cc1d5996eee20018979f4e54e2239393bd3142)
2019-05-20image_type_tezi: support dtbs in subdirectoriesStefan Agner
Aarch64 typically stores device trees in subdirectories, e.g. freescale/fsl-imx8qm-apalis.dtb. However, the kernel-devicetree.bbclass deploys those files without subdirectory. Make sure the Tezi image class behaves like the kernel-devicetree.bbclass. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-05-02Revert "systemd: follow recipe split which added systemd-conf"Max Krummenacher
Actually the systemd-udevd.service file is not deployed with systemd-conf but with systemd proper. This reverts commit 118f6b1b17b61cebf933b52979c1598231b90014.
2019-05-02u-boot: add inc to generate U-Boot default environmentStefan Agner
Including u-boot-toradex-initial-env.inc will generate a uEnv.txt for newer U-Boot versions using U-Boot's u-boot-initial-env Makfile target. It essential does what u-boot-toradex-env.inc did before. Note: Since there is now support for an exported environment in upstream U-Boot, we should upstream the OE logic to the official U-Boot too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-04-25conf/layer.conf: decrease layer priority to 23Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-24backports: support menuconfigDominik Sliwa
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit 8109e0a87240489e6bc698e79f2cc748cbe40b17)
2019-04-24backports: update config fileDominik Sliwa
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit d02ed084d1c4a13e77898affc1b48beabef956f4)
2019-04-23colibri-vf: drop machineMax Krummenacher
We decided we won't do a BSP 3.0 for Vybrid. For new designs we recommend ULL now. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-04-21backports: update backportsDominik Sliwa
Backports based on 4.19 kernel. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit 78e1cdabe0baeb794945bd4926c28058f9f12aa9)
2019-04-21wpa_supplicant: update wpa_supplicant to 2.7Dominik Sliwa
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit 7070114ca207cdee388af9db3c698d8bb1ed907b)
2019-04-21hostapd: update hostapd to 2.7Dominik Sliwa
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit fba57b66b0a584e4625bce4b2a2fb400fbce6758)
2019-04-21backports: update backportsDominik Sliwa
Backports based on 4.19 kernel. Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit 56829b6d643fa5dfdac42c0adddf5d41e7fb982e)
2019-03-07colibri-pxa.conf: drop machineMax Krummenacher
This machine hasn't been used nor updated in years. The SoM's are discontinued by now. Drop it. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-05tdx_version.conf: removeMax Krummenacher
The default setting is now done in the distro. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04systemd: follow recipe split which added systemd-confMax Krummenacher
The systemd configuration has been split from the systemd recipe. Thus we need to move our changes to the systemd configuration. While at it drop the kmod packageconfig. This was only needed with angstrom. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04apalis/colibri-t20 -t30: drop machinesMax Krummenacher
These machines use an old Nvidia provided downstream kernel 3.1.10. They no longer much the way more recent sysroot components, e.g. libc, xserver et. al. The maintance burden to keep the userspace components in their old version becomes simply to high. Keep using the rocko based 2.8 BSP for these machines. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04mesa: remove workaroundMax Krummenacher
With the removal of angstrom we can drop this workaround. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04image_type_tezi.bbclass: refactor image size calculating functionsMing Liu
Drop bootfs_get_size since it has a obvious flaw, it's being called in both do_image_teziimg and do_image_teziimg_distro but the boot files of these two tasks are different. Drop rootfs_get_size, it's trying to get the size of IMAGE_ROOTFS directory, but in some cases, that is not correct, for instance, when TEZI_ROOT_SUFFIX is 'ota.tar.gz', the rootfs directory should be OTA_SYSROOT rather than IMAGE_ROOTFS. Introduce get_uncompressed_size function, it reads the image size from a image-size file in ${T} directory, and that image size is written into this file by the image functions when they making the tarballs. Also split the duplicated bootfs tarball creating code to a common function create_bootfs, and it must run as a prefuncs before rootfs_tezi_run_json and rootfs_tezi_run_distro_json, this ensures the image size has been written to the file when the later functions run. Signed-off-by: Ming Liu <liu.ming50@gmail.com> [use _append for tar commands] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04meta: drop True option to getVar callsMing Liu
Search made with the following regex: getVar ?\((.*), True\), this is to be consistent with OE. This is follows the fix upstream in oe-core commit 7c552996: [ meta: remove True option to getVar calls ] Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: add option to ignore kernel and device treeLuka Pivk
In some cases kernel and device tree may be a part of rootfs and in this case we do not want to install anything related to kernel or device tree. Use TEZI_KERNEL_IMAGETYPE = "" to exclude kernel Use TEZI_KERNEL_DEVICETREE = "" to exclude device tree Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
2019-03-04image_type_tezi.bbclass: drop image_types inheritanceMing Liu
It's redundant to inherit image_types bbclass, it's already done in image.bbclass. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04tezi-metadata: inherit nopackagesMing Liu
A main package being empty without setting ALLOW_EMPTY can lead to errors in populate_sdk task. If it does not provide any packages then we should let it inherit nopackages bbclass. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: make eMMC the default flash typeStefan Agner
Before the latest changes eMMC was considered the default flash type and therefor not specified for all machines. Make sure that image_type_tezi.bbclass is backward compatible by setting TORADEX_FLASH_TYPE to "emmc" by default. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: implement teziimg for distro bootStefan Agner
Implement a separate teziimg class which support distro boot. This image format uses a layout which allows distro boot on block devices as well as raw NAND devices. It also support multi flash type images by creating two image.json files for each flash type. It requires machine specific meta data e.g.: TORADEX_PRODUCT_IDS = "0032 0033 0039 0041" TORADEX_PRODUCT_IDS[0032] = "imx7s-colibri-eval-v3.dtb,rawnand" TORADEX_PRODUCT_IDS[0033] = "imx7d-colibri-eval-v3.dtb,rawnand" TORADEX_PRODUCT_IDS[0039] = "imx7d-colibri-emmc-eval-v3.dtb,emmc" TORADEX_PRODUCT_IDS[0041] = "imx7d-colibri-eval-v3.dtb,rawnand" TORADEX_FLASH_TYPE = "rawnand emmc" UBOOT_BINARY_TEZI_EMMC = "u-boot.imx-sd" UBOOT_BINARY_TEZI_RAWNAND = "u-boot.imx-nd" UBOOT_ENV_TEZI_EMMC = "uEnv-sd.txt" UBOOT_ENV_TEZI_RAWNAND = "uEnv-nd.txt" Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: use $() instead of backticksStefan Agner
Prefer the $() syntax, it is POSIX and allows nesting. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: allow per flash type U-BootStefan Agner
Allow to use a different U-Boot binary/environment file per flash type. This prepares for a multi flash type image. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: allow custom rootfs image type and labelStefan Agner
Add variables to customize which rootfs image type we use in the Toradex Easy Installer image. Also allow custom root filesystem label. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: generate image.json per flash typeStefan Agner
This prepares support for images with multiple flash types. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: improve message during Tezi image buildStefan Agner
The whole tarball is built as part of the the teziimg CMD. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: break tar commands into multiple linesStefan Agner
Break tar commands for better readability. No functional change. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04image_type_tezi: move bootfs size calculationStefan Agner
Create a separate function to calculate bootfs size. This allows to reuse bootfs size calculation for distro boot. Signed-off-by: Stefan Agner <stefan@agner.ch>
2019-03-04image_type_tezi: use KERNEL_DEVICETREE variable directlyStefan Agner
Now that OpenEmbedded core does not prefix dtb files names with the type of the kernel image, we can get rid of our intermediate KERNEL_DEVICETREE_FILES variable. Also the tar transformation which removed kernel type prefix is no longer necessary. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2019-03-04layer.conf: Add thud to LAYERSERIES_COMPATMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04systemd: bbappend: add kmod packageconfigMax Krummenacher
This starts a service which inserts kernel modules on boot. Updates in meta-angstrom removed this default packageconfig. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04pkg_postinst: move to the ontarget syntaxMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04systemd: forward port patchMax Krummenacher
Keywords in udevd.service.in were changed upstream. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04snapd: cleanupMax Krummenacher
Replace a bunch of += assignments with = . Put all RDEPENDS into one statement. Cleanup indent to the prefered OE 4 spaces per level. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04image_type_tezi: follow dropped kernel type prefixMax Krummenacher
The following openembedded core commit dropped prefixing the dtb file names with the type of the kernel image. 1860d9d3c62e2e94cd68a809385873ffd8270b6d kernel-devicetree.bbclass: Fix and simplify instalation of DTB files Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04Revert "xfsprogs: 4.11.0 with build time fix"Max Krummenacher
This reverts commit e03cb81023c93697fa249dbfe079fb40e9bf20b7. meta-openembedded now contains a later version. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04layer: add LAYERSERIES_COMPATMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04tdx_version: increment thud version to 3.0b1Marcel Ziswiler
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-03-04Revert "zstd: fix build being branchless"Max Krummenacher
zstd recipe was provided by angstrom, drop the bbappend with the drop of angstrom. This reverts commit 836ad70cd669393eb2a830e955a7462f40635c11.
2019-03-04image_type_tezi: address basehash/taskhash mismatchMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>