summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/module.build
blob: ebddd847c11f3851e70f932e7f7fed6709c71034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

fetch_source () {
	:
}

build () {
	# Compile pwdaemon
	mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/bin"
	gcc -D_GNU_SOURCE -std=gnu99 -o "${MODULE_BUILD_DIR}/opt/openslx/bin/pwdaemon" -Os "${MODULE_DIR}/pw_daemon.c" || perror "Could not compile the pwdaemon"
	gcc -std=gnu99 -o "${MODULE_BUILD_DIR}/opt/openslx/bin/slxfwtool" -Os "${MODULE_DIR}/fwtool/main.c" || perror "Could not compile slxfwtool"
}

post_copy() {
	chmod +s "${TARGET_BUILD_DIR}/opt/openslx/bin/slxfwtool" || perror "Could not set suid bit on slxfwtool"
}