Skip to content

Commit a1984d3

Browse files
committed
build: update build systems for AVR support.
Signed-off-by: Glenn Baker <[email protected]>
1 parent abbff49 commit a1984d3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pkg-config = { version = "0.3" }
4242
[features]
4343
default = ["arch_all"]
4444
dynamic_linkage = []
45-
arch_all = ["arch_x86", "arch_arm", "arch_aarch64", "arch_riscv", "arch_mips", "arch_sparc", "arch_m68k", "arch_ppc", "arch_s390x", "arch_tricore"]
45+
arch_all = ["arch_x86", "arch_arm", "arch_aarch64", "arch_riscv", "arch_mips", "arch_sparc", "arch_m68k", "arch_ppc", "arch_s390x", "arch_tricore", "arch_avr"]
4646
arch_x86 = []
4747
arch_arm = []
4848
arch_aarch64 = []
@@ -53,3 +53,4 @@ arch_m68k = []
5353
arch_ppc = []
5454
arch_s390x = []
5555
arch_tricore = []
56+
arch_avr = []

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ pub fn build(b: *std.Build) void {
7474
.{ .file_type = .zig, .root_file_path = "bindings/zig/sample/sample_riscv_zig.zig" },
7575
.{ .file_type = .c, .root_file_path = "samples/sample_arm.c" },
7676
.{ .file_type = .c, .root_file_path = "samples/sample_arm64.c" },
77+
.{ .file_type = .c, .root_file_path = "samples/sample_avr.c" },
7778
.{ .file_type = .c, .root_file_path = "samples/sample_ctl.c" },
7879
.{ .file_type = .c, .root_file_path = "samples/sample_batch_reg.c" },
7980
.{ .file_type = .c, .root_file_path = "samples/sample_m68k.c" },

msvc/avr-softmmu/config-target.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* Automatically generated by create_config - do not modify */
2+
#define TARGET_AVR 1
3+
#define TARGET_NAME "avr"
4+
#define TARGET_AVR 1
5+
#define CONFIG_SOFTMMU 1

0 commit comments

Comments
 (0)