config.mk 7.41 KB
Newer Older
Michael Shigorin's avatar
Michael Shigorin committed
1
# alterator-based installer, second (livecd) stage
2 3 4

+installer: use/install2/full; @:

5
use/install2: use/stage2 sub/stage2@install2 use/metadata \
6 7
	use/cleanup/installer use/install2/autoinstall \
	use/syslinux/install2.cfg use/grub/install2.cfg
8
	@$(call add_feature)
9
	@$(call add,INSTALL2_PACKAGES,installer-common-stage2)
10
	@$(call try,INSTALLER,regular)	# might be replaced later
11
	@$(call add,INSTALL2_PACKAGES,installer-distro-$$(INSTALLER)-stage2)
12
	@$(call add,INSTALL2_PACKAGES,branding-$$(BRANDING)-alterator)
13
	@$(call add,BASE_PACKAGES,branding-$$(BRANDING)-release)
14
	@$(call add,BASE_PACKAGES,installer-distro-$$(INSTALLER)-stage3)
15
	@$(call add,BASE_PACKAGES,installer-common-stage3)
16
	@$(call add,BASE_PACKAGES,glibc-gconv-modules)	# for guile22
17
	@$(call add,BASE_LISTS,$(call tags,basesystem && !alterator))
18
	@$(call xport,BASE_BOOTLOADER)
19
	@$(call xport,INSTALL2_CLEANUP_PACKAGES)
20
	@$(call xport,INSTALL2_CLEANUP_KDRIVERS)
Anton Midyukov's avatar
Anton Midyukov committed
21
	@$(call add,INSTALL2_PACKAGES,lsof)
22
	@$(call add,INSTALL2_PACKAGES,mdadm)
23
	@$(call add,BASE_PACKAGES,e2fsprogs mdadm)
24

25
# doesn't use/install2/fs on purpose (at least so far)
26 27
use/install2/full: \
	use/install2/packages use/install2/vmguest use/install2/tools \
28
	use/install2/lvm use/install2/cryptsetup \
29 30
	use/syslinux/localboot.cfg use/grub/localboot_bios.cfg \
	use/syslinux/ui/menu use/bootloader
31
	@$(call add,INSTALL2_PACKAGES,xorg-drv-synaptics)
32
	@$(call add,INSTALL2_PACKAGES,xorg-drv-libinput)
33

34 35 36 37 38
use/install2/oem: use/install2
	@$(call add,INSTALL2_PACKAGES,installer-feature-oem-stage2)
	@$(call add,MAIN_PACKAGES,alterator-setup)
	@$(call add,MAIN_PACKAGES,installer-feature-alterator-setup-stage2)

39 40 41 42 43 44 45 46
use/install2/lvm: use/install2
	@$(call add,INSTALL2_PACKAGES,lvm2)
	@$(call add,BASE_PACKAGES,lvm2)

use/install2/cryptsetup: use/install2
	@$(call add,INSTALL2_PACKAGES,cryptsetup)
	@$(call add,BASE_PACKAGES,cryptsetup)

47 48 49 50
# for distributions with their own -stage3 installer part
use/install2/stage3: use/install2
	@$(call add,BASE_PACKAGES,installer-$$(INSTALLER)-stage3)

51
# just an alias, better use its endpoint directly
52
use/install2/fonts: use/fonts/install2; @:
53

54
# see also use/vmguest
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
ifeq (,$(filter-out i586 x86_64 aarch64 armh ppc64le,$(ARCH)))

# see also use/vmguest/kvm; qxl included in xorg pkglist
use/install2/kvm:
	@$(call add,INSTALL2_PACKAGES,spice-vdagent xorg-drv-qxl)

ifeq (,$(filter-out i586 x86_64,$(ARCH)))

# virtualbox guest support for installer
use/install2/vbox:
	@$(call add,INSTALL2_PACKAGES,xorg-drv-vboxvideo)

# see also use/vmguest/vmware
use/install2/vmware:
	@$(call add,STAGE1_KMODULES,vmware)
	@$(call add,STAGE1_KMODULES,scsi)	# mptspi in led-ws
71
	@$(call add,INSTALL2_PACKAGES,xorg-dri-vmwgfx xorg-drv-vmware xorg-drv-vmmouse)
72

73 74
use/install2/vmguest: use/install2/kvm use/install2/vbox use/install2/vmware; @:

75 76 77 78 79 80 81 82 83 84 85
else

use/install2/vmguest: use/install2/kvm; @:

endif
else

use/install2/vmguest: ; @:

endif

86 87 88
# stash local packages within installation media
use/install2/packages: use/install2 use/repo/main; @:

89
# set up remote repositories within installed system out-of-box
90 91
use/install2/repo: use/install2; @:
ifneq (,$(filter-out e2k%,$(ARCH)))
92
	@$(call add,INSTALL2_PACKAGES,installer-feature-online-repo)
