From 388c0fbbf5174963d532b34d6eb8851a599ed82f Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Sun, 26 Mar 2023 23:10:06 +0700 Subject: [PATCH] phone.mk: initial config with pinephone support --- conf.d/phone.mk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 conf.d/phone.mk diff --git a/conf.d/phone.mk b/conf.d/phone.mk new file mode 100644 index 00000000..27c8cf9e --- /dev/null +++ b/conf.d/phone.mk @@ -0,0 +1,28 @@ +mixin/phosh: use/x11/gdm use/x11-autologin +pipewire +nm +nm-native + @$(call add,THE_PACKAGES,phosh mutter-gnome xorg-xwayland) + @$(call add,THE_PACKAGES,bluez) + @$(call add,DEFAULT_SERVICES_ENABLE,bluetoothd) + @$(call set,DEFAULT_SESSION,phosh) + +ifeq (vm,$(IMAGE_CLASS)) +vm/.phosh: vm/systemd use/efi/grub +systemd \ + mixin/regular-vm-base mixin/regular-x11 \ + mixin/regular-desktop mixin/phosh use/deflogin/root \ + use/deflogin/privileges use/deflogin/xgrp use/deflogin/hardware \ + use/l10n/ru_RU + @$(call add,USERS,altlinux:altlinux:500:500) + @$(call set,LOCALES,ru_RU en_US) + @$(call set,LOCALE,ru_RU) + @$(call set,KFLAVOURS,un-def) + +vm/qemu-phosh: vm/.phosh use/tty/S0 +vmguest; @: +endif + +ifeq (aarch64,$(ARCH)) +# TODO: devicetree ($root)/boot/dtb/rockchip/rk3399-pinephone-pro.dtb +mixin/pinephone: use/x11/armsoc use/firmware use/uboot use/tty/S2; @: + +ifeq (vm,$(IMAGE_CLASS)) +vm/pinephone-phosh: vm/.phosh mixin/pinephone; @: +endif +endif