Search
SailfishOS Open Build Service
>
Projects
>
home:mautz
:
cm12.1
>
droid-config-hammerhead
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
droid-config-hammerhead.spec
@@ -0,0 +1,658 @@ +# These and other macros are documented in ../droid-configs-device/droid-configs.inc +# Feel free to cleanup this file by removing comments, once you have memorised them ;) + +%define device hammerhead +%define vendor lge + +%define vendor_pretty LG +%define device_pretty Nexus 5 + +%define dcd_path ./ + +# Sailfish OS is considered to-scale, if in app grid you get 4-in-a-row icons +# and 2x2 or 3x3 covers when up-to-4 or 5-or-more apps are open respectively. +# For 4-5.5" device screen sizes of 16:9 ratio, use this formula (hold portrait): +# pixel_ratio = 4.5/DiagonalDisplaySizeInches * HorizontalDisplayResolution/540 +# Other screen sizes and ratios will require more trial-and-error. +%define pixel_ratio 2.0 + +# We assume most devices will +%define have_modem 1 + +# Community HW adaptations need this +%define community_adaptation 1 + +Provides: ofono-configs + +# This file should be %%included into a device specific spec file +# where macros are defined: +# +# community_adaptation: needs to be defined for community HW adaptations +# +# Device information: +# device: should be the CM codename or the AOSP TARGET_PRODUCT +# vendor: determine the droid-side directory used for ./device/<vendor>/<device> +# device_pretty: User-visible model name of the device +# vendor_pretty: User-visible manufacturer name of the device +# rpm_device: device name used rpm-side (eg in configs) : defaults to device +# rpm_vendor: vendor name used rpm-side (eg in configs) : defaults to vendor +# ofono_enable_plugins: any additional ofono plugins that you want explicitly enabled +# ofono_disable_plugins: any ofono plugins that you want explicitly disabled + +# Device capabilities: +# remove_modem: set this if your device has no modem (e.g. a WiFi-only tablet) +# remove_bluetooth: set this if your device does not have a Bluetooth chip +# pixel_ratio: UI scaling factor, choose from 1.0, 1.5, 2.0. Any other value will +# default the icon pack to 1.0 resolution (it is a bug)! +# Read more on ways to do-it-together: https://bugs.nemomobile.org/show_bug.cgi?id=814 +# WARNING: pixel_ratio is experimental, and not yet ready for proper UI scalability +# tests! Please do not test/port your apps to other form factors for the time being. +# Ratio examples: +# Jolla1: 1.0 +# Jolla Tablet: 1.5 +# Nexus 5: 2.0 +# Nexus 4: pixel_ratio=1.3 (icon resolution then drops to 1.0) + +# Overwriting other configs: +# If your droid-config-$DEVICE needs to provide one or more device-specific +# configuration files, do the following: +# * find the package of those generic configs (e.g. rpm -qf /etc/ofono/ril_subscription.conf) +# * copy ALL files, e.g.: +# cd $ANDROID_ROOT/hybris/droid-configs/sparse/; rpm2cpio .../ofono-configs-mer...rpm | cpio -idv +# * make needed modifications for your device +# * add "Provides: PACKAGE" to your droid-config-$DEVICE.spec (e.g. Provides: ofono-configs) + + +# We assume all devices have a cellular modem, unless explicitly removed: +%if 0%{!?remove_modem:1} +%define have_modem 1 +%endif + +# We assume all devices have Bluetooth, unless explicitly removed: +%if 0%{!?remove_bluetooth:1} +%define have_bluetooth 1 +%endif + +# dcd_path is defined for hysterical reasons (coming from dhd builds on OBS) +# now obsolete, hence always the default: +%define dcd_path . + +# dcd_common is the common stuff and dcd_sparse is the common sparse +%define dcd_common %{dcd_path}/droid-configs-device +%define dcd_sparse droid-configs-device/sparse + +# Set defaults if not defined already: +%if 0%{!?rpm_device:1} +%define rpm_device %{device} +%endif +%if 0%{!?rpm_vendor:1} +%define rpm_vendor %{vendor} +%endif + +%define board_mapping_dir %{_datadir}/ssu/board-mappings.d +%define board_mapping_file %{board_mapping_dir}/05-%{rpm_vendor}-%{rpm_device}.ini + +Name: droid-config-%{rpm_device} +Provides: droid-config +Summary: Config packages for Droid HAL adaptations +Version: 1 +Release: 1 +Group: Configs +License: GPLv2 +Source0: %{name}-%{version}.tar.bz2 +BuildRequires: ssu-kickstart-configuration +BuildRequires: pkgconfig(android-headers) +BuildRequires: repomd-pattern-builder +BuildRequires: qt5-qttools-kmap2qmap +Requires: droid-hal +%if 0%{?community_adaptation:1} +# because it provides one ssu feature, do: +Requires: community-adaptation +# because it has a template for dhc to provide a ssu feature, do: +BuildRequires: community-adaptation +%endif +%if 0%{?have_bluetooth:1} +Provides: bluetooth-rfkill-event-configs +# Device-specific obexd configuration common to BlueZ 4 & 5 +Requires: obexd-calldata-provider +Requires: obexd-contentfilter-helper +Provides: obexd-configs + +# Require a BlueZ configuration +Requires: %{rpm_device}-bluez-configs +%endif +# The pc_suite usb mode (implies obex) can conflict with bluez5 +Conflicts: usb-moded-pc-suite-mode-android +Obsoletes: usb-moded-pc-suite-mode-android +# Config packages from usb-moded source with overlapping purposes +Conflicts: usb-moded-mtp-mode-android-ffs +Obsoletes: usb-moded-mtp-mode-android-ffs +%description +%{summary}. + +%package ssu-kickstarts +Provides: droid-config-ssu-kickstarts +Summary: Kickstarts for Droid HAL +Provides: image-configurations + +%description ssu-kickstarts +%{summary}. + +################################################################ +%package patterns +Summary: Repository patterns for %{rpm_device} hw +Provides: droid-config-patterns +Provides: package-groups + +%description patterns +%{summary}. + +################################################################ +%package policy-settings +Summary: Policy settings for %{rpm_device} hw +Provides: droid-config-policy-settings +Requires: ohm >= 1.1.16 +Requires: ohm-plugins-misc >= 1.2.0 +Requires: ohm-plugins-dbus +Requires: ohm-plugin-telephony +Requires: ohm-plugin-signaling +Requires: ohm-plugin-media +Requires: ohm-plugin-accessories +Requires: ohm-plugin-resolver +Requires: ohm-plugin-ruleengine +Requires: ohm-plugin-profile +Requires: ohm-plugin-route +Requires: pulseaudio-modules-nemo-common >= 11.1.24 +Requires: pulseaudio-policy-enforcement >= 11.1.35 +Requires: policy-settings-common >= 0.7.3 +Obsoletes: ohm-config <= 1.1.15 +# ohm-configs-default should not be installed ever, thus no version +# specification defined here. +Obsoletes: ohm-configs-default +Provides: ohm-configs > 1.1.15 +Provides: policy-settings + +%description policy-settings +%{summary}. + +################################################################ +%package kickstart-configuration +Summary: Kickstart configuration for %{rpm_device} +Provides: droid-config-kickstart-configuration +Requires: ssu-kickstart-configuration +Provides: droid-hal-kickstart-configuration +# the %{name} contains ssu.ini file which is needed to build kickstarts +Requires: %{name} = %{version}-%{release} + +%description kickstart-configuration +%{summary}. + +################################################################ +%package preinit-plugin +Summary: Preinit plugins for %{rpm_device} +Provides: droid-config-preinit-plugins + +%description preinit-plugin +%{summary}. + +################################################################ +%package pulseaudio-settings