1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-05-07 03:49:20 +00:00
Commit Graph

50 Commits

Author SHA1 Message Date
Luca Ceresoli c9df259df4 Fix "basehash value changed" errors and BB_NUMBER_THREADS usage
Changing BB_NUMBER_THREADS between successive builds causes a "basehash
value changed" error. Additionally, using BB_NUMBER_THREADS to pass a
number of processes to run to xdc is wrong: PARALLEL_MAKE is the correct
variable to use.

Fix both problems by using oe.utils.parallel_make_argument() to obtain the
number of processes to run from PARALLEL_MAKE.

Fixes:

  ERROR: When reparsing .../meta-ti/recipes-ti/ipc/ti-ipc-rtos_git.bb.do_configure, the basehash value changed from 63897a188012cedde03f756b5dbbfa70 to 13b80bf4f4327c367bd201eb4aa32ad7. The metadata is not deterministic and this needs to be fixed.
  ERROR: When reparsing .../meta-ti/recipes-ti/ipc/ti-ipc-rtos_git.bb.do_compile, the basehash value changed from 2fb59a7db2a2f69d2c25c06c1b6a4245 to 314c664cc040afae2800fcc378dd9ae0. The metadata is not deterministic and this needs to be fixed.

Steps to reproduce:

  BB_NUMBER_THREADS="3" bitbake ti-ipc-rtos ti-ipc-examples-linux
  BB_NUMBER_THREADS="4" bitbake -c cleansstate osal-rtos
  BB_NUMBER_THREADS="5" bitbake ti-ipc-rtos ti-ipc-examples-linux

Reported here: https://e2e.ti.com/support/processors/f/791/p/825142/3059419
Reported-by: Matthew McKee (e-mail unknown)
Suggested-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2019-12-06 22:38:10 +00:00
Jacob Stiffler d1ad0605c4 ti-pdk-fetch: add class for common pdk sources
Recently individual components and LLD sources have been combined
into a single PDK repo. Use this class to specify the common source.
Also use this class to keep the sources separate from each other when
building. This keeps the build identical to previous recipes while
keeping control on interdependencies.

Similar to gcc-source, use the ti-pdk-source recipe to unpack the
sources into a "work-shared" area. Then hard-link only the necessary
files into a recipe's WORKDIR.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2019-12-06 22:38:10 +00:00
Mahesh Radhakrishnan 35a6a9f436 ti-pdk.bbclass:j7-evm.conf: Correcting the core list for j7-evm (mpu2/3_x to mcu2/3_x)
Correcting the corelist. There is no mpu2_x or mpu3_x instead they
should be  mcu2_x/mcu3_x which is present in j7-evm

Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2019-08-30 16:22:35 +00:00
Mahesh Radhakrishnan 712ae7ed03 ti-pdk-bbclass: Defining dependants for j7-evm, updated the default core list
Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2019-08-16 18:26:12 +00:00
Mahesh Radhakrishnan f7659b553a ti-pdk-bbclass: Using machine name as k3 instead of am65xx
Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-10-01 03:19:15 +00:00
Djordje Senicic 722c1e6d93 ti-pdk-class: Include EVE toolchain path, as needed by ti-pdk-build-rtos for some SoCs
Signed-off-by: Djordje Senicic <x0157990@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-09-11 23:58:04 +00:00
Sam Nelson ea70f91888 ti-pdk: Add tool chain dependencies for am65xx platform
Adds the dependency on toolchain needed for A53 and R5 cores

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-08-24 20:08:41 +00:00
Denys Dmytriyenko a5ecd90543 meta-ti: cleanup use of d.getVar()
1. drop use of True as second parameter, which is default, to align with master
2. there were instances of incorrectly passing 'd' as second parameter from
previous conversion from bb.data.getVar() usage

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-07-10 18:39:09 +00:00
Joshua Watt bd3bd8632e ti-pdk: Allow Doxygen generation to be optional
Users can choose to completely disable doxygen generation in pdk recipes
by setting TI_PDK_DOXYGEN_SUPPORT = "0" in local.conf

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2018-02-26 19:43:00 -05:00
Mertz, Timothy de8bb5892c ti-xdctools: extend to native and nativesdk
ti-xdctools should be a native recipe as it more accurately reflects how
it is supposed to be used. In addition, this allows it to be built as
nativesdk and included in SDK image tools

