Commit 2519fe2e authored by Eetu's avatar Eetu

[NemoMobile] Separate from meta-asteroid base

parent b99751b4
#
# This class is used to create Android device compatible boot.img files with kernel and initrd using abootimg
#
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
ABOOTIMG_ARGS ?= ""
do_compile[depends] += "initramfs-android-image:do_image_complete"
DEPENDS += "abootimg-native"
do_compile_append() {
abootimg --create ${B}/boot.img \
-k ${B}/${KERNEL_OUTPUT} \
-r ${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz \
${ABOOTIMG_ARGS}
}
do_deploy_append() {
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_LINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
do_install_append() {
install -d ${D}/${KERNEL_IMAGEDEST}
install -m 0644 ${B}/boot.img ${D}/${KERNEL_IMAGEDEST}
}
pkg_postinst_ontarget_${KERNEL_PACKAGE_NAME}-image_append () {
if [ ! -e /boot/boot.img ] ; then
# if the boot image is not available here something went wrong and we don't
# continue with anything that can be dangerous
exit 1
fi
BOOT_PARTITION_NAMES="LNX boot KERNEL"
for i in $BOOT_PARTITION_NAMES; do
path=$(find /dev -name "*$i*"|grep disk| head -n 1)
[ -n "$path" ] && break
done
if [ -z "$path" ] ; then
echo "Boot partition does not exist!"
exit 1
fi
echo "Flashing the new kernel /boot/boot.img to $path"
dd if=/boot/boot.img of=$path
}
FILES_${KERNEL_PACKAGE_NAME}-image += "/${KERNEL_IMAGEDEST}/boot.img"
inherit core-image
inherit extrausers
LICENSE = "GPL-2.0"
IMAGE_FEATURES += "package-management debug-tweaks"
IMAGE_INSTALL += " \
base-files base-passwd systemd busybox iproute2 connman pam-plugin-loginuid bluez5 pulseaudio-server openssh-sshd openssh-sftp-server openssh-scp statefs dsme mce ngfd timed sensorfw android-init mapplauncherd-booster-qtcomponents usb-moded ofono \
supported-languages asteroid-launcher asteroid-calculator asteroid-calendar asteroid-stopwatch asteroid-settings asteroid-timer asteroid-alarmclock asteroid-weather asteroid-music asteroid-btsyncd"
EXTRA_USERS_PARAMS = "groupadd system; \
groupadd statefs; \
groupadd gps; \
groupadd -f -g 1024 mtp; \
useradd -p '' -G 'audio,video,system,gps,statefs,mtp' ceres"
IMAGE_OVERHEAD_FACTOR = "1.0"
IMAGE_ROOTFS_EXTRA_SPACE = "262144"
#
# This class is used to create Android device compatible boot.img files with kernel and initrd using mkboot
#
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
do_compile[depends] += "initramfs-android-image:do_image_complete"
DEPENDS += "mkbootimg-tools-native"
do_compile_append() {
cd ${B}
cp ${WORKDIR}/img_info .
sed -i "s@%%KERNEL%%@${B}/${KERNEL_OUTPUT}@" img_info
sed -i "s@%%KERNEL_SIZE%%@$(stat --printf="%s" ${B}/${KERNEL_OUTPUT})@" img_info
sed -i "s@%%RAMDISK%%@${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz@" img_info
sed -i "s@%%RAMDISK_SIZE%%@$(stat --printf="%s" ${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz)@" img_info
mkboot . boot.img || { echo "mkboot failed"; exit 1; }
}
do_deploy_append() {
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_LINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
do_install_append() {
install -d ${D}/${KERNEL_IMAGEDEST}
install -m 0644 ${B}/boot.img ${D}/${KERNEL_IMAGEDEST}
}
pkg_postinst_ontarget_${KERNEL_PACKAGE_NAME}-image_append () {
if [ ! -e /boot/boot.img ] ; then
# if the boot image is not available here something went wrong and we don't
# continue with anything that can be dangerous
exit 1
fi
BOOT_PARTITION_NAMES="LNX boot KERNEL"
for i in $BOOT_PARTITION_NAMES; do
path=$(find /dev -name "*$i*"|grep disk| head -n 1)
[ -n "$path" ] && break
done
if [ -z "$path" ] ; then
echo "Boot partition does not exist!"
exit 1
fi
echo "Flashing the new kernel /boot/boot.img to $path"
dd if=/boot/boot.img of=$path
}
FILES_${KERNEL_PACKAGE_NAME}-image += "/${KERNEL_IMAGEDEST}/boot.img"
#
# This class is used to create Android device compatible boot.img files with kernel and initrd using mkbootimg
#
MKBOOTIMG_ARGS ?= ""
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
do_compile[depends] += "initramfs-android-image:do_image_complete"
DEPENDS += "mkbootimg-tools-native"
do_compile_append() {
mkbootimg -o ${B}/boot.img \
--kernel ${KERNEL_OUTPUT} \
--ramdisk ${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz \
${MKBOOTIMG_ARGS}
}
do_deploy_append() {
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_LINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
do_install_append() {
install -d ${D}/${KERNEL_IMAGEDEST}
install -m 0644 ${B}/boot.img ${D}/${KERNEL_IMAGEDEST}
}
pkg_postinst_ontarget_${KERNEL_PACKAGE_NAME}-image_append () {
if [ ! -e /boot/boot.img ] ; then
# if the boot image is not available here something went wrong and we don't
# continue with anything that can be dangerous
exit 1
fi
BOOT_PARTITION_NAMES="LNX boot KERNEL"
for i in $BOOT_PARTITION_NAMES; do
path=$(find /dev -name "*$i*"|grep disk| head -n 1)
[ -n "$path" ] && break
done
if [ -z "$path" ] ; then
echo "Boot partition does not exist!"
exit 1
fi
echo "Flashing the new kernel /boot/boot.img to $path"
dd if=/boot/boot.img of=$path
}
FILES_${KERNEL_PACKAGE_NAME}-image += "/${KERNEL_IMAGEDEST}/boot.img"
inherit core-image
inherit extrausers
inherit populate_sdk_qt5
IMAGE_FEATURES += "ssh-server-openssh package-management debug-tweaks "
SDKIMAGE_FEATURES = "dev-pkgs doc-pkgs package-management"
EXTRA_USERS_PARAMS = "groupadd system; \
groupadd statefs; \
groupadd gps; \
groupadd -f -g 1024 mtp; \
useradd -p '' -G 'audio,video,system,gps,statefs,mtp,input' nemo"
PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"
IMAGE_INSTALL += " \
base-files base-passwd shadow systemd iproute2 tzdata coreutils bash file findutils gawk grep procps psmisc sed util-linux sudo module-init-tools less tar gzip bzip2 \
connman bluez5 pulseaudio ppp qtbase-plugins statefs dsme mce ngfd timed mapplauncherd-booster-qtcomponents qtmultimedia qtfeedback sensorfw \
qtbase qtquickcontrols-qmlplugins qtdeclarative-qmlplugins glacier-home usb-moded gdb strace openssh-sshd openssh-sftp-server openssh-scp libconnman-qt5-qmlplugins \
pam-plugin-loginuid udev jpeg glacier-settings nemo-qml-plugin-contextkit udev-extraconf qtdeclarative-tools \
literm glacier-camera qtvirtualkeyboard packagegroup-qt5-qtcreator-debug "
IMAGE_OVERHEAD_FACTOR = "1.4"
IMAGE_ROOTFS_EXTRA_SPACE = "562144"
inherit core-image
inherit extrausers
inherit populate_sdk populate_sdk_qt5
IMAGE_FEATURES += "ssh-server-openssh package-management"
SDKIMAGE_FEATURES = "dev-pkgs doc-pkgs dbg-pkgs package-management"
IMAGE_INSTALL += " \
base-files base-passwd systemd busybox file findutils gawk grep sed util-linux sudo module-init-tools less nemo-qml-plugin-contextkit nemo-qml-plugin-notifications \
bluez5 iproute2 pulseaudio ppp qtbase-plugins statefs dsme mce ngfd timed sensorfw mapplauncherd-booster-qtcomponents \
qtquickcontrols-qmlplugins qtdeclarative-qmlplugins glacier-home qtmultimedia qtfeedback \
usb-moded libegl-mesa libgles2-mesa mesa openssh-sshd openssh-sftp-server openssh-scp connman libconnman-qt5-qmlplugins pam-plugin-loginuid \
glacier-settings literm qtquickcontrols2"
EXTRA_USERS_PARAMS = "groupadd system; \
groupadd statefs; \
groupadd gps; \
groupadd -f -g 1024 mtp; \
useradd -p '' -G 'audio,video,system,gps,statefs,mtp' nemo"
IMAGE_OVERHEAD_FACTOR = "1.5"
IMAGE_ROOTFS_EXTRA_SPACE = "262144"
PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"
# Copyright (C) 2017 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
MAINTAINER = "Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>"
# Distro setup
DISTRO = "nemophone"
DISTRO_NAME = "NemoMobile"
DISTRO_VERSION ?= "${DATE}-snapshot"
DISTRO_FEATURES = "pam alsa smack tpm opengl wayland systemd ipv4 bluetooth bluez5 splash package-management ${DISTRO_FEATURES_LIBC}"
DISTRO_FEATURES_remove = "usrmerge"
PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
PREFERRED_PROVIDER_udev = "systemd"
QT_DIR_NAME = ""
FILESYSTEM_PERMS_TABLES = "files/fs-perms.txt files/nemo-fs-perms.txt"
SKIP_META_GNOME_SANITY_CHECK = "1"
# Copyright (C) 2015 Florent Revest <revestflo@gmail.com> # Copyright (C) 2016 Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
...@@ -13,31 +13,28 @@ ...@@ -13,31 +13,28 @@
# with this program; if not, write to the Free Software Foundation, Inc., # with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
MAINTAINER = "Florent Revest <revestflo@gmail.com>" MAINTAINER = "Aleksi Suomalainen <aleksi.suomalainen@protonmail.com>"
# Distro setup # Distro setup
DISTRO = "asteroid" DISTRO = "nemox86"
DISTRO_NAME = "Asteroid" DISTRO_NAME = "nemox86"
DISTRO_VERSION ?= "1.0" DISTRO_VERSION ?= "${DATE}-snapshot"
DISTRO_FEATURES = "alsa bluetooth bluez5 opengl pam pulseaudio systemd usbhost usbgadget wayland wifi xattr ${DISTRO_FEATURES_LIBC}" DISTRO_FEATURES = "alsa opengl pam wayland usbgadget wifi usbhost pulseaudio systemd ipv4 bluetooth bluez5 splash package-management ${DISTRO_FEATURES_LIBC}"
PREFERRED_PROVIDER_jpeg = "libjpeg-turbo" PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native" PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native"
PREFERRED_VERSION_geoclue = "0.12.99" PREFERRED_VERSION_geoclue = "0.12.99"
FILESYSTEM_PERMS_TABLES = "files/fs-perms.txt files/nemo-fs-perms.txt"
VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = "" VIRTUAL-RUNTIME_initscripts = ""
PREFERRED_PROVIDER_udev = "systemd" PREFERRED_PROVIDER_udev = "systemd"
QT_DIR_NAME = "" QT_DIR_NAME = ""
PREFERRED_PROVIDER_sshd = "openssh"
ANDROID_EXTRA_INITRAMFS_IMAGE_INSTALL ?= ""
FILESYSTEM_PERMS_TABLES = "files/fs-perms.txt files/asteroidos-fs-perms.txt"
PACKAGE_FEED_URIS = "https://release.asteroidos.org/nightlies/"
PACKAGE_FEED_BASE_PATHS = "ipk"
PACKAGE_FEED_ARCHS = "all anthias armv7vehf-neon bass dory i586 lenok qemux86 sparrow sprat sturgeon swift tetra wren"
SKIP_META_GNOME_SANITY_CHECK = "1" SKIP_META_GNOME_SANITY_CHECK = "1"
...@@ -3,9 +3,7 @@ BBPATH .= ":${LAYERDIR}" ...@@ -3,9 +3,7 @@ BBPATH .= ":${LAYERDIR}"
# We have a recipes directory, add to BBFILES # We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
BBFILE_COLLECTIONS += "nemomobile-layer qt5-layer"
BBFILE_COLLECTIONS += "asteroid-layer" BBFILE_PATTERN_nemomobile-layer := "^${LAYERDIR}/"
BBFILE_PATTERN_asteroid-layer := "^${LAYERDIR}/" BBFILE_PRIORITY_nemomobile-layer = "7"
BBFILE_PRIORITY_asteroid-layer = "7" LAYERSERIES_COMPAT_nemomobile-layer = "thud"
LAYERSERIES_COMPAT_asteroid-layer = "thud"
MACHINE_FEATURES = "alsa bluetooth usbgadget usbhost ext2"
SERIAL_CONSOLE = "115200 ttyHSL0"
PREFERRED_PROVIDER_virtual/mesa = "libhybris"
PREFERRED_PROVIDER_virtual/egl = "libhybris"
PREFERRED_PROVIDER_virtual/libgles1 = "libhybris"
PREFERRED_PROVIDER_virtual/libgles2 = "libhybris"
PREFERRED_PROVIDER_virtual/android-headers = "android"
PREFERRED_PROVIDER_virtual/android-system-image = "android"
KERNEL_IMAGETYPE = "zImage-dtb"
IMAGE_FSTYPES += "ext4"
IMAGE_ROOTFS_ALIGNMENT="4"
IMAGE_INSTALL += "android-tools android-system"
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
# /usr/share/man 0755 root root true 0644 root root # /usr/share/man 0755 root root true 0644 root root
# Note: all standard config directories are automatically assigned "0755 root root false - - -" # Note: all standard config directories are automatically assigned "0755 root root false - - -"
/home/ceres/ 0755 1000 1000 true 0744 1000 1000 /home/nemo/ 0755 1000 1000 true 0744 1000 1000
[Unit]
Description=/system/bin/init initializes the property service and launches servicemanager and logd
After=local-fs.target
Before=basic.target network.target bluetooth.service ofono.service sensord.service
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=simple
ExecStartPre=/bin/touch /dev/.coldboot_done
ExecStart=/system/bin/init
[Install]
WantedBy=graphical.target
on init
write /dev/.coldboot_done 1
mkdir /dev/graphics/
symlink /dev/fb0 /dev/graphics/fb0
chown system root /sys/class/timed_output/vibrator/enable
class_start core
service logd /system/bin/logd
class core
socket logd stream 0666 root root
socket logdr seqpacket 0666 root root
socket logdw dgram 0222 root root
service servicemanager /system/bin/servicemanager
class core
DESCRIPTION = "This installs an android-init service which loads /system/bin/init with the /init.rc file which loads logd and servicemanager"
PR = "r0"
SRC_URI = "file://init.rc \
file://android-init.service"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
S = "${WORKDIR}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install() {
install -m 0644 ${WORKDIR}/init.rc ${D}/init.rc
install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/android-init.service ${D}/lib/systemd/system/
ln -s ../android-init.service ${D}/lib/systemd/system/multi-user.target.wants/android-init.service
}
FILES_${PN} += "/init.rc /lib/systemd/system/"
[Unit]
Description=Load firmware into broadcom bluetooth chip
[Service]
Type=simple
ExecStart=/bin/echo This script should be device specific
[Install]
WantedBy=basic.target
FILESEXTRAPATHS_prepend := "${THISDIR}/brcm-patchram-plus:"
SRC_URI += "file://patchram.service"
LICENSE = "BSD"
SRC_URI = "git://github.com/AsteroidOS/brcm-patchram-plus.git;protocol=https"
S = "${WORKDIR}/git/"
SRCREV = "94fb127e614b19a9a95561b8c1a0716e2e1e6293"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install_append() {
install -d ${D}/lib/systemd/system/multi-user.target.wants/
cp ${WORKDIR}/patchram.service ${D}/lib/systemd/system/
ln -s ../patchram.service ${D}/lib/systemd/system/multi-user.target.wants/patchram.service
}
FILES_${PN} += "/lib/systemd/system/"
RDEPENDS_${PN} += "rfkill"
SUMMARY = "Asteroid's alarm clock app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-alarmclock.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-alarmclock.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-alarms qttools-native qtdeclarative-native"
RDEPENDS_${PN} += "nemo-qml-plugin-alarms"
FILES_${PN} += "/usr/share/translations/ /usr/lib/systemd/user/alarmpresenter.service /usr/share/dbus-1/services/com.nokia.voland.service"
do_install_append() {
lrelease -idbased ${S}/alarmclock/i18n/asteroid-alarmclock.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/alarmclock/i18n/asteroid-alarmclock.*.qm ${D}/usr/share/translations/
}
[Unit]
Description=Starts the BLE synchronization daemon
Requires=dbus.socket
After=bluetooth.service
ConditionUser=!root
[Service]
Type=simple
ExecStart=/usr/bin/asteroid-btsyncd
Restart=always
[Install]
WantedBy=default.target
SUMMARY = "Asteroid's BLE synchronization daemon."
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-btsyncd"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-btsyncd.git;protocol=https \
file://asteroid-btsyncd.service"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5 gsettings
DEPENDS += "qtbase glibmm qtmpris statefs-qt timed qttools-native"
RDEPENDS_${PN} += "glibmm qtmpris"
FILES_${PN} += "/usr/bin/ /usr/lib/systemd/user/ /usr/share/glib-2.0/schemas /usr/share/translations/ /usr/lib/systemd/user/default.target.wants/"
do_install_append() {
install -d ${D}/usr/lib/systemd/user/
install -d ${D}/usr/lib/systemd/user/default.target.wants/
cp ../asteroid-btsyncd.service ${D}/usr/lib/systemd/user/
if [ ! -f ${D}/usr/lib/systemd/user/default.target.wants/asteroid-btsyncd.service ]; then
ln -s /usr/lib/systemd/user/asteroid-btsyncd.service ${D}/usr/lib/systemd/user/default.target.wants/asteroid-btsyncd.service
fi
lrelease -idbased ${S}/i18n/asteroid-btsyncd.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-btsyncd.*.qm ${D}/usr/share/translations/
}
SUMMARY = "Asteroid's calculator app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-calculator.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-calculator.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid qtdeclarative-native"
SUMMARY = "Asteroid's calendar app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-calendar.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-calendar.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-calendar qttools-native qtdeclarative-native"
RDEPENDS_${PN} += "nemo-qml-plugin-calendar"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease -idbased ${S}/i18n/asteroid-calendar.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-calendar.*.qm ${D}/usr/share/translations/
}
SUMMARY = "Asteroid's compass app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-compass.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-compass.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid qtdeclarative-native"
RDEPENDS_${PN} += "qtsensors qtsensors-qmlplugins qtsensors-plugins"
SUMMARY = "Asteroid's default set of icons, based on Ion Icons"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-icons-ion"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=92e02b7236a0635eaf1478f8041b0602"
SRC_URI = "git://github.com/AsteroidOS/asteroid-icons-ion;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}/usr/share/icons/asteroid/
cp ${S}/src/* ${D}/usr/share/icons/asteroid/
}
FILES_${PN} = "/usr/share/icons/asteroid/"
[Unit]
Description=The wayland compositors and desktop of AsteroidOS
Requires=dbus.socket
ConditionUser=!root
[Service]
Type=notify
EnvironmentFile=-/var/lib/environment/compositor/*.conf
ExecStartPre=/bin/sh -ec 'while [ ! -f /dev/.coldboot_done ]; do sleep 1; done'
ExecStart=/usr/bin/asteroid-launcher $LIPSTICK_OPTIONS --systemd
TimeoutStopSec=3
Restart=always
[Install]
WantedBy=default.target
EGL_PLATFORM=hwcomposer
QT_QPA_PLATFORM=hwcomposer
LIPSTICK_OPTIONS="-plugin evdevtouch:/dev/input/event0"
QT_IM_MODULE=qtvirtualkeyboard
{
"device": "/dev/dri/card0",
"outputs": [
{ "name": "Virtual1", "mode": "800x800" }
]
}
QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_INTEGRATION=eglfs_kms
QT_IM_MODULE=qtvirtualkeyboard
QT_QPA_EGLFS_KMS_CONFIG=/var/lib/environment/compositor/kms-qemu.json
SUMMARY = "Asteroid's launcher based on lipstick"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-launcher"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://qml/MainScreen.qml;beginline=1;endline=29;md5=3d250dd089f5d6221d9054029963e332"
SRC_URI = "git://github.com/AsteroidOS/asteroid-launcher.git;protocol=https \
file://asteroid-launcher.service \
file://default.conf"
SRC_URI_append_qemux86 = " file://qemu.conf file://kms-qemu.json"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "lipstick qttools-native timed"
RDEPENDS_${PN} += "qtdeclarative-qmlplugins qml-asteroid qtwayland-plugins nemo-qml-plugin-time nemo-qml-plugin-contextkit nemo-qml-plugin-configuration asteroid-wallpapers ttf-asteroid-fonts"
FILES_${PN} += "/usr/share/asteroid-launcher/ /usr/lib/systemd/user/ /usr/share/translations/ /usr/lib/systemd/user/default.target.wants/"
do_install_append() {
lrelease -idbased ${S}/i18n/asteroid-launcher.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-launcher.*.qm ${D}/usr/share/translations/
install -d ${D}/var/lib/environment/compositor/
cp ../default.conf ${D}/var/lib/environment/compositor/
if [ -f ../qemu.conf ] ; then
cp ../qemu.conf ${D}/var/lib/environment/compositor/
cp ../kms-qemu.json ${D}/var/lib/environment/compositor/
fi
install -d ${D}/usr/lib/systemd/user/
install -d ${D}/usr/lib/systemd/user/default.target.wants/
cp ../asteroid-launcher.service ${D}/usr/lib/systemd/user/
if [ ! -f ${D}/usr/lib/systemd/user/default.target.wants/asteroid-launcher.service ]; then
ln -s /usr/lib/systemd/user/asteroid-launcher.service ${D}/usr/lib/systemd/user/default.target.wants/asteroid-launcher.service
fi
}
SUMMARY = "Asteroid's music app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-music.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-music.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid qtmpris qttools-native qtdeclarative-native"
RDEPENDS_${PN} += "qtmpris"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease -idbased ${S}/i18n/asteroid-music.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-music.*.qm ${D}/usr/share/translations/
}
SUMMARY = "Asteroid's system settings app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-settings.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-settings.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus qttools-native qtdeclarative-native"
RDEPENDS_${PN} += "nemo-qml-plugin-systemsettings nemo-qml-plugin-dbus qtmultimedia-qmlplugins libconnman-qt5-qmlplugins"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease -idbased ${S}/i18n/asteroid-settings.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-settings.*.qm ${D}/usr/share/translations/
}
SUMMARY = "Asteroid's stopwatch app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-stopwatch.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-stopwatch.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid qtdeclarative-native"
SUMMARY = "Asteroid's timer app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-timer.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-timer.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-dbus nemo-keepalive qtdeclarative-native"
RDEPENDS_${PN} += "nemo-keepalive"
SUMMARY = "Asteroid's default set of wallpapers, licensed under CC BY 2.0"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-wallpapers"
LICENSE = "CC-BY-2.0"
LIC_FILES_CHKSUM = "file://LICENSE_CCBY;md5=e5ae8a8ac3605e6baffcd72982f4703b"
SRC_URI = "git://github.com/AsteroidOS/asteroid-wallpapers;protocol=https"
SRCREV = "716b6c12915da3b3c858efb9041cd097aa868090"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}/usr/share/asteroid-launcher/wallpapers/
cp ${S}/480x480/* ${D}/usr/share/asteroid-launcher/wallpapers/
}
FILES_${PN} = "/usr/share/asteroid-launcher/wallpapers/"
SUMMARY = "Asteroid's weather app"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-weather.git"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=84dcc94da3adb52b53ae4fa38fe49e5d"
SRC_URI = "git://github.com/AsteroidOS/asteroid-weather.git;protocol=https"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
DEPENDS += "qml-asteroid nemo-qml-plugin-configuration qttools-native qtdeclarative-native"
RDEPENDS_${PN} += "nemo-qml-plugin-configuration"
FILES_${PN} += "/usr/share/translations/"
do_install_append() {
lrelease -idbased ${S}/i18n/asteroid-weather.*.ts
install -d ${D}/usr/share/translations/
cp ${S}/i18n/asteroid-weather.*.qm ${D}/usr/share/translations/
}
From 5f61a4cc0e34e15c289c66bea9f4aefb0b8fc6ff Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Sun, 3 Dec 2017 00:37:37 +0100
Subject: [PATCH] Spinners: Disable shaders which cause all sorts of problems
on tetra
---
src/controls/qml/CircularSpinner.qml | 2 +-
src/controls/qml/Spinner.qml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/controls/qml/CircularSpinner.qml b/src/controls/qml/CircularSpinner.qml
index 2b83d8a..129bba8 100644
--- a/src/controls/qml/CircularSpinner.qml
+++ b/src/controls/qml/CircularSpinner.qml
@@ -45,7 +45,7 @@ PathView {
visible: false
}
- layer.enabled: true
+ layer.enabled: false
layer.effect: ShaderEffect {
fragmentShader: "
varying highp vec2 qt_TexCoord0;
diff --git a/src/controls/qml/Spinner.qml b/src/controls/qml/Spinner.qml
index 053c1fd..1e3df55 100644
--- a/src/controls/qml/Spinner.qml
+++ b/src/controls/qml/Spinner.qml
@@ -40,7 +40,7 @@ ListView {
visible: false
}
- layer.enabled: true
+ layer.enabled: false
layer.effect: ShaderEffect {
fragmentShader: "
varying highp vec2 qt_TexCoord0;
--
2.14.3
SUMMARY = "QML components for AsteroidOS"
HOMEPAGE = "https://github.com/AsteroidOS/qml-asteroid.git"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=1702a92c723f09e3fab3583b165a8d90"
SRC_URI = "git://github.com/AsteroidOS/qml-asteroid.git;protocol=https"
SRC_URI_append_qemux86 = " file://0001-Spinners-Disable-shaders-which-cause-all-sorts-of-pr.patch"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
inherit qmake5
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS += "qtdeclarative qtsvg qtvirtualkeyboard mlite mapplauncherd-booster-qtcomponents qtdeclarative-native"
RDEPENDS_${PN} += "qtsvg-plugins qtvirtualkeyboard asteroid-icons-ion"
do_configure_prepend() {
if [ ${MACHINE_DISPLAY_ROUND} = "true" ]
then
export EXTRA_QMAKEVARS_PRE="${EXTRA_QMAKEVARS_PRE} DEFINES+=ROUND_SCREEN"
fi
if [ ${MACHINE_HAS_WLAN} = "true" ]
then
export EXTRA_QMAKEVARS_PRE="${EXTRA_QMAKEVARS_PRE} DEFINES+=HAS_WLAN"
fi
if [ ${MACHINE_HAS_SPEAKER} = "true" ]
then
export EXTRA_QMAKEVARS_PRE="${EXTRA_QMAKEVARS_PRE} DEFINES+=HAS_SPEAKER"
fi
}
FILES_${PN} += "/usr/lib /usr/share/icons/asteroid/"
FILES_${PN}-dbg += "/usr/lib/qml/org/asteroid/controls/.debug/ /usr/lib/qml/QtQuick/Controls/Styles/Asteroid/.debug/"
FILES_${PN}-dev += "/usr/lib/mkspecs/"
[Service]
EnvironmentFile=/var/lib/environment/ceres/locale.conf
SUMMARY = "Set of config files describing the languages that are available on AsteroidOS"
HOMEPAGE = "https://github.com/AsteroidOS/supported-languages"
LICENSE = "CC0-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d3616852dbf7b1a6d4b53b00626032"
SRC_URI = "git://github.com/AsteroidOS/supported-languages.git;protocol=https \
file://locale.conf \
file://localeEnv.conf"
SRCREV = "${AUTOREV}"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
RDEPENDS_${PN} += "source-han-sans-cn-fonts source-han-sans-kr-fonts ttf-lohit ttf-dejavu-sans"
FILES_${PN} += "/etc/systemd/system/user@.service.d/ /usr/lib/systemd/user/ /usr/share/supported-languages/"
INSANE_SKIP_${PN} += "host-user-contaminated"
do_install_append() {
install -d ${D}/etc/systemd/system/user@.service.d/
cp ../localeEnv.conf ${D}/etc/systemd/system/user@.service.d/locale.conf
install -d ${D}/var/lib/environment/ceres/
cp ../locale.conf ${D}/var/lib/environment/ceres/locale.conf
# TODO: Ensure this only allows asteroid-settings to write to this file, so
# that others apps cannot set environment variables
chown 1000:1000 ${D}/var/lib/environment/ceres/locale.conf # ceres:ceres
install -d ${D}/usr/share/supported-languages/
cp ${S}/*.conf ${D}/usr/share/supported-languages/
}
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<allow send_destination="org.bluez"/> <allow send_destination="org.bluez"/>
</policy> </policy>
<policy user="ceres"> <policy user="nemo">
<allow send_destination="org.bluez"/> <allow send_destination="org.bluez"/>
</policy> </policy>
......
SRC_URI_remove = "file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch"
inherit asteroid-image
DESCRIPTION = "Asteroid image for debuggers, contains debugging tools"
EXTRA_IMAGE_FEATURES += "dbg-pkgs tools-debug tools-testapps debug-tweaks"
inherit asteroid-image
DESCRIPTION = "Asteroid image for developers, contains development and debugging tools"
EXTRA_IMAGE_FEATURES += "dbg-pkgs dev-pkgs tools-sdk tools-debug tools-testapps debug-tweaks"
inherit asteroid-image
DESCRIPTION = "Asteroid image for users"
inherit nemophone-image
DESCRIPTION = "Nemophone image for users"
LICENCE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit nemox86-image
DESCRIPTION = "Nemox86 image for users"
LICENCE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
distro_name="asteroid"
distro_rootfs_file="/etc/asteroid-release"
#! /bin/sh
# machine.conf should provide $sdcard_partition
. /machine.conf
# Logging functions
info() {
echo "$1" > /dev/ttyprintk
}
fail() {
echo "Failed" > /dev/ttyprintk
echo "$1" > /dev/ttyprintk
echo "Waiting for 15 seconds before rebooting ..." > /dev/ttyprintk
sleep 15s
reboot
}
# Populates /dev (called for /dev and /rfs/dev)
setup_devtmpfs() {
mount -t devtmpfs -o mode=0755,nr_inodes=0 devtmpfs $1/dev
mkdir $1/dev/pts
mount -t devpts none $1/dev/pts/
test -c $1/dev/fd || ln -sf /proc/self/fd $1/dev/fd
test -c $1/dev/stdin || ln -sf fd/0 $1/dev/stdin
test -c $1/dev/stdout || ln -sf fd/1 $1/dev/stdout
test -c $1/dev/stderr || ln -sf fd/2 $1/dev/stderr
test -c $1/dev/socket || mkdir -m 0755 $1/dev/socket
}
info "Mounting relevant filesystems ..."
mkdir -m 0755 /proc
mount -t proc proc /proc
mkdir -m 0755 /sys
mount -t sysfs sys /sys
mkdir -p /dev
setup_devtmpfs ""
# Checks wether we need to start adbd for interactive debugging
cat /proc/cmdline | grep debug-ramdisk
if [ $? -ne 1 ] ; then
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb
echo 0 > /sys/class/android_usb/android0/enable
echo 18d1 > /sys/class/android_usb/android0/idVendor
echo d002 > /sys/class/android_usb/android0/idProduct
echo adb > /sys/class/android_usb/android0/f_ffs/aliases
echo ffs > /sys/class/android_usb/android0/functions
echo AsteroidOS > /sys/class/android_usb/android0/iManufacturer
echo InitRamDisk > /sys/class/android_usb/android0/iProduct
serial="$(cat /proc/cmdline | sed 's/.*androidboot.serialno=//' | sed 's/ .*//')"
echo $serial > /sys/class/android_usb/android0/iSerial
echo 1 > /sys/class/android_usb/android0/enable
/usr/bin/android-gadget-setup adb
/usr/bin/adbd
fi
rotation=0
if [ -e /etc/rotation ]; then
read rotation < /etc/rotation
fi
/usr/bin/psplash --angle $rotation --no-console-switch &
# The sdcard partition may be the rootfs itself or contain a loop file
info "Mounting sdcard..."
mkdir -m 0777 /sdcard /loop
while [ ! -e /sys/block/mmcblk0 ] ; do
info "Waiting for mmcblk0..."
sleep 1
done
/sbin/fsck.ext4 -p /dev/$sdcard_partition
mount -t auto -o rw,noatime,nodiratime,nodelalloc /dev/$sdcard_partition /sdcard
[ $? -eq 0 ] || fail "Failed to mount the sdcard. Cannot continue."
info "Checking for loop rootfs image on the sdcard..."
ANDROID_MEDIA_DIR="/sdcard/media/"
if [ -d /sdcard/media/0 ] ; then
ANDROID_MEDIA_DIR="/sdcard/media/0"
fi
BOOT_DIR="/sdcard"
if [ -e $ANDROID_MEDIA_DIR/asteroidos.ext4 ] ; then
# Boots from a /sdcard/asteroidos.ext4 loop file
info "Rootfs image found at $ANDROID_MEDIA_DIR/asteroidos.ext4; mounting it now ..."
mount -o noatime,nodiratime,nodelalloc,sync,rw,loop $ANDROID_MEDIA_DIR/asteroidos.ext4 /loop
[ $? -ne 0 ] || BOOT_DIR="/loop"
fi
setup_devtmpfs $BOOT_DIR
info "Move the /proc and /sys filesystems..."
umount -l /proc
umount -l /sys
mount -t proc proc $BOOT_DIR/proc
mount -t sysfs sys $BOOT_DIR/sys
info "Switching to rootfs..."
exec switch_root -c /dev/ttyprintk $BOOT_DIR /lib/systemd/systemd
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
S = "${WORKDIR}"
RDEPENDS_${PN} += "e2fsprogs-e2fsck psplash"
From eacd1b2e22597e7d07aa21e7f0af320acd50e669 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Sun, 16 Sep 2018 19:55:43 +0200
Subject: [PATCH] Disable the wifi and opencl modules as their necessary
headers are never distributed as part of asteroidos ports
---
hybris/Makefile.am | 2 +-
hybris/tests/Makefile.am | 19 +------------------
2 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/hybris/Makefile.am b/hybris/Makefile.am
index 4879a9c..fc6a786 100644
--- a/hybris/Makefile.am
+++ b/hybris/Makefile.am
@@ -6,7 +6,7 @@ endif
if HAS_ANDROID_5_0_0
SUBDIRS += libsync
endif
-SUBDIRS += egl glesv1 glesv2 ui sf input camera vibrator media wifi opencl
+SUBDIRS += egl glesv1 glesv2 ui sf input camera vibrator media
if HAS_LIBNFC_NXP_HEADERS
SUBDIRS += libnfc_nxp libnfc_ndef_nxp
diff --git a/hybris/tests/Makefile.am b/hybris/tests/Makefile.am
index 242436b..625aa4b 100644
--- a/hybris/tests/Makefile.am
+++ b/hybris/tests/Makefile.am
@@ -11,9 +11,7 @@ bin_PROGRAMS = \
test_vibrator \
test_media \
test_recorder \
- test_gps \
- test_opencl \
- test_wifi
+ test_gps
if HAS_ANDROID_4_2_0
bin_PROGRAMS += test_hwcomposer
@@ -211,18 +209,3 @@ test_vibrator_LDADD = \
$(top_builddir)/hardware/libhardware.la \
$(top_builddir)/vibrator/libvibrator.la
-test_wifi_SOURCES = test_wifi.c
-test_wifi_CFLAGS = \
- -I$(top_srcdir)/include \
- $(ANDROID_HEADERS_CFLAGS)
-test_wifi_LDADD = \
- $(top_builddir)/wifi/libwifi.la
-
-test_opencl_SOURCES = test_opencl.c
-test_opencl_CFLAGS = \
- -I$(top_srcdir)/include \
- $(ANDROID_HEADERS_CFLAGS)
-test_opencl_LDADD = \
- $(top_builddir)/common/libhybris-common.la \
- $(top_builddir)/opencl/libOpenCL.la
-
--
2.19.0
FILESEXTRAPATHS_prepend := "${THISDIR}/libhybris:"
SRC_URI += " file://0001-Disable-the-wifi-and-opencl-modules-as-their-necessa.patch;striplevel=2"
DEPENDS += " wayland "
EXTRA_OECONF += " --enable-experimental --enable-wayland --with-default-egl-platform=wayland --with-default-hybris-ld-library-path=/usr/libexec/hal-droid/system/lib:/vendor/lib:/system/lib"
COMPATIBLE_MACHINE=""
SUMMARY = "A tool to read/write/update android boot images"
HOMEPAGE = "https://github.com/xiaolu/mkbootimg_tools"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://mkboot;beginline=1;endline=14;md5=7b23e8b2786c0da7fb7ff74d45637d54"
SRC_URI = "git://github.com/xiaolu/mkbootimg_tools;protocol=https;branch=master"
SRCREV = "df5b4ab37854e72e124d8108cbfb5a1b88ee3c63"
S = "${WORKDIR}/git"
PV = "git"
BBCLASSEXTEND = "native"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/mkboot ${D}${bindir}
install -m 0755 ${S}/mkbootimg ${D}${bindir}
}
[Unit]
Description=msm-fb-refresher updates the framebuffer on qualcomm devices
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/bin/msm-fb-refresher
[Install]
WantedBy=graphical.target
DESCRIPTION = "Some qualcomm devices need a refresher ioctl to show something on screen. This is a simple soft that does that on boot."
PR = "r0"
SRC_URI = "git://github.com/AsteroidOS/msm-fb-refresher.git;protocol=https \
file://msm-fb-refresher.service"
SRCREV = "b89cca860f9c37e71b3fbd5ae53c4e8d521e1de8"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://refresher.c;beginline=1;endline=16;md5=3d0eae401b24b819f25959dcfcc3194f"
S = "${WORKDIR}/git/"
PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} ${S}/refresher.c -o ${S}/msm-fb-refresher
}
do_install() {
install -m 0755 -d ${D}${bindir}
install -m 0755 ${S}/msm-fb-refresher ${D}${bindir}
install -d ${D}/etc/systemd/system/multi-user.target.wants/
cp ../msm-fb-refresher.service ${D}/etc/systemd/system/
ln -s ../msm-fb-refresher.service ${D}/etc/systemd/system/multi-user.target.wants/msm-fb-refresher.service
}
...@@ -6,3 +6,4 @@ ACTION=="add", KERNEL=="mtk_disp_mgr", MODE="0664", GROUP="video" ...@@ -6,3 +6,4 @@ ACTION=="add", KERNEL=="mtk_disp_mgr", MODE="0664", GROUP="video"
ACTION=="add", KERNEL=="MTK_SMI", MODE="0664", GROUP="video" ACTION=="add", KERNEL=="MTK_SMI", MODE="0664", GROUP="video"
ACTION=="add", KERNEL=="mali", MODE="0664", GROUP="video" ACTION=="add", KERNEL=="mali", MODE="0664", GROUP="video"
ACTION=="add", KERNEL=="vboxguest", MODE="0664", GROUP="video" ACTION=="add", KERNEL=="vboxguest", MODE="0664", GROUP="video"
SUBSYSTEM=="vchiq", MODE="0660", GROUP="video"
# Taken from https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/
# lxc-android-config/saucy/view/head:/lib/udev/rules.d/65-android.rules
# (c) 2013 Canonical LTD.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the applicable version of the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# logging devices
ACTION=="add", KERNEL=="log_*", MODE="0666"
ACTION=="add", KERNEL=="log_main", SYMLINK+="alog/main"
ACTION=="add", KERNEL=="log_system", SYMLINK+="alog/system"
ACTION=="add", KERNEL=="log_radio", SYMLINK+="alog/radio"
ACTION=="add", KERNEL=="log_events", SYMLINK+="alog/events"
# system devices
ACTION=="add", KERNEL=="binder", MODE="0666"
# graphics devices
SUBSYSTEM=="graphics", KERNEL=="*", SYMLINK+="graphics/%k"
# input devices
ACTION=="add", KERNEL=="event[0-9]*", GROUP="system", MODE="0660"
# misc devices
ACTION=="add", KERNEL=="alarm", GROUP="system", MODE="0664"
ACTION=="add", KERNEL=="uhid", GROUP="system", MODE="0660"
# memory
ACTION=="add", KERNEL=="ashmem", GROUP="system", MODE="0666"
# rfkill
ACTION=="add", KERNEL=="rfkill", GROUP="system", MODE="0660"
ACTION=="add", KERNEL=="event[0-9]*", GROUP="system", MODE="0660"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://50-video.rules \ SRC_URI_append = " file://50-video.rules \
file://65-android.rules" file://65-input.rules"
do_install_append() { do_install_append() {
# Setup udev rules for the rights of Android and graphic cards specific devices # Setup udev rules for the rights of Android and graphic cards specific devices
install -m 0644 ${WORKDIR}/50-video.rules ${D}${sysconfdir}/udev/rules.d/50-video.rules install -m 0644 ${WORKDIR}/50-video.rules ${D}${sysconfdir}/udev/rules.d/50-video.rules
install -m 0644 ${WORKDIR}/65-android.rules ${D}${sysconfdir}/udev/rules.d/65-android.rules install -m 0644 ${WORKDIR}/65-input.rules ${D}${sysconfdir}/udev/rules.d/65-input.rules
# Enables auto-login for ceres # Enables auto-login for user
install -d ${D}/var/lib/systemd/linger install -d ${D}/var/lib/systemd/linger
touch ${D}/var/lib/systemd/linger/ceres touch ${D}/var/lib/systemd/linger/${TARGET_USERNAME}
sed -i "s@agetty --noclear @agetty --autologin ceres @" ${D}/lib/systemd/system/getty@.service sed -i "s@agetty --noclear @agetty --autologin ${TARGET_USERNAME} @" ${D}/lib/systemd/system/getty@.service
} }
PACKAGECONFIG_append += "pam" PACKAGECONFIG_append += "pam"
......
...@@ -3,3 +3,6 @@ DEPENDS_remove = "gtk+3" ...@@ -3,3 +3,6 @@ DEPENDS_remove = "gtk+3"
DEPENDS_remove = "libxml2" DEPENDS_remove = "libxml2"
DEPENDS += "dbus" DEPENDS += "dbus"
REQUIRED_DISTRO_FEATURES_remove = "x11" REQUIRED_DISTRO_FEATURES_remove = "x11"
gsettings_postinstrm () {
}
SUMMARY = "AsteroidOS fonts set"
SECTION = "fonts"
HOMEPAGE = "https://github.com/AsteroidOS/asteroid-fonts"
LICENSE = "OFL-1.1 & Apache-2.0 & CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README.md;beginline=6;endline=15;md5=f9ba0acd79b8f80c8b1efdb41a7ae34e"
PR = "r0"
INHIBIT_DEFAULT_DEPS = "1"
inherit allarch
inherit fontcache
SRC_URI = "git://github.com/AsteroidOS/asteroid-fonts.git;protocol=https"
SRCREV = "871b02849988786a76b5948857fdb541417dc94d"
S = "${WORKDIR}/git"
FONT_PACKAGES = "ttf-asteroid-fonts"
do_install() {
install -d ${D}/usr/share/fonts/
find ./ -name '*.[to]tf' -exec install -m 0644 {} ${D}/usr/share/fonts \;
}
FILES_${PN} += "/usr/share/fonts"
SUMMARY = "OpenSans fonts - TTF Version"
SECTION = "fonts"
HOMEPAGE = "https://www.google.com/fonts/specimen/Open+Sans"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
PR = "r0"
# we don't need a compiler nor a c library for these fonts
INHIBIT_DEFAULT_DEPS = "1"
inherit allarch fontcache
SRC_URI = "git://github.com/ppowalowski/fontface-open-sans.git;protocol=https"
SRCREV = "462165fa0e73a665d2fbc8c80ecc23ce135700da"
S = "${WORKDIR}/git"
FONT_PACKAGES = "ttf-opensans"
do_install() {
install -d ${D}/usr/share/fonts/
find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}/usr/share/fonts \;
}
FILES_${PN} += "/usr/share/fonts"
FILESEXTRAPATHS_prepend := "${THISDIR}/wayland:"
From 04b2fe6c1f2c416965723a7736999f7d2660fdd7 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Mon, 23 Jan 2017 00:25:55 +0100
Subject: [PATCH] Use pa_card_put and pa_card_choose_initial_profile
---
src/droid/module-droid-card.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/droid/module-droid-card.c b/src/droid/module-droid-card.c
index 03a5875..bede5eb 100644
--- a/src/droid/module-droid-card.c
+++ b/src/droid/module-droid-card.c
@@ -925,6 +925,9 @@ int pa__init(pa_module *m) {
u->card->userdata = u;
u->card->set_profile = card_set_profile;
+ pa_card_choose_initial_profile(u->card);
+ pa_card_put(u->card);
+
u->modargs = ma;
u->module = m;
--
2.11.0
From 930cf7fce3ddd3279ca24a953c1929525668ed02 Mon Sep 17 00:00:00 2001
From: Florent Revest <revestflo@gmail.com>
Date: Thu, 31 Aug 2017 16:22:15 +0100
Subject: [PATCH] Install modules to /usr/lib/pulse-12.2/
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3530660..9430563 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,8 +20,8 @@ AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_GCC_TRADITIONAL
-m4_define(pa_major, `echo $VERSION | cut -d. -f1 | cut -d- -f1`)
-m4_define(pa_minor, `echo $VERSION | cut -d. -f2 | cut -d- -f1`)
+m4_define(pa_major, `echo 12`)
+m4_define(pa_minor, `echo 2`)
AC_SUBST(PA_MAJOR, pa_major)
AC_SUBST(PA_MAJORMINOR, pa_major.pa_minor)
--
2.7.4
SUMMARY = "Android/hybris plugin for PulseAudio"
HOMEPAGE = "https://github.com/mer-hybris/pulseaudio-modules-droid"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=f294906e6e4eac9d917503a0bbd139b4"
SRC_URI = "git://github.com/mer-hybris/pulseaudio-modules-droid;protocol=https \
file://0001-Use-pa_card_put-and-pa_card_choose_initial_profile.patch \
file://0002-Install-modules-to-usr-lib-pulse-12.2.patch"
SRCREV = "e28d1e22d3b0963e457e4fa45b952536ca415c9e"
PR = "r1"
PV = "+git${SRCPV}"
S = "${WORKDIR}/git"
DEPENDS += "pulseaudio libhybris"
inherit autotools pkgconfig
B = "${S}"
do_configure_prepend() {
sed -i "/define QCOM_HARDWARE/d" src/common/droid-util-51.h
}
FILES_${PN} += "/usr/lib/pulse-12.2/modules"
FILES_${PN}-dbg += "/usr/lib/pulse-12.2/modules/.debug/"
FILES_${PN}-staticdev += "/usr/lib/pulse-12.2/modules/*.a"
USE_RUBY = "" USE_RUBY = ""
RDEPENDS_${PN}_remove = "qtquickcontrols2" RDEPENDS_${PN} += "qtquickcontrols2"
RDEPENDS_${PN}_remove = "qtquickcontrols2-dev" RDEPENDS_${PN} += "qtquickcontrols2-dev"
RDEPENDS_${PN}_remove = "qtquickcontrols2-mkspecs" RDEPENDS_${PN} += "qtquickcontrols2-mkspecs"
RDEPENDS_${PN}_remove = "qtquickcontrols2-mkspecs"
RDEPENDS_${PN}_remove = "qttools-mkspecs" RDEPENDS_${PN}_remove = "qttools-mkspecs"
RDEPENDS_${PN}_remove = "qttools-staticdev" RDEPENDS_${PN}_remove = "qttools-staticdev"
RDEPENDS_${PN}_remove = "qtscript-dev" RDEPENDS_${PN}_remove = "qtscript-dev"
...@@ -30,4 +29,4 @@ RDEPENDS_${PN} += "glibmm-dev" ...@@ -30,4 +29,4 @@ RDEPENDS_${PN} += "glibmm-dev"
RDEPENDS_${PN} += "qtmpris-dev" RDEPENDS_${PN} += "qtmpris-dev"
RDEPENDS_${PN} += "mapplauncherd-qt" RDEPENDS_${PN} += "mapplauncherd-qt"
RDEPENDS_${PN} += "qml-asteroid-dev" RDEPENDS_${PN} += "qtquickcontrols-nemo-dev"
# Copyright (C) 2012-2016 O.S. Systems Software LTDA. # Copyright (C) 2012-2016 O.S. Systems Software LTDA.
# Copyright (C) 2013-2014 Martin Jansa <martin.jansa@gmail.com> # Copyright (C) 2013-2018 Martin Jansa <martin.jansa@gmail.com>
QT_MODULE ?= "${BPN}" QT_MODULE ?= "${BPN}"
QT_MODULE_BRANCH ?= "5.6" QT_MODULE_BRANCH ?= "5.12"
QT_MODULE_BRANCH_PARAM ?= "branch=${QT_MODULE_BRANCH}"
# each module needs to define valid SRCREV # each module needs to define valid SRCREV
SRC_URI = " \ SRC_URI = " \
${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};branch=${QT_MODULE_BRANCH};protocol=${QT_GIT_PROTOCOL} \ ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};${QT_MODULE_BRANCH_PARAM};protocol=${QT_GIT_PROTOCOL} \
" "
CVE_PRODUCT = "qt"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "5.6.1+git${SRCPV}" PV = "5.12.0+git${SRCPV}"
# Copyright (C) 2012, 2014 O.S. Systems Software LTDA. # Copyright (C) 2012, 2014 O.S. Systems Software LTDA.
# Copyright (C) 2013 Martin Jansa <martin.jansa@gmail.com> # Copyright (C) 2013-2018 Martin Jansa <martin.jansa@gmail.com>
inherit qmake5 inherit qmake5
PACKAGECONFIG_OPENSSL ?= "openssl" PACKAGECONFIG_OPENSSL ?= "openssl"
PACKAGECONFIG[examples] = "" PACKAGECONFIG[examples] = ""
PACKAGECONFIG[tests] = ""
PACKAGECONFIG[qtquickcompiler] = ",,qtdeclarative-native"
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}" EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}"
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', 'QT_BUILD_PARTS+=tests', '', d)}"
EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtquickcompiler', 'CONFIG+=qtquickcompiler', '', d)}"
# we don't want conflicts with qt4 # we don't want conflicts with qt4
OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}"
...@@ -33,24 +37,24 @@ python __anonymous() { ...@@ -33,24 +37,24 @@ python __anonymous() {
d.setVar("PACKAGE_ARCH", tarch) d.setVar("PACKAGE_ARCH", tarch)
} }
# Regenerate header files when they are included in source tarball # if building static Qt5, add qtdeclarative-native dependency to all recipes
# Otherwise cmake files don't set PRIVATE_HEADERS correctly # that depend on qtdeclarative as it's required for qmlimportscannertool
do_configure_prepend() { python __anonymous() {
rm -rf ${S}/include if bb.utils.contains('DISTRO_FEATURES', "qt5-static", True, False, d):
mkdir -p ${S}/.git || true if bb.utils.contains('DEPENDS', "qtdeclarative", True, False, d):
d.appendVar("DEPENDS", " qtdeclarative-native")
} }
# Many examples come with libraries installed outside of standard libdir, # Many examples come with libraries installed outside of standard libdir,
# suppress QA check complaining # suppress QA check complaining
INSANE_SKIP_${PN}-dbg += "libdir" INSANE_SKIP_${PN}-dbg += "libdir"
INSANE_SKIP_${PN}-examples += "libdir" INSANE_SKIP_${PN}-examples += "libdir staticdev dev-so"
INSANE_SKIP_${PN}-examples-dbg += "libdir"
INSANE_SKIP_${PN}-examples-dev += "libdir dev-elf"
PACKAGES =. "${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmldesigner ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs ${PN}-examples-dev ${PN}-examples-staticdev ${PN}-examples-dbg ${PN}-examples " PACKAGES =. "${PN}-qmldesigner ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs ${PN}-examples "
ALLOW_EMPTY_${PN} = "1" ALLOW_EMPTY_${PN} = "1"
ALLOW_EMPTY_${PN}-dbg = "1" ALLOW_EMPTY_${PN}-plugins = "1"
ALLOW_EMPTY_${PN}-qmlplugins = "1"
RRECOMMENDS_${PN} = " \ RRECOMMENDS_${PN} = " \
${PN}-plugins \ ${PN}-plugins \
...@@ -64,73 +68,50 @@ RRECOMMENDS_${PN}-dev = " \ ...@@ -64,73 +68,50 @@ RRECOMMENDS_${PN}-dev = " \
${PN}-qmldesigner \ ${PN}-qmldesigner \
" "
RRECOMMENDS_${PN}-dbg = " \
${PN}-plugins-dbg \
${PN}-qmlplugins-dbg \
"
# extra -dbg packages
FILES_${PN}-qmlplugins-dbg = " \
${OE_QMAKE_PATH_QML}/*/.debug \
${OE_QMAKE_PATH_QML}/*/*/.debug \
${OE_QMAKE_PATH_QML}/*/*/*/.debug \
${OE_QMAKE_PATH_QML}/*/*/*/*/.debug \
${OE_QMAKE_PATH_IMPORTS}/*/.debug \
${OE_QMAKE_PATH_IMPORTS}/*/*/.debug \
${OE_QMAKE_PATH_IMPORTS}/*/*/*/.debug \
"
FILES_${PN}-tools-dbg = " \
${OE_QMAKE_PATH_BINS}/.debug \
"
FILES_${PN}-plugins-dbg = " \
${OE_QMAKE_PATH_PLUGINS}/*/.debug/* \
${OE_QMAKE_PATH_PLUGINS}/*/*/.debug/* \
${OE_QMAKE_PATH_PLUGINS}/*/*/*/.debug/* \
"
# extra packages # extra packages
FILES_${PN}-qmldesigner += " \ FILES_${PN}-qmldesigner += " \
${OE_QMAKE_PATH_QML}/*/designer \ ${OE_QMAKE_PATH_QML}/*/designer \
${OE_QMAKE_PATH_QML}/*/*/designer \ ${OE_QMAKE_PATH_QML}/*/*/designer \
${OE_QMAKE_PATH_QML}/*/*/*/designer \
" "
# qmlplugins 1-4 levels of subdirs qmldir + *{.so,*.qmltypes,*.qml,*js} # qmlplugins 1-4 levels of subdirs qmldir + *{.so,*.qmltypes,*.qml,*.qmlc,*.js,*.jsc}
FILES_${PN}-qmlplugins = " \ FILES_${PN}-qmlplugins = " \
${OE_QMAKE_PATH_QML}/*.qmltypes \ ${OE_QMAKE_PATH_QML}/*.qmltypes \
${OE_QMAKE_PATH_QML}/*/*${SOLIBSDEV} \ ${OE_QMAKE_PATH_QML}/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_QML}/*/qmldir \ ${OE_QMAKE_PATH_QML}/*/qmldir \
${OE_QMAKE_PATH_QML}/*/*.qmltypes \ ${OE_QMAKE_PATH_QML}/*/*.qmltypes \
${OE_QMAKE_PATH_QML}/*/*.qml \ ${OE_QMAKE_PATH_QML}/*/*.qml \
${OE_QMAKE_PATH_QML}/*/*.qmlc \
${OE_QMAKE_PATH_QML}/*/*.js \ ${OE_QMAKE_PATH_QML}/*/*.js \
${OE_QMAKE_PATH_QML}/*/*.jsc \
${OE_QMAKE_PATH_QML}/*/*.png \
${OE_QMAKE_PATH_QML}/*/*/*${SOLIBSDEV} \ ${OE_QMAKE_PATH_QML}/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_QML}/*/*/qmldir \ ${OE_QMAKE_PATH_QML}/*/*/qmldir \
${OE_QMAKE_PATH_QML}/*/*/*.qmltypes \ ${OE_QMAKE_PATH_QML}/*/*/*.qmltypes \
${OE_QMAKE_PATH_QML}/*/*/*.qml \ ${OE_QMAKE_PATH_QML}/*/*/*.qml \
${OE_QMAKE_PATH_QML}/*/*/*.qmlc \
${OE_QMAKE_PATH_QML}/*/*/*.js \ ${OE_QMAKE_PATH_QML}/*/*/*.js \
${OE_QMAKE_PATH_QML}/*/*/*.jsc \
${OE_QMAKE_PATH_QML}/*/*/*.png \
${OE_QMAKE_PATH_QML}/*/*/*/*${SOLIBSDEV} \ ${OE_QMAKE_PATH_QML}/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_QML}/*/*/*/qmldir \ ${OE_QMAKE_PATH_QML}/*/*/*/qmldir \
${OE_QMAKE_PATH_QML}/*/*/*/images \ ${OE_QMAKE_PATH_QML}/*/*/*/images \
${OE_QMAKE_PATH_QML}/*/*/*/*.qmltypes \ ${OE_QMAKE_PATH_QML}/*/*/*/*.qmltypes \
${OE_QMAKE_PATH_QML}/*/*/*/*.qml \ ${OE_QMAKE_PATH_QML}/*/*/*/*.qml \
${OE_QMAKE_PATH_QML}/*/*/*/*.qmlc \
${OE_QMAKE_PATH_QML}/*/*/*/*.js \ ${OE_QMAKE_PATH_QML}/*/*/*/*.js \
${OE_QMAKE_PATH_QML}/*/*/*/*.jsc \
${OE_QMAKE_PATH_QML}/*/*/*/*.png \ ${OE_QMAKE_PATH_QML}/*/*/*/*.png \
${OE_QMAKE_PATH_QML}/*/*/*/*.metainfo \ ${OE_QMAKE_PATH_QML}/*/*/*/*.metainfo \
${OE_QMAKE_PATH_QML}/*/*/*/*/*${SOLIBSDEV} \ ${OE_QMAKE_PATH_QML}/*/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_QML}/*/*/*/*/qmldir \ ${OE_QMAKE_PATH_QML}/*/*/*/*/qmldir \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.qmltypes \ ${OE_QMAKE_PATH_QML}/*/*/*/*/*.qmltypes \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.qml \ ${OE_QMAKE_PATH_QML}/*/*/*/*/*.qml \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.qmlc \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.js \ ${OE_QMAKE_PATH_QML}/*/*/*/*/*.js \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.jsc \
${OE_QMAKE_PATH_QML}/*/*/*/*/*/*.png \ ${OE_QMAKE_PATH_QML}/*/*/*/*/*/*.png \
${OE_QMAKE_PATH_IMPORTS}/*.qmltypes \
${OE_QMAKE_PATH_IMPORTS}/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_IMPORTS}/*/*.qmltypes \
${OE_QMAKE_PATH_IMPORTS}/*/qmldir \
${OE_QMAKE_PATH_IMPORTS}/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_IMPORTS}/*/*/*.qmltypes \
${OE_QMAKE_PATH_IMPORTS}/*/*/qmldir \
${OE_QMAKE_PATH_IMPORTS}/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_IMPORTS}/*/*/*/*.qmltypes \
${OE_QMAKE_PATH_IMPORTS}/*/*/*/qmldir \
" "
FILES_${PN}-tools = " \ FILES_${PN}-tools = " \
...@@ -158,45 +139,24 @@ FILES_${PN}-dev += " \ ...@@ -158,45 +139,24 @@ FILES_${PN}-dev += " \
${OE_QMAKE_PATH_LIBS}/*.la \ ${OE_QMAKE_PATH_LIBS}/*.la \
${OE_QMAKE_PATH_HEADERS}/* \ ${OE_QMAKE_PATH_HEADERS}/* \
" "
FILES_${PN}-dbg += " \
${OE_QMAKE_PATH_LIBS}/.debug \
${OE_QMAKE_PATH_LIBEXECS}/.debug \
"
FILES_${PN}-staticdev += " \ FILES_${PN}-staticdev += " \
${OE_QMAKE_PATH_LIBS}/*.a \ ${OE_QMAKE_PATH_LIBS}/*.a \
${OE_QMAKE_PATH_PLUGINS}/*/*.a \
${OE_QMAKE_PATH_PLUGINS}/*/*.prl \
${OE_QMAKE_PATH_PLUGINS}/*/*/*.a \
${OE_QMAKE_PATH_PLUGINS}/*/*/*.prl \
${OE_QMAKE_PATH_QML}/*/*.a \
${OE_QMAKE_PATH_QML}/*/*.prl \
${OE_QMAKE_PATH_QML}/*/*/*.a \
${OE_QMAKE_PATH_QML}/*/*/*.prl \
${OE_QMAKE_PATH_QML}/*/*/*/*.a \
${OE_QMAKE_PATH_QML}/*/*/*/*.prl \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.a \
${OE_QMAKE_PATH_QML}/*/*/*/*/*.prl \
" "
FILES_${PN}-examples = " \ FILES_${PN}-examples = " \
${OE_QMAKE_PATH_EXAMPLES}/* \ ${OE_QMAKE_PATH_EXAMPLES} \
"
FILES_${PN}-examples-dev = " \
${OE_QMAKE_PATH_EXAMPLES}/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/*${SOLIBSDEV} \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/*/*${SOLIBSDEV} \
"
FILES_${PN}-examples-dbg = " \
${OE_QMAKE_PATH_EXAMPLES}/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/.debug \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/*/.debug \
"
FILES_${PN}-examples-staticdev = " \
${OE_QMAKE_PATH_EXAMPLES}/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/*.a \
${OE_QMAKE_PATH_EXAMPLES}/*/*/*/*/*/*/*/*.a \
" "
PATH_prepend = "${STAGING_DIR_NATIVE}${OE_QMAKE_PATH_QT_BINS}:" PATH_prepend = "${STAGING_DIR_NATIVE}${OE_QMAKE_PATH_QT_BINS}:"
...@@ -6,12 +6,12 @@ SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch \ ...@@ -6,12 +6,12 @@ SRC_URI += " file://0001-Forces-GLES2-the-dirty-way.patch \
PACKAGECONFIG_remove = "tests" PACKAGECONFIG_remove = "tests"
PACKAGECONFIG_remove = "widgets" PACKAGECONFIG_remove = "widgets"
PACKAGECONFIG_remove = "gl" PACKAGECONFIG_remove = "gl"
PACKAGECONFIG_append = "gles2 mtdev sql-sqlite glib fontconfig gif" PACKAGECONFIG_append = "gles2 mtdev sql-sqlite glib fontconfig gif accessibility"
PACKAGECONFIG_GL_append_qemux86 = " eglfs gbm kms" PACKAGECONFIG_GL_append_qemux86 = " eglfs gbm kms"
QT_CONFIG_FLAGS += "--no-feature-getentropy"
QT_CONFIG_FLAGS += "-no-qpa-platform-guard ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', '-no-use-gold-linker', d)}" QT_CONFIG_FLAGS += "-no-qpa-platform-guard ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', '-no-use-gold-linker', d)}"
PACKAGECONFIG_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb xrender xinput2 glib xkb xkbcommon-evdev', 'xkbcommon-evdev', d)}" PACKAGECONFIG_X11 = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb xrender xinput2 glib xkb xkbcommon-evdev', 'xkbcommon-evdev', d)}"
DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" EXTRA_OECONFIG_append = " -opengl es3 -opengl es31"
DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad libpng"
require qt5.inc
require qt5-git.inc
QT_MODULE_BRANCH = "master"
LICENSE = "GFDL-1.3 & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1) | GPL-2.0"
LIC_FILES_CHKSUM = " \
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
file://LICENSE.LGPLv21;md5=4193e7f1d47a858f6b7c0f1ee66161de \
file://LICENSE.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
"
DEPENDS += "qtbase qtdeclarative pulseaudio qtmultimedia"
SRCREV = "28ca62414901502189ea28ef2efd551386187619"
From c68cefc5dfbb51a08c47d9b538eeb2870c3c1890 Mon Sep 17 00:00:00 2001
From: Aleksi Suomalainen <suomalainen.aleksi@gmail.com>
Date: Fri, 20 Oct 2017 13:23:50 +0300
Subject: [PATCH] only build src
---
qtpim.pro | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qtpim.pro b/qtpim.pro
index 2d70b157..c9ca1161 100644
--- a/qtpim.pro
+++ b/qtpim.pro
@@ -1,2 +1,2 @@
load(qt_parts)
-
+SUBDIRS = sub_src
--
2.14.2
require qt5.inc
require qt5-git.inc
FILESEXTRAPATHS_prepend := "${THISDIR}/qtpim:"
SRC_URI = "git://git.merproject.org/mer-core/qtpim.git;branch=mer-master-on-5.6;protocol=https file://0001-build-src-libs.patch"
QT_MODULE_BRANCH = "master"
LICENSE = "GFDL-1.3 & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1) | GPL-2.0"
LIC_FILES_CHKSUM = " \
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
"
DEPENDS += "qtbase qtdeclarative"
SRCREV = "0f8e483336fc803ffd22e8f101e540b5dc42840a"
FILESEXTRAPATHS_prepend := "${THISDIR}/qtvirtualkeyboard:" FILESEXTRAPATHS_prepend := "${THISDIR}/qtvirtualkeyboard:"
SRC_URI += " file://0001-defaultStyle-Use-a-white-handwriting-trace-for-bette.patch" SRC_URI += " file://0001-defaultStyle-Use-a-white-handwriting-trace-for-bette.patch"
PACKAGECONFIG = "lang-en_GB lipi-toolkit" PACKAGECONFIG = "lang-en_GB lipi-toolkit hunspell"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment