Skip to content

Commit

Permalink
Move limine_deploy into third_party/limine/limine.BUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
mempler committed Dec 16, 2023
1 parent c9f7e38 commit 901c545
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bazel/image/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _image_impl(ctx):
image = rule(
implementation = _image_impl,
attrs = {
"_limine_tool": attr.label(cfg = "exec", default = Label("//tools/limine"), doc = "The limine tool to use to install limine on HDD images.", executable = True),
"_limine_tool": attr.label(cfg = "exec", default = Label("@limine//:limine_deploy"), doc = "The limine tool to use to install limine on HDD images.", executable = True),
"_xorriso_tool": attr.label(cfg = "exec", default = Label("@xorriso//:xorriso"), doc = "The xorriso tool to use to create ISO images.", executable = True),
"srcs": attr.label_list(allow_files = True, mandatory = True, doc = "The files to include in the image."),
"type": attr.string(mandatory = True, default = "iso", values = ["iso", "hdd"], doc = "The type of image to create."),
Expand Down
9 changes: 9 additions & 0 deletions third_party/limine/limine.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ cc_library(
"limine.h",
],
)

cc_binary(
name = "limine_deploy",
srcs = [
"limine.c",
"limine.h",
"limine-bios-hdd.h",
],
)
11 changes: 0 additions & 11 deletions tools/limine/BUILD.bazel

This file was deleted.

0 comments on commit 901c545

Please sign in to comment.