forked from QubesOS/qubes-vmm-xen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.builder
30 lines (26 loc) · 1.12 KB
/
Makefile.builder
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
ifeq ($(PACKAGE_SET),dom0)
RPM_SPEC_FILES := xen.spec
else ifeq ($(PACKAGE_SET),vm)
ARCH_BUILD_DIRS := archlinux
ifeq ($(DIST),centos8)
RPM_SPEC_FILES := xen.spec
endif
ifeq ($(DISTRIBUTION),qubuntu)
DEBIAN_BUILD_DIRS := debian-vm/debian
SOURCE_COPY_IN := source-debian-xen-copy-in
else ifneq ($(filter $(DIST),jessie stretch buster bullseye),)
DEBIAN_BUILD_DIRS := debian-vm/debian
SOURCE_COPY_IN := source-debian-xen-copy-in
endif
endif
NO_ARCHIVE := 1
source-debian-xen-copy-in: VERSION = $(shell cat $(ORIG_SRC)/version)
source-debian-xen-copy-in: ORIG_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/xen_$(subst -,~,$(VERSION)).orig.tar.gz"
source-debian-xen-copy-in: SRC_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/xen-$(VERSION).tar.gz"
source-debian-xen-copy-in:
mkdir -p "$(CHROOT_DIR)/$(DIST_SRC)/debian/patches"
$(ORIG_SRC)/debian-quilt $(ORIG_SRC)/series-debian-vm.conf $(CHROOT_DIR)/$(DIST_SRC)/debian/patches
tar xfz $(SRC_FILE) -C $(CHROOT_DIR)/$(DIST_SRC)/debian-vm --strip-components=1
rm -f $(CHROOT_DIR)/$(DIST_SRC)/debian-vm/rel
rm -f $(CHROOT_DIR)/$(DIST_SRC)/debian-vm/version
cp $(SRC_FILE) $(ORIG_FILE)