hexware-kernel/Makefile

39 lines
1.3 KiB
Makefile
Raw Normal View History

2024-07-26 03:09:31 +03:00
BUILD_DIR=.build
all: kernel qemu
kernel: kernel.build
cp $(BUILD_DIR)/kernel/*.deb $(BUILD_DIR)
qemu:
cp $(BUILD_DIR)/qemu/*.deb $(BUILD_DIR)
kernel.build: kernel.prepare
2024-07-26 15:02:41 +03:00
cd $(BUILD_DIR)/kernel && make deb
2024-07-26 03:09:31 +03:00
qemu.build: kernel.prepare
2024-07-26 15:02:41 +03:00
cd $(BUILD_DIR)/qemu && make deb
2024-07-26 03:09:31 +03:00
kernel.prepare: | submodule
2024-07-26 14:41:19 +03:00
mkdir -p $(BUILD_DIR)/kernel/patches/kernel
2024-07-26 03:09:31 +03:00
ln -sf $$(readlink -f submodules/pve-kernel/debian) $(BUILD_DIR)/kernel/
ln -sf $$(readlink -f submodules/pve-kernel/submodules) $(BUILD_DIR)/kernel/
2024-07-26 14:41:19 +03:00
cp -r submodules/pve-kernel/patches/kernel/* $(BUILD_DIR)/kernel/patches/kernel
2024-07-26 03:09:31 +03:00
cp -r patches/kernel/* $(BUILD_DIR)/kernel/patches/kernel
2024-07-26 14:59:59 +03:00
cp submodules/pve-kernel/* $(BUILD_DIR)/kernel/ || true
2024-07-26 03:09:31 +03:00
qemu.prepare: | submodule
mkdir -p $(BUILD_DIR)/qemu/debian/
ln -sf $$(readlink -f submodules/pve-qemu/qemu) $(BUILD_DIR)/qemu/
cp -r submodules/pve-qemu/debian/* $(BUILD_DIR)/qemu/debian
cp -r patches/qemu/* $(BUILD_DIR)/qemu/debian/patches/pve
2024-07-26 14:59:59 +03:00
cp submodules/pve-qemu/* $(BUILD_DIR)/qemu/ || true
2024-07-26 03:09:31 +03:00
.PHONY: submodule
submodule:
git submodule update --init --recursive
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)