Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit fa22782

Browse files
mirzakgunnarx
authored andcommitted
hmi: move application data to /usr
Could not resist to do some cleaning. [GDP-611] Prepare system for libostree Signed-off-by: Mirza Krak <mirza.krak@endian.se>
1 parent 617d455 commit fa22782

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
lines changed
Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,44 @@
1-
SRC_URI = "git://github.com/GENIVI/hmi-layout-gdp.git"
2-
SRCREV = "86f5a365a0b1c4cd96a6344db7137a0440c11f7b"
1+
DESCRIPTION = "Reference HMI application for GDP"
2+
HOMEPAGE = "https://github.com/GENIVI/hmi-layout-gdp"
3+
34
LICENSE = "MPL-2.0"
45
LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
56

6-
DEPENDS = "dbus-c++ systemd wayland-ivi-extension qtquick1 qtdeclarative qtbase ivi-logging"
7+
SRC_URI = "\
8+
git://github.com/GENIVI/hmi-layout-gdp.git \
9+
file://gdp-new-hmi.service \
10+
"
711

8-
RDEPENDS_${PN} += "qtbase qtsvg"
12+
SRCREV = "95aadfb33d95e14030585c3fa2e1afb0e7b743c8"
913

1014
S = "${WORKDIR}/git"
1115

12-
inherit autotools pkgconfig qmake5 systemd
16+
DEPENDS = "\
17+
dbus-c++ \
18+
ivi-logging \
19+
qtbase \
20+
qtdeclarative \
21+
qtquick1 \
22+
systemd \
23+
wayland-ivi-extension \
24+
"
1325

14-
SYSTEMD_AUTO_ENABLE = "enable"
26+
RDEPENDS_${PN} = "qtbase qtsvg"
1527

16-
SRC_URI_append ="\
17-
file://gdp-new-hmi.service \
18-
"
19-
20-
FILES_${PN} += "\
21-
${libdir}/* \
22-
/opt/gdp-hmi/bin/gdp-hmi \
23-
/usr/share/applications/* \
24-
${systemd_unitdir}/* \
25-
/home/* \
26-
"
28+
inherit autotools pkgconfig qmake5
2729

2830
do_install_append() {
29-
install -d ${D}${libdir}/systemd/user
30-
install -m 0444 ${WORKDIR}/gdp-new-hmi.service \
31-
${D}${libdir}/systemd/user
32-
install -d ${D}${sysconfdir}/systemd/user/default.target.wants
33-
ln -sf /usr/lib/systemd/user/gdp-new-hmi.service ${D}${sysconfdir}/systemd/user/default.target.wants/gdp-new-hmi.service
31+
install -d ${D}${systemd_user_unitdir}
32+
install -p -D ${WORKDIR}/gdp-new-hmi.service ${D}${systemd_user_unitdir}/gdp-new-hmi.service
33+
install -d ${D}${sysconfdir}/systemd/user/default.target.wants
34+
ln -sf ${systemd_user_unitdir}/gdp-new-hmi.service ${D}${sysconfdir}/systemd/user/default.target.wants
35+
36+
install -d ${D}${bindir}
37+
mv ${D}/opt/gdp-hmi/bin/gdp-hmi ${D}${bindir}/gdp-hmi
38+
rm -rf ${D}/opt
3439
}
40+
41+
FILES_${PN} += "\
42+
${libdir}/qt5/qml/com/genivi/ \
43+
${systemd_user_unitdir}/gdp-new-hmi.service \
44+
"

meta-genivi-dev/meta-genivi-dev/recipes-dev-hmi/genivi-dev-platform-hmi/gdp-new-hmi/gdp-new-hmi.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=weston.service
55

66
[Service]
77
Environment=LD_PRELOAD=/usr/lib/libEGL.so
8-
ExecStart=/opt/gdp-hmi/bin/gdp-hmi -platform wayland
8+
ExecStart=/usr/bin/gdp-hmi -platform wayland
99
Restart=always
1010
RestartSec=5
1111

0 commit comments

Comments
 (0)