mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Move all app common files under apps/common
This commit is contained in:
parent
60f362b819
commit
5bd6a32013
31 changed files with 49 additions and 49 deletions
|
|
@ -4,7 +4,7 @@ CFLAGS+=-I${TOPDIR}/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
|
||||
LDFLAGS:= -T ${TOPDIR}/apps/linker.ld -nostdlib -Wl,--gc-sections
|
||||
LDFLAGS:= -T ${TOPDIR}/apps/common/linker.ld -nostdlib -Wl,--gc-sections
|
||||
LIBS:= -lgcc # needed for softfp
|
||||
|
||||
# check if the compiler is installed
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ TOPDIR=../..
|
|||
PROJECT:=$(shell basename ${PWD})
|
||||
|
||||
OPT=-Os
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
|
||||
HEAP_SIZE=$(shell echo "320 * 200 * 4" | bc)
|
||||
HOST_EXTRA=-e ${HEAP_SIZE} -i 9999999
|
||||
|
|
@ -12,4 +12,4 @@ test: all
|
|||
${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PWD}/${PROJECT}.bin
|
||||
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ PROJECT:=$(shell basename ${PWD})
|
|||
HEAP_SIZE=$(shell echo "1024 * 512" | bc)
|
||||
OPT=-Os
|
||||
CFLAGS=-DHEAP_SIZE=${HEAP_SIZE}
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S malloc_freelist.c
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S malloc_freelist.c
|
||||
HOST_EXTRA=-e ${HEAP_SIZE} -i 100000
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@ SRCS=${PROJECT}.S
|
|||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
OPT=-O2
|
||||
CFLAGS+=-fpeel-loops
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ PROJECT:=$(shell basename ${PWD})
|
|||
HEAP_SIZE=$(shell echo "1024 * 1024 * 32" | bc)
|
||||
OPT=-Os
|
||||
CFLAGS=-DHEAP_SIZE=${HEAP_SIZE}
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S barr_memtest.c
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S barr_memtest.c
|
||||
|
||||
HOST_EXTRA=-e ${HEAP_SIZE} -i 4294967295
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ clean: clean_common
|
|||
test: all
|
||||
${TOPDIR}/host/host ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use std::path::PathBuf;
|
|||
|
||||
fn main() {
|
||||
// linker
|
||||
println!("cargo:rustc-link-arg-bin=rust-hello=-T../linker.ld");
|
||||
println!("cargo:rustc-link-arg-bin=rust-hello=-T../common/linker.ld");
|
||||
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header("../../common/uvm32_sys.h")
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use core::panic::PanicInfo;
|
|||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
// startup code
|
||||
global_asm!(include_str!("../../crt0.S"));
|
||||
global_asm!(include_str!("../../common/crt0.S"));
|
||||
|
||||
fn syscall(id: u32, param1: u32, param2: u32) -> u32 {
|
||||
let mut value;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S ${TOPDIR}/uvm32/uvm32.c
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S ${TOPDIR}/uvm32/uvm32.c
|
||||
CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32
|
||||
all:
|
||||
xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h
|
||||
make all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
TOPDIR=../..
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
|
||||
all: all_common
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ clean: clean_common
|
|||
test: all
|
||||
${TOPDIR}/hosts/host/host ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
b.installArtifact(exe);
|
||||
|
||||
exe.addAssemblyFile(b.path("../crt0.S"));
|
||||
exe.setLinkerScript(b.path("../linker.ld"));
|
||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||
exe.addIncludePath(b.path("../../common"));
|
||||
|
||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ clean: clean_common
|
|||
test: all
|
||||
${TOPDIR}/hosts/host/host ${HOST_EXTRA} ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
b.installArtifact(exe);
|
||||
|
||||
exe.addAssemblyFile(b.path("../crt0.S"));
|
||||
exe.setLinkerScript(b.path("../linker.ld"));
|
||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||
exe.addIncludePath(b.path("../../common"));
|
||||
|
||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ clean: clean_common
|
|||
test: all
|
||||
${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
b.installArtifact(exe);
|
||||
|
||||
exe.addAssemblyFile(b.path("../crt0.S"));
|
||||
exe.setLinkerScript(b.path("../linker.ld"));
|
||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||
exe.addIncludePath(b.path("../../common"));
|
||||
|
||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ clean: clean_common
|
|||
test: all
|
||||
${TOPDIR}/hosts/host/host ${PROJECT}.bin
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
include ${TOPDIR}/apps/common/makefile.common
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
b.installArtifact(exe);
|
||||
|
||||
exe.addAssemblyFile(b.path("../crt0.S"));
|
||||
exe.setLinkerScript(b.path("../linker.ld"));
|
||||
exe.addAssemblyFile(b.path("../common/crt0.S"));
|
||||
exe.setLinkerScript(b.path("../common/linker.ld"));
|
||||
exe.addIncludePath(b.path("../../common"));
|
||||
|
||||
const bin = b.addObjCopy(exe.getEmittedBin(), .{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue