blob: 48f811bd595a05358e435564e90dd0185c7b1205 [file] [log] [blame]
genrule(
name = "bzImage",
srcs = [
"@linux//:all",
"linux-smalltown.config",
],
outs = [
"bzImage",
],
cmd = """
DIR=external/linux
mkdir $$DIR/.bin
cp $(location linux-smalltown.config) $$DIR/.config
(cd $$DIR && make -j $$(nproc) >/dev/null)
cp $$DIR/arch/x86/boot/bzImage $(RULEDIR)
""",
visibility = ["//visibility:public"],
)
filegroup(
name = "kernel-config",
srcs = ["linux-smalltown.config"],
visibility = ["//visibility:public"],
)