Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meta-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
meta-nemo
Commits
a9b0ec9a
Commit
a9b0ec9a
authored
Jan 24, 2016
by
Florent Revest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes and install usb-moded to dynamicaly launch adbd
parent
7b8d6c02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
asteroid-image.bbclass
classes/asteroid-image.bbclass
+3
-2
usb-moded.ini
recipes-nemomobile/usb-moded/usb-moded/usb-moded.ini
+8
-0
usb-moded_git.bb
recipes-nemomobile/usb-moded/usb-moded_git.bb
+18
-5
No files found.
classes/asteroid-image.bbclass
View file @
a9b0ec9a
...
@@ -6,10 +6,11 @@ IMAGE_FEATURES += "splash package-management"
...
@@ -6,10 +6,11 @@ IMAGE_FEATURES += "splash package-management"
IMAGE_INSTALL += " \
IMAGE_INSTALL += " \
base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \
base-files base-passwd shadow systemd tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \
connman bluez5 pulseaudio ppp dropbear qtbase-fonts qtbase-fonts-ttf-dejavu qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents \
connman bluez5 pulseaudio ppp dropbear qtbase-fonts qtbase-fonts-ttf-dejavu qtbase-plugins statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents
usb-moded
\
asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings"
asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings"
EXTRA_USERS_PARAMS = "groupadd system; \
EXTRA_USERS_PARAMS = "groupadd system; \
useradd -p '' -G 'video,system' ceres"
groupadd statefs; \
useradd -p '' -G 'video,system,statefs' ceres"
PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"
PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"
recipes-nemomobile/usb-moded/usb-moded/usb-moded.ini
0 → 100644
View file @
a9b0ec9a
[mountpoints]
mount
=
/dev/sdcard
[altmount]
mount
=
/run/user/1000/media/sdcard
[usbmode]
mode
=
adb_mode
recipes-nemomobile/usb-moded/usb-moded_git.bb
View file @
a9b0ec9a
SUMMARY = "This is a daemon which can hanlde setting different usb profiles with gadget drivers"
SUMMARY = "This is a daemon which can hanlde setting different usb profiles with gadget drivers"
HOMEPAGE = "https://git
.merproject.org/mer-core
/usb-moded"
HOMEPAGE = "https://git
hub.com/philippedeswert
/usb-moded"
LICENSE = "LGPL-2.1+"
LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5f30f0716dfdd0d91eb439ebec522ec2"
SRC_URI = "git://git.merproject.org/mer-core/usb-moded.git;protocol=https"
SRC_URI = "git://github.com/philippedeswert/usb-moded.git;protocol=https \
SRCREV = "eadebc6ce7230e2789ff0999a8b15a49a4aceaf3"
file://usb-moded.ini"
SRCREV = "eecb0b4c4347f8447bc78c562f4ac5fcee97aedb"
PR = "r1"
PR = "r1"
PV = "+git${SRCREV}"
PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
S = "${WORKDIR}/git"
...
@@ -12,11 +13,13 @@ S = "${WORKDIR}/git"
...
@@ -12,11 +13,13 @@ S = "${WORKDIR}/git"
inherit autotools pkgconfig
inherit autotools pkgconfig
B = "${WORKDIR}/git"
B = "${WORKDIR}/git"
EXTRA_OECONF="--enable-systemd "
EXTRA_OECONF="--enable-systemd
--enable-debug --enable-app-sync
"
DEPENDS += " dbus dbus-glib glib-2.0 udev kmod systemd "
DEPENDS += " dbus dbus-glib glib-2.0 udev kmod systemd "
do_configure_prepend() {
do_configure_prepend() {
sed -i "s@systemd-daemon@systemd@" configure.ac
sed -i "s@systemd-daemon@systemd@" configure.ac
sed -i "s@shell@ceres@g" systemd/adbd-functionfs.sh
sed -i "s@adbd.service@android-tools-adbd.service@" ${S}/config/run-diag/qa-diagnostic.ini ${S}/config/run/adb-diag.ini ${S}/config/run/adb-startserver.ini ${S}/systemd/adbd-prepare.service
}
}
do_install_append() {
do_install_append() {
...
@@ -46,11 +49,21 @@ do_install_append() {
...
@@ -46,11 +49,21 @@ do_install_append() {
install -d ${D}/lib/systemd/system/multi-user.target.wants/
install -d ${D}/lib/systemd/system/multi-user.target.wants/
install -m 644 -D systemd/usb-moded.service ${D}/lib/systemd/system/usb-moded.service
install -m 644 -D systemd/usb-moded.service ${D}/lib/systemd/system/usb-moded.service
ln -s ../usb-moded.service ${D}/lib/systemd/system/multi-user.target.wants/usb-moded.service
ln -s ../usb-moded.service ${D}/lib/systemd/system/multi-user.target.wants/usb-moded.service
install -m 644 -D systemd/usb-moded-args.conf ${D}/var/lib/environment/usb-moded/usb-moded-args.conf
# TODO: we currently disable the rescue mode
# install -m 644 -D systemd/usb-moded-args.conf ${D}/var/lib/environment/usb-moded/usb-moded-args.conf
install -m 755 -D systemd/turn-usb-rescue-mode-off ${D}/usr/bin/turn-usb-rescue-mode-off
install -m 755 -D systemd/turn-usb-rescue-mode-off ${D}/usr/bin/turn-usb-rescue-mode-off
install -m 644 -D systemd/usb-rescue-mode-off.service ${D}/lib/systemd/system/usb-rescue-mode-off.service
install -m 644 -D systemd/usb-rescue-mode-off.service ${D}/lib/systemd/system/usb-rescue-mode-off.service
install -m 644 -D systemd/usb-rescue-mode-off.service ${D}/lib/systemd/system/multi-user.target.wants/usb-rescue-mode-off.service
install -m 644 -D systemd/usb-rescue-mode-off.service ${D}/lib/systemd/system/multi-user.target.wants/usb-rescue-mode-off.service
install -m 644 -D systemd/usb-moded.conf ${D}/etc/tmpfiles.d/usb-moded.conf
install -m 644 -D systemd/usb-moded.conf ${D}/etc/tmpfiles.d/usb-moded.conf
install -m 755 -D systemd/adbd-functionfs.sh ${D}/usr/sbin/adbd-functionfs.sh
install -m 644 -D systemd/adbd-prepare.service ${D}/lib/systemd/system/adbd-prepare.service
install -m 644 ${WORKDIR}/usb-moded.ini ${D}/etc/usb-moded/usb-moded.ini
# Remove problematic ini files
rm ${D}/etc/usb-moded/run/udhcpd-connection-sharing.ini ${D}/etc/usb-moded/run/udhcpd-developer-mode.ini ${D}/etc/usb-moded/run/udhcpd-adb-mode.ini ${D}/etc/usb-moded/run/vfat.ini ${D}/etc/usb-moded/run/mtp.ini
}
}
FILES_${PN} += " /lib/systemd/system "
FILES_${PN} += " /lib/systemd/system "
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment