blob: 48f811bd595a05358e435564e90dd0185c7b1205 [file] [log] [blame]
Serge Bazanski731d00a2020-02-03 19:08:07 +01001genrule(
2 name = "bzImage",
3 srcs = [
4 "@linux//:all",
5 "linux-smalltown.config",
6 ],
7 outs = [
8 "bzImage",
9 ],
10 cmd = """
11 DIR=external/linux
12
13 mkdir $$DIR/.bin
14
15 cp $(location linux-smalltown.config) $$DIR/.config
16
17 (cd $$DIR && make -j $$(nproc) >/dev/null)
18
19 cp $$DIR/arch/x86/boot/bzImage $(RULEDIR)
20 """,
21 visibility = ["//visibility:public"],
22)
Lorenz Brun547b33f2020-04-23 15:27:06 +020023
24filegroup(
25 name = "kernel-config",
26 srcs = ["linux-smalltown.config"],
27 visibility = ["//visibility:public"],
28)