Signed-off-by: "Mertz, Timothy" <timothy.mertz@garmin.com>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Acked-by: Jacob Stiffler <j-stiffler@ti.com>
2017-12-21 23:11:55 -05:00
Denys Dmytriyenko f3ae0baba8 ti-pdk.bbclass: depend on doxygen native for documentation
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-12-19 13:42:40 -05:00
Jacob Stiffler 4c28ce3d85 ti-pdk: clean the sources during the configure task
* For the XDCMAKE recipes, a clean was already occuring udring the
  compile task.
* Move the clean to the configure task to more closely match the
  base.bbclass.
* As the non XDCMAKE recipes generate dep files, add a clean in
  configure for when dependencies have changed.
* Use oe_runmake to share options between "make release" and
  "make clean".
* There appears to be an issue with parallel builds using the
  ti-pdk-build framework, so unset PARALLEL_MAKE.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-10-25 08:33:58 -04:00
Hongmei Gou 195895717b ti-pdk.bbclass: add dependency on ti-cgt-pru-native
Signed-off-by: Hongmei Gou <a0271529@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-10-02 16:19:14 -04:00
Mahesh Radhakrishnan 1c924c003f ti-pdk-bbclass: Fix for building pru firmware
Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-09-01 12:51:09 -04:00
Mahesh Radhakrishnan d8c22a9503 ti-pdk: Update tool paths for omapl1 & update cores for ti33x & ti43x
Signed-off-by: Mahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-07-12 14:08:59 -04:00
Jacob Stiffler 5375c16c91 ti-pdk: limit the set of cores to build
* Use LIMIT_CORES to enable only the cores with available toolchains.
* Add new variables which will allow recipes to fully configure the
  options provided to make.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-06-11 18:36:19 -04:00
Jacob Stiffler cda2ad7240 ti-pdk: clean up variables by adding TI_PDK_ prefix
* Add TI_PDK_ prefix to variables which may be set by recipes to
  stress that they are used to configure the ti-pdk class.
* Deprecate TI_PDK_XDCARGS in favor of TI_PDK_LIMIT_SOCS as both are
  used to define a list of SOCs.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Cc: Justin Sobota <jsobota@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-06-11 18:36:14 -04:00
Justin Sobota e12f3832d1 Resolve host contamination warnings
Signed-off-by: Justin Sobota <jsobota@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-05-01 18:29:50 -04:00
Karthik Ramanan 86dd71f732 Remove CCS dependencies for all components
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2017-04-27 20:18:42 -04:00
Justin Sobota de355a34c4 ti-pdk: Add makefile support to ti-pdk.bbclass for RTOS components
Signed-off-by: Justin Sobota <jsobota@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2016-06-29 17:10:45 -04:00
Jacob Stiffler a83eb9039e ti-pdk.bbclass: Add class for creating RTOS PDK components
Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2016-01-27 15:53:49 -05:00
Denys Dmytriyenko 2b524321a2 sdcard_image: remove deprecated class
This class has been deprecated for a while. The recommended replacement is
to use Yocto Project's new "wic" tool.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2014-01-29 16:06:58 -05:00
Koen Kooi 7b8b1fe4b8 sdcard_image bbclass: make ext4 the default
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2012-05-10 15:28:38 -04:00
Joel A Fernandes 3c4c1e3013 sdcard_image: Add image version info to root fs
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-15 16:34:01 +01:00
Koen Kooi eceb8e05b9 sdcard_image bbclass: run genex2fs directly on the loop device
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-14 10:34:04 +01:00
Peter A. Bigot 2cd35f07bf sdcard_image: add dependency on native ext2 utilities
Signed-off-by: Peter A. Bigot <bigotp@acm.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-09 20:25:02 +01:00
Koen Kooi 4402447bb4 sdcard_image bbclass: reinstate vfat copy of uImage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08 13:34:12 +01:00
Koen Kooi 116a42e504 sdcard_image bbclass: switch to vfat layout
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08 13:23:16 +01:00
Koen Kooi d51ebcf4b4 sdcard_image bbclass: add proper ext4 support, fix inode calculations, etc, etc
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-07 18:07:55 +01:00
Koen Kooi ded88c51bc sdcard_image bbclass: add ext4 support note
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-07 10:19:59 +01:00
Koen Kooi 87abedf129 sdcard_image bbclass: increas inode count again
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-05 15:18:04 +01:00
Koen Kooi 7ea2cf4849 sdcard_image bbclass: make payload errors non-fatal 2011-11-04 15:03:55 +01:00
Koen Kooi 6ce2516808 sdcard_image bbclass: fix payload logic
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 13:51:12 +01:00
Koen Kooi 05d91d63dd sdcard_image bbclass: add support to copy over payload from rootfs to vfat
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:42:25 +01:00
Koen Kooi e6fe491161 sdcard_image bbclass: add timestamp to image filename
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:38:41 +01:00
Jason Kridner 7aff70deab sdimage_class: eliminate 2GB exception for BeagleBone
Gerald has said his supply of 2GB SD cards for BeagleBone has
gone away, so we are back to 4GB cards.  No more need for this
exeption:

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 08:16:36 +01:00
Koen Kooi c8a6d183f3 sdcard_image bbclass: raise number of inodes to avoid out of space errors
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-01 14:56:10 +01:00
Koen Kooi ff69dee7b8 Revert "sdcard_image: align partitions with flash pages"
This has 2 problems:

