Skip to content

Commit

Permalink
feat: hello world in erlang!
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 committed Jul 25, 2024
1 parent 4ff1f7a commit e719bd8
Show file tree
Hide file tree
Showing 37 changed files with 3,653 additions and 112 deletions.
178 changes: 178 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ version = "0.1.0"
edition = "2021"

[dependencies]
num_enum = { version = "0.7.2", default-features = false }
miniz_oxide = "0.7.4"
# bimap = { version = "0.6.3", default-features = false }
num-bigint = { version = "0.4", default-features = false }
hashbrown = "0.14"
strum = { version = "0.26", default-features = false }
strum_macros = { version = "0.26", default-features = false }
spin = "0.9.8"
Expand All @@ -16,5 +21,11 @@ anyhow = { version = "1.0.79", default-features = false }
derive_more = "0.99.17"
paste = "1.0.15"

[build-dependencies]
regex = "1.10"

[features]
trace-pmm = []
trace-malloc = []
trace-beam = []
trace-messages = []
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ clean:
mkdir build

# Emulator (the EFI executable)
PROFILE=release
PROFILE_DIR=release
CARGOFLAGS=--target x86_64-unknown-uefi-debug.json -Zbuild-std=core,compiler_builtins,alloc -Zbuild-std-features=compiler-builtins-mem
MAGIC_SECTION_OFFSET=0x140800000
RELOC_SECTION_OFFSET=0x140801000
PROFILE=dev
PROFILE_DIR=debug
CARGOFLAGS=--target x86_64-unknown-uefi-debug.json -Zbuild-std=core,compiler_builtins,alloc -Zbuild-std-features=compiler-builtins-mem --features=trace-messages
MAGIC_SECTION_OFFSET=0x141000000
RELOC_SECTION_OFFSET=0x141001000
emu:
cargo build $(CARGOFLAGS) --profile $(PROFILE)
cargo clippy $(CARGOFLAGS) --profile $(PROFILE)
Expand All @@ -32,11 +32,13 @@ ERL_OUT=build/ebin
ebin: $(ERL_SOURCES)
mkdir -p $(ERL_OUT)
erlc $(ERLC_FLAGS) -o $(ERL_OUT) $(ERL_SOURCES)
src/etfify base/base.app.src $(ERL_OUT)/base.app

# BOSS Base Image, a collection of base BEAM files
bosbaima: ebin
date > build/date
tar cf build/bosbaima.tar build/ebin/ build/date
cp base/emu.cfg build/emu.cfg
tar cf build/bosbaima.tar -C build/ ebin/ date emu.cfg

esp: emu bosbaima
mkdir -p build/esp/{EFI/BOOT,BOSS}
Expand Down
Loading

0 comments on commit e719bd8

Please sign in to comment.