mobile.mk 3.27 KB
Newer Older
1
# enables tty on the mobile device using a hotkey
2 3 4 5 6 7
mixin/ttyescape: use/services; @:
ifneq (,$(filter-out riscv64,$(ARCH)))
	@$(call add,THE_PACKAGES,hkdm ttyescape)
	@$(call add,DEFAULT_SYSTEMD_SERVICES_ENABLE,hkdm)
endif

8
mixin/mobile-base:: use/ntp/chrony use/repo use/branding/notes use/x11-autostart \
9
	use/deflogin/privileges use/deflogin/xgrp use/deflogin/hardware \
10
	use/deflogin/root use/l10n/ru_RU use/xdg-user-dirs \
11
	use/drm use/firmware mixin/ttyescape +plymouth +pipewire \
12 13
	use/services/bluetooth-enable use/luks/touchscreen \
	use/wireless
Anton Midyukov's avatar
Anton Midyukov committed
14 15 16 17 18
ifeq (sisyphus,$(BRANCH))
	@$(call set,BRANDING,alt-mobile-sisyphus)
else
	@$(call set,BRANDING,alt-mobile)
endif
19
	@$(call add,THE_BRANDING,graphics notes indexhtml)
20
	@$(call add,THE_LISTS,mobile/base)
21
	@$(call add,THE_PACKAGES,polkit-rule-mobile)
22
	@$(call add,THE_PACKAGES,mesa-dri-drivers)
23 24 25
	@$(call add,THE_PACKAGES,eg25-manager)
	@$(call add,THE_PACKAGES,udev-rules-modem-power)
	@$(call set,UBOOT_TIMEOUT,5)
26 27 28 29 30
	@$(call add,USERS,altlinux:271828:1:1)
	@$(call set,LOCALES,ru_RU en_US)
	@$(call set,LOCALE,ru_RU)
	@$(call add,CONTROL,fusermount:public)
	@$(call add,CONTROL,libnss-role:disabled)
31
	@$(call add,DEFAULT_SYSTEMD_SERVICES_ENABLE,waked.service)
32

33
mixin/phosh: use/services +nm-gtk4 +nm-native
Anton Midyukov's avatar
Anton Midyukov committed
34
	@$(call add,THE_BRANDING,phosh-settings)
35
	@$(call add,THE_LISTS,mobile/phosh)
36
	@$(call add,DEFAULT_SERVICES_ENABLE,phosh)
37
	@$(call set,DEFAULT_SESSION,phosh)
38
	@$(call add,THE_PACKAGES,dconf-epiphany-mobile-user-agent)
39 40 41 42 43 44
ifeq (sisyphus,$(BRANCH))
	@$(call add,THE_PACKAGES,nautilus)
else
	@$(call add,THE_PACKAGES,portfolio)
endif

45

46 47
ifneq (sisyphus,$(BRANCH))
mixin/mobile-base::
48
	@$(call add,THE_LISTS,mobile/AD)
49
endif
50

51
ifeq (vm,$(IMAGE_CLASS))
52
vm/.phosh: vm/systemd mixin/mobile-base mixin/phosh +systemd \
53 54
	mixin/waydroid use/fonts/ttf/google \
	use/auto-resize
55
	@$(call add,THE_LISTS,mobile/apps)
56 57 58
ifeq (sisyphus,$(BRANCH))
	@$(call add,THE_PACKAGES,gnome-maps)
endif
59

60 61
vm/alt-mobile-phosh-def: vm/.phosh mixin/uboot-extlinux-efi use/tty/S0; @:
ifneq (,$(filter-out sisyphus,$(BRANCH)))
62
	@$(call set,KFLAVOURS,un-def)
63
endif
64 65

ifeq (aarch64,$(ARCH))
66
mixin/mobile-pine: mixin/uboot-extlinux use/tty/S2
67
	@$(call set,KFLAVOURS,pine)
68
	@$(call add,THE_PACKAGES,alsa-ucm-conf-pinephone-pro-workaround)
69
	@$(call add,THE_PACKAGES,udev-rules-goodix-touchpad)
70

71
mixin/mobile-mp: mixin/uboot-extlinux use/tty/S0
72 73
	@$(call set,KFLAVOURS,mp)

74 75
mixin/mobile-lt11i: mixin/uboot-extlinux use/tty/S0
	@$(call set,KFLAVOURS,lt11i)
76
	@$(call add,THE_PACKAGES,lt11i-bluetooth)
77
	@$(call add,THE_PACKAGES,firmware-lt11i)
78
	@$(call add,THE_PACKAGES,blacklist-lt11i-camera)
79 80 81 82

mixin/mobile-nxp: mixin/uboot-extlinux use/tty/S0
	@$(call set,KFLAVOURS,nxp)

83 84 85
mixin/mobile-rocknix: mixin/uboot-extlinux use/tty/S0
	@$(call set,KFLAVOURS,rocknix)
	@$(call add,THE_PACKAGES,u-boot-rockchip)
86
	@$(call add,THE_PACKAGES,rg552-hw-control)
87
	@$(call add,THE_PACKAGES,udev-rules-goodix-touchpad)
88 89
	@$(call add,DEFAULT_SYSTEMD_SERVICES_ENABLE,rg552-fancontrol.service)
	@$(call add,DEFAULT_SYSTEMD_SERVICES_ENABLE,rg552-wifi.service)
90

91
vm/alt-mobile-phosh-pine: vm/.phosh mixin/mobile-pine; @:
92
vm/alt-mobile-phosh-mp: vm/.phosh mixin/mobile-mp; @:
93 94
vm/alt-mobile-phosh-lt11i: vm/.phosh mixin/mobile-lt11i; @:
vm/alt-mobile-phosh-nxp: vm/.phosh mixin/mobile-nxp; @:
95
vm/alt-mobile-phosh-rocknix: vm/.phosh mixin/mobile-rocknix; @:
96 97
endif
endif