forked from marmarek/old-qubes-vmm-xen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.builder
28 lines (23 loc) · 1.06 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
ifeq ($(PACKAGE_SET),dom0)
RPM_SPEC_FILES := xen.spec
SOURCE_COPY_IN := source-xen-copy-in
else ifeq ($(PACKAGE_SET),vm)
RPM_SPEC_FILES := xen-vm.spec
ARCH_BUILD_DIRS := archlinux
ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
DEBIAN_BUILD_DIRS := debian-vm/debian
SOURCE_COPY_IN := source-debian-xen-copy-in
endif
endif
source-xen-copy-in:
DIST_SRC="$(CHROOT_DIR)/$(DIST_SRC)" \
DIST_SRC_ROOT="$(CHROOT_DIR)/$(DIST_SRC_ROOT)" \
$(ORIG_SRC)/qubes-builder-pre-hook.sh
source-debian-xen-copy-in: VERSION = $(shell cat $(ORIG_SRC)/version)
source-debian-xen-copy-in: ORIG_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/xen_$(VERSION).orig.tar.gz"
source-debian-xen-copy-in: SRC_FILE = "$(CHROOT_DIR)/$(DIST_SRC)/xen-$(VERSION).tar.gz"
source-debian-xen-copy-in:
-$(shell $(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
tar cfz $(ORIG_FILE) --exclude-vcs --exclude=debian -C $(CHROOT_DIR)/$(DIST_SRC)/debian-vm .
# vim: filetype=make