basealt.mk 4.11 KB
Newer Older
1 2
ifeq (distro,$(IMAGE_CLASS))

3
distro/alt-workstation: workstation_groups_x86 = $(addprefix workstation/,\
4
	3rdparty kvm clamav cloud-clients freecad \
5 6 7 8 9 10 11 12 13 14 15
	gtk-dictionary smartcard voip-clients)

ifeq (,$(filter-out i586 x86_64,$(ARCH)))
distro/alt-workstation: mediaplayer = workstation/vlc
endif
ifeq (,$(filter-out aarch64 armh mipsel riscv64,$(ARCH)))
distro/alt-workstation: mediaplayer = workstation/celluloid
endif
ifeq (,$(filter-out e2k%,$(ARCH)))
distro/alt-workstation: mediaplayer = workstation/smplayer
endif
16

17
distro/alt-workstation:: distro/.base +vmguest +wireless +efi \
18
	mixin/desktop-installer mixin/alt-workstation \
19
	mixin/alt-workstation-install \
20
	use/memtest use/rescue use/bootloader/grub use/luks \
21
	use/efi/shell \
22
	use/install2/repo use/install2/suspend use/live/suspend \
23 24
	use/live/install use/live/x11 use/live/repo use/live/rw \
	use/vmguest/kvm/x11 use/stage2/kms \
25
	use/branding/complete use/docs/license \
26
	use/domain-client/full use/x11/amdgpu use/x11/lightdm/gtk \
27
	use/firmware/laptop \
28
	use/e2k/multiseat/full use/e2k/x11/101 use/e2k/sound/401
29 30 31
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
	@$(call set,BOOTLOADER,grubpcboot)
endif
32
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
33
	@$(call add,MAIN_GROUPS,$(workstation_groups_x86))
34 35
endif
ifeq (,$(filter-out x86_64,$(ARCH)))
36
	@$(call add,MAIN_GROUPS,workstation/blender)
37
	@$(call add,MAIN_GROUPS,workstation/virtualbox)
38 39
	@$(call add,BASE_KMODULES,kvm virtualbox)
endif
40 41 42
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
	@$(call add,MAIN_GROUPS,workstation/flatpak)
endif
43
ifeq (,$(filter-out e2k%,$(ARCH)))
44
	@$(call add,THE_PACKAGES,python-module-serial)
45
	@$(call add,THE_PACKAGES,setup-mate-nocomposite)
46
	@$(call add,THE_PACKAGES,xorg-drv-smi)	# use/x11/smi
47
	@$(call add,THE_PACKAGES,flashrom)
48
	@$(call add,MAIN_PACKAGES,alterator-secsetup)
49
ifeq (,$(filter-out e2k,$(ARCH)))
50
	@$(call set,META_VOL_ID,ALT Workstation for Elbrus v3 (401-PC))
51 52
endif	# e2k
ifeq (,$(filter-out e2kv4,$(ARCH)))
53
	@$(call set,META_VOL_ID,ALT Workstation for Elbrus v4 (801/101-PC))
54
endif	# e2kv4
55
ifeq (,$(filter-out e2kv5,$(ARCH)))
56
	@$(call set,META_VOL_ID,ALT Workstation for Elbrus v5 (901-PC))
57
endif	# e2kv5
58
ifeq (,$(filter-out e2kv6,$(ARCH)))
59
	@$(call set,META_VOL_ID,ALT Workstation for Elbrus v6 (201-PC))
60
endif	# e2kv6
61
endif	# e2k%
62 63
	@$(call add,MAIN_GROUPS,$(mediaplayer))
	@$(call add,LIVE_LISTS,$(mediaplayer))
64
	@$(call add,RESCUE_BOOTARGS,nomodeset vga=0)
65

66 67 68 69
ifeq (,$(filter-out e2k%,$(ARCH)))
distro/alt-workstation:: +power; @:
endif

70
endif	# distro
71 72

ifeq (vm,$(IMAGE_CLASS))
73 74

vm/.alt-workstation: vm/systemd use/x11/lightdm/gtk \
75
	use/oem/distro use/repo mixin/alt-workstation
76 77
	@$(call add,THE_PACKAGES,installer-feature-lightdm-stage3)
	@$(call add,THE_PACKAGES,installer-feature-quota-stage2)
78
	@$(call add,THE_PACKAGES,alterator-gpupdate)
79 80 81
ifeq (,$(filter-out armh,$(ARCH)))
	@$(call add,THE_LISTS,workstation/libreoffice-latest)
else
82
	@$(call add,THE_LISTS,workstation/libreoffice)
83
endif
84

85 86
vm/alt-workstation:: vm/.alt-workstation  +vmguest
	@$(call add,THE_LISTS,$(mediaplayer))
87 88 89 90 91 92

ifeq (,$(filter-out aarch64 armh riscv64,$(ARCH)))
vm/alt-workstation:: use/uboot
	@$(call add,BASE_LISTS,uboot)
endif

93 94 95 96
ifeq (,$(filter-out aarch64 armh,$(ARCH)))
vm/alt-workstation:: use/no-sleep use/arm-rpi4; @:
endif

97
ifeq (,$(filter-out aarch64 armh,$(ARCH)))
98 99
vm/alt-workstation-rpi: vm/.alt-workstation use/arm-rpi4/full
	@$(call add,THE_LISTS,workstation/celluloid)
100
	@$(call set,THE_BROWSER,chromium)
101
endif
102

103
ifeq (,$(filter-out mipsel,$(ARCH)))
104 105
vm/alt-workstation::
	@$(call add,THE_PACKAGES,mate-reduced-resource)
106
	@$(call add,THE_LISTS,workstation/celluloid)
107 108 109

vm/alt-workstation-bfk3: vm/alt-workstation use/mipsel-bfk3/x11; @:
vm/alt-workstation-tavolga: vm/alt-workstation use/mipsel-mitx/x11; @:
110 111
endif

112
vm/alt-workstation-cloud: vm/systemd use/x11/lightdm/gtk use/repo \
113 114 115 116 117 118 119
	mixin/alt-workstation mixin/cloud-init use/vmguest/kvm use/tty/S0
	@$(call add,THE_PACKAGES,cloud-init-config-network-manager)
	@$(call add,THE_KMODULES,drm)
	@$(call add,VM_INITRDMODULES,sr_mod)
	@$(call add,BASE_PACKAGES,systemd-settings-disable-kill-user-processes)
	@$(call add,DEFAULT_SERVICES_ENABLE,getty@tty1 getty@ttyS0)
	@$(call add,DEFAULT_SERVICES_DISABLE,consolesaver)
120
endif