wip rootfsxz
This commit is contained in:
parent
dab7485e5b
commit
64f6c53d60
14
rules.bzl
14
rules.bzl
@ -70,10 +70,22 @@ _lxcconfig = rule(
|
|||||||
def lxcconfig(name, src):
|
def lxcconfig(name, src):
|
||||||
_lxcconfig(name = name+"/config", src = src)
|
_lxcconfig(name = name+"/config", src = src)
|
||||||
pkg_tar(
|
pkg_tar(
|
||||||
name = name + "txz",
|
name = name + ".config",
|
||||||
extension = "tar.xz",
|
extension = "tar.xz",
|
||||||
srcs = [name+"/config"],
|
srcs = [name+"/config"],
|
||||||
remap_paths = {
|
remap_paths = {
|
||||||
name: "",
|
name: "",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def lxcbundle(name, src):
|
||||||
|
rootfsname = name+"-rootfs"
|
||||||
|
rootfs(name = rootfsname, src = src)
|
||||||
|
lxcconfig(name, src = src)
|
||||||
|
native.genrule(
|
||||||
|
name = rootfsname + ".xz",
|
||||||
|
srcs = [rootfsname],
|
||||||
|
outs = [rootfsname + ".xz"],
|
||||||
|
cmd = "xz -cf $< > $@",
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user