Update Makefile
This commit is contained in:
parent
36647eb85c
commit
6b8afd3f43
8
Makefile
8
Makefile
@ -5,15 +5,16 @@ all: kernel qemu
|
|||||||
kernel: kernel.build
|
kernel: kernel.build
|
||||||
cp $(BUILD_DIR)/kernel/*.deb $(BUILD_DIR)
|
cp $(BUILD_DIR)/kernel/*.deb $(BUILD_DIR)
|
||||||
|
|
||||||
qemu:
|
qemu: qemu.build:
|
||||||
cp $(BUILD_DIR)/qemu/*.deb $(BUILD_DIR)
|
cp $(BUILD_DIR)/qemu/*.deb $(BUILD_DIR)
|
||||||
|
|
||||||
kernel.build: kernel.prepare
|
kernel.build: kernel.prepare
|
||||||
cd $(BUILD_DIR)/kernel && make deb
|
cd $(BUILD_DIR)/kernel && make deb
|
||||||
|
|
||||||
qemu.build: kernel.prepare
|
qemu.build: kernel.prepare
|
||||||
cd $(BUILD_DIR)/qemu && make deb
|
cd $(BUILD_DIR)/qemu/qemu
|
||||||
|
meson subprojects download || meson subprojects download
|
||||||
|
cd .. && make deb
|
||||||
|
|
||||||
kernel.prepare: | submodule
|
kernel.prepare: | submodule
|
||||||
mkdir -p $(BUILD_DIR)/kernel/patches/kernel
|
mkdir -p $(BUILD_DIR)/kernel/patches/kernel
|
||||||
@ -28,6 +29,7 @@ qemu.prepare: | submodule
|
|||||||
ln -sf $$(readlink -f submodules/pve-qemu/qemu) $(BUILD_DIR)/qemu/
|
ln -sf $$(readlink -f submodules/pve-qemu/qemu) $(BUILD_DIR)/qemu/
|
||||||
cp -r submodules/pve-qemu/debian/* $(BUILD_DIR)/qemu/debian
|
cp -r submodules/pve-qemu/debian/* $(BUILD_DIR)/qemu/debian
|
||||||
cp -r patches/qemu/* $(BUILD_DIR)/qemu/debian/patches/pve
|
cp -r patches/qemu/* $(BUILD_DIR)/qemu/debian/patches/pve
|
||||||
|
cd $(BUILD_DIR)/qemu/debian/patches && find pve -type f | grep 'pve/9' >> series && cd -
|
||||||
cp submodules/pve-qemu/* $(BUILD_DIR)/qemu/ || true
|
cp submodules/pve-qemu/* $(BUILD_DIR)/qemu/ || true
|
||||||
|
|
||||||
.PHONY: submodule
|
.PHONY: submodule
|
||||||
|
Loading…
Reference in New Issue
Block a user