diff options
author | Armin Kuster <akuster808@gmail.com> | 2017-10-26 14:04:44 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-01 16:10:36 -0800 |
commit | 24e2209e321b47042b5ea76f753912a750bd722e (patch) | |
tree | 65e6452788b5f62a9823ec03f861a2e66b5eba69 /meta-oe/recipes-bsp | |
parent | ffe82e171e98cfd67e0693dcca6e4e36e45879cd (diff) | |
download | meta-openembedded-24e2209e321b47042b5ea76f753912a750bd722e.tar.gz |
cpufrequtils: move to recipes-bsp
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp')
-rw-r--r-- | meta-oe/recipes-bsp/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-bsp/cpufrequtils/cpufrequtils_008.bb | 37 |
2 files changed, 67 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch b/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch new file mode 100644 index 000000000..fb2f07f07 --- /dev/null +++ b/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | --- git.old/Makefile 2012-04-17 13:29:46.280435340 +0200 | ||
2 | +++ git/Makefile 2012-04-17 13:31:13.664433470 +0200 | ||
3 | @@ -77,17 +77,7 @@ INSTALL_PROGRAM = ${INSTALL} | ||
4 | INSTALL_DATA = ${INSTALL} -m 644 | ||
5 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | ||
6 | |||
7 | -# If you are running a cross compiler, you may want to set this | ||
8 | -# to something more interesting, like "arm-linux-". If you want | ||
9 | -# to compile vs uClibc, that can be done here as well. | ||
10 | -CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- | ||
11 | -CC = $(CROSS)gcc | ||
12 | -LD = $(CROSS)gcc | ||
13 | -AR = $(CROSS)ar | ||
14 | -STRIP = $(CROSS)strip | ||
15 | -RANLIB = $(CROSS)ranlib | ||
16 | -HOSTCC = gcc | ||
17 | - | ||
18 | +HOSTCC = $(BUILD_CC) | ||
19 | |||
20 | # Now we set up the build system | ||
21 | # | ||
22 | @@ -95,7 +85,7 @@ HOSTCC = gcc | ||
23 | # set up PWD so that older versions of make will work with our build. | ||
24 | PWD = $(shell pwd) | ||
25 | |||
26 | -export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS | ||
27 | +export CFLAGS LDFLAGS LIB_OBJS | ||
28 | |||
29 | # check if compiler option is supported | ||
30 | cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;} | ||
diff --git a/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils_008.bb b/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils_008.bb new file mode 100644 index 000000000..88fcc0200 --- /dev/null +++ b/meta-oe/recipes-bsp/cpufrequtils/cpufrequtils_008.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created" | ||
2 | |||
3 | inherit gettext | ||
4 | |||
5 | DEPENDS = "libtool-cross" | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
9 | |||
10 | SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0" | ||
11 | # SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git | ||
12 | |||
13 | SRC_URI = "git://github.com/emagii/cpufrequtils.git \ | ||
14 | file://0001-dont-unset-cflags.patch \ | ||
15 | " | ||
16 | |||
17 | EXTRA_OEMAKE_append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} " | ||
18 | |||
19 | PR = "r5" | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
24 | |||
25 | EXTRA_OEMAKE = "V=1 CROSS=${TARGET_PREFIX} LIBTOOL='${HOST_SYS}-libtool --tag cc' STRIPCMD=echo 'CP=cp'" | ||
26 | |||
27 | do_compile() { | ||
28 | oe_runmake | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | oe_runmake -e install DESTDIR=${D} | ||
33 | rm -f ${D}${libdir}/libcpufreq.so.0 ${D}${libdir}/libcpufreq.so | ||
34 | ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so.0 | ||
35 | ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so | ||
36 | } | ||
37 | |||