Add ESP32C3 RISC-V stub
diff --git a/share/jmk/jmk.tcl b/share/jmk/jmk.tcl
index ae114dc..1a82ffb 100644
--- a/share/jmk/jmk.tcl
+++ b/share/jmk/jmk.tcl
@@ -220,7 +220,7 @@
rule .s.o {} {
log ASM $::first_src
- asm "\ $::first_src -o $::target"
+ asm "$::asmflags $::first_src -o $::target"
}
rule clean {} {
@@ -242,23 +242,22 @@
cflags -O2
}
- proc 32 {} {
- cflag -m32
- asmflag -felf32
- }
-
proc debug {} {
cflag -g
- asmflag -Fdwarf
}
proc warn {} {
cflags -Wall -Wno-unused-function -Wno-unused-variable -Wno-incompatible-pointer-types -Wno-sign-compare
}
+ proc 32 {} {
+ cflag -m32
+ asmflag -felf32
+ }
+
proc nasm {} {
- global asm
- set asm nasm
+ set ::asm nasm
+ asmflag -Fdwarf
}
}
diff --git a/share/jmk/multiplat.jmk b/share/jmk/multiplat.jmk
index 0638d8d..3111653 100644
--- a/share/jmk/multiplat.jmk
+++ b/share/jmk/multiplat.jmk
@@ -26,7 +26,7 @@
}
option ISA x86_32
-option DEVICE pc-generic
+option DEVICE generic
proc source_if_exists {path} {
if {[file exists $path]} {