Move target app only includes under apps/common

This commit is contained in:
Toby Jaffey 2025-12-12 15:49:03 +00:00
parent 5bd6a32013
commit ef948e9797
7 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PREFIX:=riscv64-elf-
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+=-static-libgcc -fdata-sections -ffunction-sections
CFLAGS+=-g -march=rv32im -mabi=ilp32 -static

View file

@ -40,6 +40,7 @@ pub fn build(b: *std.Build) void {
exe.addAssemblyFile(b.path("../common/crt0.S"));
exe.setLinkerScript(b.path("../common/linker.ld"));
exe.addIncludePath(b.path("../../common"));
exe.addIncludePath(b.path("../common"));
const bin = b.addObjCopy(exe.getEmittedBin(), .{
.format = .bin,

View file

@ -45,6 +45,7 @@ pub fn build(b: *std.Build) void {
exe.addAssemblyFile(b.path("../common/crt0.S"));
exe.setLinkerScript(b.path("../common/linker.ld"));
exe.addIncludePath(b.path("../../common"));
exe.addIncludePath(b.path("../common"));
const bin = b.addObjCopy(exe.getEmittedBin(), .{
.format = .bin,

View file

@ -82,6 +82,7 @@ pub fn build(b: *std.Build) void {
exe.addAssemblyFile(b.path("../common/crt0.S"));
exe.setLinkerScript(b.path("../common/linker.ld"));
exe.addIncludePath(b.path("../../common"));
exe.addIncludePath(b.path("../common"));
const bin = b.addObjCopy(exe.getEmittedBin(), .{
.format = .bin,

View file

@ -55,6 +55,7 @@ pub fn build(b: *std.Build) void {
exe.addAssemblyFile(b.path("../common/crt0.S"));
exe.setLinkerScript(b.path("../common/linker.ld"));
exe.addIncludePath(b.path("../../common"));
exe.addIncludePath(b.path("../common"));
const bin = b.addObjCopy(exe.getEmittedBin(), .{
.format = .bin,