6 Commits

Author SHA1 Message Date
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
mark.yang 1de4965018 cpulimit: fix build with gcc-15
* to fix: Error occurs in gcc 15.0.1 environment.
busy.c: In function 'main':
busy.c:20:58: error: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
   20 |                 if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0)
      |                                                          ^~~~
      |                                                          |
      |                                                          void * (*)(void)
In file included from busy.c:3:
recipe-sysroot/usr/include/pthread.h:204:36: note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(void)'
  204 |                            void *(*__start_routine) (void *),
      |                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
busy.c:6:7: note: 'loop' declared here
    6 | void *loop()
      |       ^~~~

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-26 07:37:50 -07:00
Gianfranco Costamagna 29b5633993 cpulimit: add DESCRIPTION field
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Federico Briata <federicobriata@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-26 09:02:04 -07:00
Martin Jansa 099476a72f cpulimit: fix do_install with multilib
* fixes:
  DEBUG: Executing shell function do_install
  install: cannot stat 'TOPDIR/.../lib32-cpulimit/0.2-r0/git/src/lib32-cpulimit': No such file or directory
  WARNING: exit code 1 from a shell command.

* drop strange 'g...@' from SRC_URI

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-03 21:24:55 -07:00
Khem Raj ff62a99e18 cpulimit: Define -D_GNU_SOURCE
This define is needed for getting memrchr() declaration

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-23 09:55:28 -07:00
Portia bc4448f461 cpulimit: introduce support for this package
Now, cpulimit recipe is put under recipes-support. Binary will be
installed  by the recipe under /usr/sbin

         # cpulimit -h
         Usage: cpulimit [OPTIONS...] TARGET
                 OPTIONS
                 -l, --limit=N          percentage of cpu allowed from 0
to 100
(required)
                 -v, --verbose          show control statistics
                 -z, --lazy             exit if there is no target
process, or
if it dies
                 -i, --include-children limit also the children
processes
                 -h, --help             display this help and exit
                 TARGET must be exactly one of these:
                 -p, --pid=N            pid of the process (implies -z)
                 -e, --exe=FILE         name of the executable program
file or
path name
                 COMMAND [ARGS]         run this command and limit it
(implies
-z)

                 Report bugs to <marlon...@hotmail.com>.

Signed-off-by: Bassem Boubaker <bassem.boubaker@actia.fr>
[ Changes by Portia
 - Fix build issue, deprecated and missing includes
 - Add branch to git repo in SRC_URI
 - Update LICENSE to GPL-2.0-or-later
]
Signed-off-by: Portia <stephensportia@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-02 00:48:27 -07:00