mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Move target app only includes under apps/common
This commit is contained in:
parent
5bd6a32013
commit
ef948e9797
7 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
PREFIX:=riscv64-elf-
|
PREFIX:=riscv64-elf-
|
||||||
OPT ?= -Os
|
OPT ?= -Os
|
||||||
CFLAGS+=-I${TOPDIR}/common
|
CFLAGS+=-I${TOPDIR}/common -I${TOPDIR}/apps/common
|
||||||
CFLAGS+=${OPT} -fno-stack-protector -fno-builtin-memcpy -fno-builtin
|
CFLAGS+=${OPT} -fno-stack-protector -fno-builtin-memcpy -fno-builtin
|
||||||
CFLAGS+=-static-libgcc -fdata-sections -ffunction-sections
|
CFLAGS+=-static-libgcc -fdata-sections -ffunction-sections
|
||||||
CFLAGS+=-g -march=rv32im -mabi=ilp32 -static
|
CFLAGS+=-g -march=rv32im -mabi=ilp32 -static
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ pub fn build(b: *std.Build) void {
|
||||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||||
exe.addIncludePath(b.path("../../common"));
|
exe.addIncludePath(b.path("../../common"));
|
||||||
|
exe.addIncludePath(b.path("../common"));
|
||||||
|
|
||||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||||
.format = .bin,
|
.format = .bin,
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ pub fn build(b: *std.Build) void {
|
||||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||||
exe.addIncludePath(b.path("../../common"));
|
exe.addIncludePath(b.path("../../common"));
|
||||||
|
exe.addIncludePath(b.path("../common"));
|
||||||
|
|
||||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||||
.format = .bin,
|
.format = .bin,
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ pub fn build(b: *std.Build) void {
|
||||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||||
exe.addIncludePath(b.path("../../common"));
|
exe.addIncludePath(b.path("../../common"));
|
||||||
|
exe.addIncludePath(b.path("../common"));
|
||||||
|
|
||||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||||
.format = .bin,
|
.format = .bin,
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ pub fn build(b: *std.Build) void {
|
||||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||||
exe.addIncludePath(b.path("../../common"));
|
exe.addIncludePath(b.path("../../common"));
|
||||||
|
exe.addIncludePath(b.path("../common"));
|
||||||
|
|
||||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||||
.format = .bin,
|
.format = .bin,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue