things
This commit is contained in:
@@ -1 +0,0 @@
|
||||
# TODO
|
||||
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,7 @@ source = tarball_source(
|
||||
|
||||
host_deps = ["binutils", "gcc"]
|
||||
|
||||
def _make_args(ctx, *args):
|
||||
def make_args(ctx, *args):
|
||||
# Translate arch name
|
||||
if options.target_arch == "aarch64":
|
||||
linux_arch = "arm64"
|
||||
@@ -22,8 +22,6 @@ def _make_args(ctx, *args):
|
||||
|
||||
result = [
|
||||
"make",
|
||||
"-C", ctx.source_dir,
|
||||
"O=" + ctx.build_dir,
|
||||
"ARCH=" + linux_arch,
|
||||
"CROSS_COMPILE=" + options.target_triple + "-",
|
||||
"-j" + str(ctx.jobs),
|
||||
@@ -32,10 +30,12 @@ def _make_args(ctx, *args):
|
||||
return result
|
||||
|
||||
def configure(ctx):
|
||||
ctx.run(_make_args(ctx, "defconfig"))
|
||||
ctx.run(["cp", "-rp", ctx.source_dir / ".", ctx.build_dir])
|
||||
ctx.run(["cp", ctx.files / "config." + options.target_arch, ctx.build_dir / ".config"])
|
||||
ctx.run(make_args(ctx, "olddefconfig"))
|
||||
|
||||
def build(ctx):
|
||||
ctx.run(_make_args(ctx, "bzImage"))
|
||||
ctx.run(make_args(ctx))
|
||||
|
||||
def install(ctx, pkg):
|
||||
ctx.install(
|
||||
|
||||
Reference in New Issue
Block a user