1) | Warning: partition 1 does not end at a cylinder boundary
   |
   | sfdisk: I don't like these partitions - nothing changed.

2) CCCCCCCCC on the beaglebone, the ROM code doesn't accept it after fixing 1) with --force

This reverts commit ed09701ebe.
2011-11-01 07:17:17 +01:00
Jason Kridner ed09701ebe sdcard_image: align partitions with flash pages
* Align partitions for SD card performance/wear optimization. For more
details, please see:
http://sakoman.com/OMAP/a-script-for-partitioningformatting-a-bootable-sdmicrosd-card.html

# Modifications to align partitioning by Steve Sakoman
# based on work by Arnd Bergmann
# Align partitions for SD card performance/wear optimization
# FAT partition size is 131072 sectors (64MB) less:
#       MBR - 1 sector
#       padding to align to the page size of the underlying flash - 127 sectors
# so we start the first partition at sector 128 and make it 131072 - 128 = 130944 sectors
# second partition starts at 131072 and continues to fill the card

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2011-10-27 21:57:52 -04:00
Koen Kooi a3b48d3291 sdcard_image bbclass: reinstate uEnv.txt copying
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-24 08:37:17 +02:00
Koen Kooi 6743f427e7 sdcard image bbclass: don't copy uEnv.txt for the time being
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-22 14:58:23 +02:00
Koen Kooi 68ad65aab3 sdcard_image bblass: set beaglebone VFAT label to 'BEAGLE_BONE' 2011-10-20 09:22:16 +02:00
Joel A Fernandes 9c078a61ed sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
Fixed a bug where the U-boot environment files are not copied to the boot partition if they
were installed in /boot by other recipes.

We should copy the uEnv.txt and user.txt always without placing a condition for the presence
of anything else in /boot. This is the original behavior of sdcard_image before the recent
wave of changes to it.

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-20 09:19:40 +02:00
Koen Kooi 9c6d6d9490 sdcard_image bbclass: make VFAT partition name overridable
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-18 18:22:02 +02:00
Koen Kooi 99ce37e4a9 sdcard_image bbclass: default to 4GiB, but use 2GiB for beaglebone
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-15 13:48:24 +02:00
Koen Kooi a3226f913d sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-14 12:37:10 +02:00
Koen Kooi 244e839892 sdcard_image bblass: all machines load from ext2/ext3 now, remove uImage copying
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-13 12:38:17 +02:00
Koen Kooi c26aa8ee7d sdcard_image bbclass: make it work with older losetup versions among other things
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-08 21:08:03 +02:00
Jason Kridner 4ab77fb919 classes: sdcardimage: move to 4GiB image
The card image size should be a multiple of clusters and should
reserve space smaller than the card.

Signed-off-by: Jason Kridner <jdk@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-08 21:07:52 +02:00
Joel A Fernandes fa4d0789fa sdcard_image: Helper class to create SD Card images
Tested with 3 different beagleboard image release builds so far

For ideas, referenced Narcissus image builder written by Koen Kooi <k-kooi@ti.com>

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-09-25 16:43:25 +02:00