hexware-kernel/Makefile

37 lines
1.4 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)
2024-07-26 19:12:55 +03:00
qemu: qemu.build
2024-07-26 03:09:31 +03:00
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
2024-07-26 19:21:28 +03:00
qemu.build: qemu.prepare
2024-07-26 19:24:18 +03:00
cd $(BUILD_DIR)/qemu && make deb
2024-07-26 03:09:31 +03:00
2024-07-26 19:21:28 +03:00
kernel.prepare:
git submodule update --init --recursive submodules/pve-kernel
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
2024-07-26 19:21:28 +03:00
qemu.prepare:
git submodule update --init submodules/pve-qemu
2024-07-26 03:09:31 +03:00
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 19:08:50 +03:00
cd $(BUILD_DIR)/qemu/debian/patches && find pve -type f | grep 'pve/9' >> series && cd -
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: clean
clean:
rm -rf $(BUILD_DIR)