blob: 0dc3e6e62487612c06543016515d0ded3a1f3cfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
SUMMARY = "GENIVI Persistence Client Library"
DESCRIPTION = "The Persistence Management is responsible to handle \
persistent data, including all data read and modified often during \
a lifetime of an infotainment system."
HOMEPAGE = "http://projects.genivi.org/persistence-client-library"
BUGTRACKER = "http://bugs.genivi.org/enter_bug.cgi?product=Persistence"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=6161c6840f21a000e9b52af81d2ca823"
DEPENDS = "dlt-daemon dbus libcheck persistence-common-object"
SRC_URI = " \
git://git.projects.genivi.org/persistence/persistence-client-library.git;tag=v${PV} \
file://0001-libpers_common.so-extension-fix-for-EGL.patch \
file://0001-fix-exec-path.patch \
"
S = "${WORKDIR}/git"
inherit pkgconfig autotools-brokensep
PARALLEL_MAKE = ""
FILES_${PN} = " \
${libdir}/*.so \
${libdir}/*.so.* \
${sysconfdir} \
"
do_install_append() {
install -d ${D}${sysconfdir}/dbus-1/system.d
install -m 0644 ${S}/config/org.genivi.persistence.admin.conf ${D}${sysconfdir}/dbus-1/system.d
}
RDEPENDS_${PN} = "node-state-manager"
#
# for test
#
EXTRA_OECONF += "--enable-tests"
do_install_append() {
install -d ${D}${bindir}
install -m 0755 ${S}/test/.libs/persistence_client_library_test ${D}${bindir}
#install -m 0755 ${S}/test/.libs/persistence_pfs_test ${D}${bindir}
#install -m 0755 ${S}/test/pers_pfs_test_starter.sh ${D}${bindir}
install -d ${D}/Data
install -m 0644 ${S}/test/data/PAS_data.tar.gz ${D}/Data/Data.tar.gz
#install -d ${D}/lib/systemd/system/
#install -m 0755 ${S}/test/persistence-pfs-test-start.service ${D}/lib/systemd/system/
}
PACKAGES += "${PN}-testenv"
RDEPENDS_${PN} += "${PN}-testenv"
#inherit systemd
#
#SYSTEMD_PACKAGES = "${PN}-testenv"
#SYSTEMD_SERVICE_${PN}-testenv = "persistence-pfs-test-start.service"
#SYSTEMD_AUTO_ENABLE = "disable"
FILES_${PN}-testenv = " \
${bindir}/persistence_client_library_test \
/Data/Data.tar.gz \
"
# ${bindir}/persistence_pfs_test \
# ${bindir}/pers_pfs_test_starter.sh \
#
|