-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
89 lines (80 loc) · 2.95 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# destinations
DESTDIR =
INSTALLER_DIR = /opt/xensource/installer
EFI_DIR = /EFI/xenserver
SERVICE_DIR = usr/lib/systemd/system
# root of a tree with sm.rpm unpacked
SM_ROOTDIR =
INSTALL = install
install:
$(INSTALL) -d $(DESTDIR)/usr/bin
$(INSTALL) -m755 support.sh $(DESTDIR)/usr/bin
$(INSTALL) -d $(DESTDIR)$(INSTALLER_DIR)/tui/installer/
$(INSTALL) -m755 init $(DESTDIR)$(INSTALLER_DIR)/
$(INSTALL) -m644 \
keymaps \
timezones \
answerfile.py \
backend.py \
common_criteria_firewall_rules \
constants.py \
disktools.py \
diskutil.py \
driver.py \
fcoeutil.py \
generalui.py \
hardware.py \
init_constants.py \
install.py \
netinterface.py \
netutil.py \
product.py \
report.py \
repository.py \
restore.py \
scripts.py \
snackutil.py \
uicontroller.py \
upgrade.py \
util.py \
xelogging.py \
$(DESTDIR)$(INSTALLER_DIR)/
$(INSTALL) -m644 \
tui/__init__.py \
tui/init.py \
tui/fcoe.py \
tui/network.py \
tui/progress.py \
tui/repo.py \
$(DESTDIR)$(INSTALLER_DIR)/tui/
$(INSTALL) -m644 \
tui/installer/__init__.py \
tui/installer/screens.py \
$(DESTDIR)$(INSTALLER_DIR)/tui/installer/
# Startup files
$(INSTALL) -d \
$(DESTDIR)/$(SERVICE_DIR) \
$(DESTDIR)/etc/modprobe.d \
$(DESTDIR)/etc/modules-load.d \
$(DESTDIR)/etc/dracut.conf.d \
$(DESTDIR)/etc/systemd/system/systemd-udevd.d
$(INSTALL) -m755 startup/interface-rename-sideway $(DESTDIR)/$(INSTALLER_DIR)
$(INSTALL) -m644 startup/functions $(DESTDIR)/$(INSTALLER_DIR)
$(INSTALL) -m644 startup/bnx2x.conf $(DESTDIR)/etc/modprobe.d/
$(INSTALL) -m644 startup/blacklist $(DESTDIR)/etc/modprobe.d/installer-blacklist.conf
$(INSTALL) -m644 startup/modprobe.mlx4 $(DESTDIR)/etc/modprobe.d/mlx4.conf
$(INSTALL) -m644 startup/iscsi-modules $(DESTDIR)/etc/modules-load.d/iscsi.conf
$(INSTALL) -m755 startup/preinit startup/S05ramdisk $(DESTDIR)/$(INSTALLER_DIR)/
$(INSTALL) -m644 startup/systemd-udevd_depmod.conf $(DESTDIR)/etc/systemd/system/systemd-udevd.d/installer.conf
$(INSTALL) -m644 startup/interface-rename-sideway.service $(DESTDIR)/$(SERVICE_DIR)
# Generate a multipath configuration from sm's copy, removing
# the blacklist and blacklist_exception sections.
sed 's/\(^[[:space:]]*find_multipaths[[:space:]]*\)yes/\1no/' \
< $(SM_ROOTDIR)/etc/multipath.xenserver/multipath.conf \
> $(DESTDIR)/etc/multipath.conf.disabled
# bootloader files
$(INSTALL) -D -m644 bootloader/grub.cfg $(DESTDIR)$(EFI_DIR)/grub.cfg
$(INSTALL) -D -m644 bootloader/grub.cfg $(DESTDIR)$(EFI_DIR)/grub-usb.cfg
patch < bootloader/grub-usb.patch $(DESTDIR)$(EFI_DIR)/grub-usb.cfg
printf "echo Skipping initrd creation in the installer\nexit 0\n" \
> $(DESTDIR)/etc/dracut.conf.d/installer.conf