diff options
Diffstat (limited to 'recipes-extended/xen/mini-os.inc')
-rw-r--r-- | recipes-extended/xen/mini-os.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-extended/xen/mini-os.inc b/recipes-extended/xen/mini-os.inc new file mode 100644 index 00000000..61c27041 --- /dev/null +++ b/recipes-extended/xen/mini-os.inc | |||
@@ -0,0 +1,28 @@ | |||
1 | # Copyright (C) 2018 kebodiker <kurt.bodiker@braintrust-us.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require stubdom.inc | ||
5 | |||
6 | # clear this out to break dependency circle | ||
7 | DEPENDS = "" | ||
8 | |||
9 | do_configure() { | ||
10 | ${MAKE} -C ${WORKDIR}/mini-os links | ||
11 | } | ||
12 | |||
13 | # Nothing to configure or compile | ||
14 | do_compile[noexec] = "1" | ||
15 | |||
16 | # needed because this directory isn't typically part of a sysroot | ||
17 | SYSROOT_DIRS += "${prefix}/mini-os" | ||
18 | RDEPENDS_${PN}-dev = "perl" | ||
19 | |||
20 | FILES_${PN}-dev = "\ | ||
21 | ${prefix} \ | ||
22 | " | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${prefix}/mini-os | ||
26 | cp -r -t ${D}${prefix}/mini-os ${S}/* | ||
27 | rm -rf ${D}${prefix}/mini-os/scripts | ||
28 | } | ||