summaryrefslogtreecommitdiffstats
path: root/core/modules/qemukvm/module.build
blob: 2add4733e523da63914a823f682912c9b20df0b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
fetch_source() {
	:
}

build() {
	COPYLIST="list_dpkg_output"
	[ -e "$COPYLIST" ] && rm "$COPYLIST"
	list_packet_files >> "$COPYLIST"


	tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"

	# add irqbypass kernel module needed by kvm
	# TODO this seems to be dependent on the kernel version, so make it check that....
	cd "${KERNEL_BASE_DIR}"
	tarcopy "lib/modules/${TARGET_KERNEL_LONG}/kernel/virt" "${MODULE_BUILD_DIR}"
	cd - &>/dev/null
}

post_copy() {
	# qemu-bridge-helper needs suid to be called within run-virt
	find ${TARGET_BUILD_DIR} -type f -executable -name "*qemu-bridge-helper*" -exec chmod u+s {} \;
}