diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-19 17:57:10 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-12-20 16:07:50 -0800 |
commit | 89461fecb74a9e110e4c7d6d0878e2f7f0eac1e4 (patch) | |
tree | 44e78df61dc5bd75bd1e9dd7a0b52450d76c92cc | |
parent | 5a5d2cfa1b4f98b4f369ced54c0a9d03dcda1468 (diff) | |
download | meta-openembedded-89461fecb74a9e110e4c7d6d0878e2f7f0eac1e4.tar.gz |
lockdev: Make baselib configurable
This ensures that baselib can be passed from bitbake tasks via
environment
Refresh patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/lockdev/lockdev/build.patch | 2 | ||||
-rw-r--r-- | meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch | 8 | ||||
-rw-r--r-- | meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb | 6 |
3 files changed, 9 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/lockdev/lockdev/build.patch b/meta-oe/recipes-support/lockdev/lockdev/build.patch index 6ec91d2316..f9fe48b2a6 100644 --- a/meta-oe/recipes-support/lockdev/lockdev/build.patch +++ b/meta-oe/recipes-support/lockdev/lockdev/build.patch | |||
@@ -18,7 +18,7 @@ Date: Tue Feb 9 14:56:23 2010 +0100 | |||
18 | soname = ${libname}.so.${MVER} | 18 | soname = ${libname}.so.${MVER} |
19 | 19 | ||
20 | # overwritten by caller (e.g.: debian/rules) | 20 | # overwritten by caller (e.g.: debian/rules) |
21 | @@ -72,6 +72,7 @@ install_doc: docs/lockdev.3 | 21 | @@ -73,6 +73,7 @@ install_doc: docs/lockdev.3 |
22 | install_run: ${shared} | 22 | install_run: ${shared} |
23 | install -m755 -d ${libdir} | 23 | install -m755 -d ${libdir} |
24 | install -m644 ${shared} ${libdir} | 24 | install -m644 ${shared} ${libdir} |
diff --git a/meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch b/meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch index aa8f6a4d85..aa8b0f6923 100644 --- a/meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch +++ b/meta-oe/recipes-support/lockdev/lockdev/cross_compile.patch | |||
@@ -1,14 +1,16 @@ | |||
1 | --- a/Makefile | 1 | --- a/Makefile |
2 | +++ b/Makefile | 2 | +++ b/Makefile |
3 | @@ -15,17 +15,17 @@ shared = ${libname}.${VER}.so | 3 | @@ -15,17 +15,18 @@ shared = ${libname}.${VER}.so |
4 | soname = ${libname}.so.${MVER} | 4 | soname = ${libname}.so.${MVER} |
5 | 5 | ||
6 | # overwritten by caller (e.g.: debian/rules) | 6 | # overwritten by caller (e.g.: debian/rules) |
7 | -basedir = /usr/local | 7 | -basedir = /usr/local |
8 | +basedir ?= /usr/local | 8 | +basedir ?= /usr/local |
9 | +baselib ?= lib | ||
9 | srcdir=. | 10 | srcdir=. |
10 | 11 | ||
11 | libdir = ${basedir}/lib | 12 | -libdir = ${basedir}/lib |
13 | +libdir = ${basedir}/${baselib} | ||
12 | incdir = ${basedir}/include | 14 | incdir = ${basedir}/include |
13 | mandir = ${basedir}/share/man | 15 | mandir = ${basedir}/share/man |
14 | 16 | ||
@@ -17,7 +19,7 @@ | |||
17 | -CFLAGS = -g | 19 | -CFLAGS = -g |
18 | -LDLIBS = -llockdev | 20 | -LDLIBS = -llockdev |
19 | +CC ?= gcc | 21 | +CC ?= gcc |
20 | +LCFLAGS ?= -g -O2 -fPIC -Wall -pipe -D_REENTRANT | 22 | +LCFLAGS ?= -g -O2 -fPIC -Wall -pipe -D_REENTRANT |
21 | +CFLAGS ?= -g | 23 | +CFLAGS ?= -g |
22 | +LDLIBS ?= -llockdev | 24 | +LDLIBS ?= -llockdev |
23 | 25 | ||
diff --git a/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb b/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb index 5b862bd1fe..9d8800ebde 100644 --- a/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb +++ b/meta-oe/recipes-support/lockdev/lockdev_1.0.3.bb | |||
@@ -15,15 +15,15 @@ SRC_URI[debianpatch.md5sum] = "5ef6267c42fca9145e0af006ccb6aff7" | |||
15 | SRC_URI[debianpatch.sha256sum] = "a5405c6ee5e97e45eeb1c81330a7e9f444a58bda5e6771fa30007516c115007e" | 15 | SRC_URI[debianpatch.sha256sum] = "a5405c6ee5e97e45eeb1c81330a7e9f444a58bda5e6771fa30007516c115007e" |
16 | 16 | ||
17 | inherit lib_package perlnative | 17 | inherit lib_package perlnative |
18 | export basedir="${D}${prefix}" | ||
19 | 18 | ||
20 | CFLAGS += " -D__GNU_LIBRARY__" | 19 | CFLAGS += " -D__GNU_LIBRARY__" |
21 | 20 | ||
22 | TARGET_CC_ARCH += "${LDFLAGS}" | 21 | TARGET_CC_ARCH += "${LDFLAGS}" |
23 | 22 | ||
23 | EXTRA_OEMAKE = "basedir=${D}${prefix} baselib=${baselib} LD='${CC}' LD='${CC}'" | ||
24 | do_compile() { | 24 | do_compile() { |
25 | oe_runmake basedir=${D}${prefix} LD="${CC}" LD="${CC}" shared static | 25 | oe_runmake shared static |
26 | } | 26 | } |
27 | do_install() { | 27 | do_install() { |
28 | oe_runmake DESTDIR=${D} basedir=${D}${prefix} install | 28 | oe_runmake DESTDIR=${D} install |
29 | } | 29 | } |