93
endif
94

95
# for alterator-pkg to use
96 97
use/install2/net: use/install2
	@$(call add,INSTALL2_PACKAGES,curl)
98

99 100
# for autoinstall
use/install2/autoinstall:
101
	@$(call add,INSTALL2_PACKAGES,alterator-postinstall)
102 103
	@$(call add,BASE_PACKAGES,alterator-postinstall)

104 105
# NB: sort of conflicts with use/install2/cleanup/vnc
use/install2/vnc:
106
	@$(call add,INSTALL2_PACKAGES,x11vnc xterm net-tools)
107 108

# this one expects external vncviewer to come
109 110
use/install2/vnc/listen: use/install2/vnc \
	use/syslinux/install-vnc-listen.cfg use/grub/install-vnc-listen.cfg; @:
111 112

# this one connects to a specified vncviewer --listen
113 114
use/install2/vnc/connect: use/install2/vnc \
	use/syslinux/install-vnc-connect.cfg use/grub/install-vnc-connect.cfg; @:
115 116 117

# add both bootloader items to be *that* explicit ;-)
use/install2/vnc/full: use/install2/vnc/listen use/install2/vnc/connect; @:
118

119 120 121 122
# filesystems handling
use/install2/fs: use/install2/xfs use/install2/jfs use/install2/reiserfs; @:

use/install2/xfs:
123
	@$(call add,SYSTEM_PACKAGES,xfsprogs)
124 125

use/install2/jfs:
126
	@$(call add,SYSTEM_PACKAGES,jfsutils)
127 128

use/install2/reiserfs:
129
	@$(call add,SYSTEM_PACKAGES,reiserfsprogs)
130

131
use/install2/fat:
132
	@$(call add,SYSTEM_PACKAGES,dosfstools fatresize)
133

134 135 136
# prepare bootloader for software suspend (see also live)
use/install2/suspend:
	@$(call add,INSTALL2_PACKAGES,installer-feature-desktop-suspend-stage2)
137 138 139 140

# extras
use/install2/tools:
	@$(call add,INSTALL2_PACKAGES,pxz)
141 142 143
	@$(call add,INSTALL2_PACKAGES,fdisk gdisk parted partclone)
	@$(call add,INSTALL2_PACKAGES,vim-console)
	@$(call add,INSTALL2_PACKAGES,net-tools openssh-clients lftp)
144 145 146 147

# when VNC installation is less welcome than a few extra megs
use/install2/cleanup/vnc:
	@$(call add,INSTALL2_CLEANUP_PACKAGES,x11vnc xorg-xvfb)
148

149 150 151 152 153
# when VNC installation is less welcome than a few extra megs
use/install2/cleanup/dri:
	@$(call set,INSTALL2_CLEANUP_DRI,yes)
	@$(call xport,INSTALL2_CLEANUP_DRI)

154 155 156 157 158
# leave only cirrus, fbdev, qxl, vesa in vm-targeted images
use/install2/cleanup/x11-hwdrivers:
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-ati xorg-drv-intel)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-glamor)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-mach64 xorg-drv-mga)
159
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-nouveau)
160
	@$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-r128 xorg-drv-radeon)
161 162 163

# massive purge of anything not critical to installer boot (l10n included!)
use/install2/cleanup/everything: use/install2/cleanup/x11-hwdrivers \
164
	use/install2/cleanup/vnc
165
	@$(call add,INSTALL2_CLEANUP_PACKAGES,glibc-locales)
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libX11-locales alterator-l10n)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,kbd-data kbd console-scripts)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,shadow-convert)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libXaw xmessage xconsole)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,libncurses libncursesw) # top
	@$(call add,INSTALL2_CLEANUP_PACKAGES,openssl) # net-functions
	@$(call add,INSTALL2_CLEANUP_PACKAGES,vitmp vim-minimal)
	@$(call add,INSTALL2_CLEANUP_PACKAGES,udev-hwdb pciids)

# this conflicts with efi (which needs efivars.ko)
use/install2/cleanup/kernel/firmware:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firmware/)

# drop drivers expected to be useless in virtual environment
use/install2/cleanup/kernel/non-vm:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firewire/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/bonding/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/ppp/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/slip/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/team/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/usb/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/platform/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/tty/serial/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/bridge/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/openvswitch/)

# this would need extra handling anyways
use/install2/cleanup/kernel/storage:
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/aoe/)
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/drbd/)

# burn it down
use/install2/cleanup/kernel/everything: \
	use/install2/cleanup/kernel/storage \
	use/install2/cleanup/kernel/non-vm \
	use/install2/cleanup/kernel/firmware
	@$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/ata/pata_*)