-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcpp.toml
More file actions
42 lines (39 loc) · 1.73 KB
/
Copy pathmcpp.toml
File metadata and controls
42 lines (39 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# openkal on UEFI Boot Services.
#
# ⚠️ THE TARGET IS `x86_64-windows-gnu`, AND THAT IS NOT A WORKAROUND.
#
# A UEFI application is PE/COFF with subsystem 10, entered through the Microsoft
# x64 calling convention. Both are properties this toolchain already has, so
# firmware function pointers are called directly rather than through per-call
# annotations.
#
# The first analysis of this backend concluded that mcpp would need a new
# "PE freestanding" target before a UEFI application could exist. Measured: it
# does not. The three link flags below produce
# `IMAGE_SUBSYSTEM_EFI_APPLICATION (0xA)` with no DLL imports, which is what
# firmware loads.
[package]
namespace = "mcpplibs"
name = "openkal-uefi"
version = "0.6.0"
description = "An implementation of openkal on UEFI Boot Services, for applications the firmware loads before an operating system exists"
license = "Apache-2.0"
# The layer this package supplies, in the vocabulary the engine resolves.
#
# `mcpp:kernel-abi` names the platform interface a C library sits on. On a
# traditional stack that seam is unnamed — a C library issues system calls or
# calls the platform's own entry points directly — and naming it is what lets
# one C library sit above several platforms. `=openkal` is the interface this
# package answers to; several packages answer to it and the engine knows none
# of them by name.
provides = ["mcpp:kernel-abi=openkal"]
authors = ["mcpplibs"]
repo = "https://github.com/mcpplibs/openkal-uefi"
[dependencies]
openkal = "0.12.0"
[build]
flags = [
{ glob = "src/**", cxxflags = ["-fno-exceptions", "-fno-rtti",
"-fno-stack-protector",
"-fno-asynchronous-unwind-tables"] },
]